
// Global Variables
var i = 0;
var speed = 4;
var moveAmount = 600;

function nav(p,s) {
  h=s?"_h":"";l=s?4:6;p.src=p.src.substr(0,p.src.length-l)+h+".gif";
}

function popup(u,n,w,h,s) {
  var l = (screen.width)  ? (screen.width  - w)/2 : 0;
  var t = (screen.height) ? (screen.height - h)/2 : 0;
  var p = window.open(u,n,'width='+w+',height='+h+',scrollbars='+s+',left='+l+',top='+t);
  p.focus();
}

function is_email(e) {
  var ereg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z09]+$/;
  return ereg.test(e); 
}


 function val_frm(f) {

  if(!is_email(f.email.value)) {
    alert("Please supply a valid email address"); return false;
  }

} 

function val_frm_contact(contact) {

  if(contact.name.value.length==0 ) {
    alert("Please enter your name"); return false;
  }
  
    if((contact.email.value.length==0)&&(contact.tel.value.length==0)) {
    alert("Please enter an email address or a telephone number so we can contact you."); return false;
  }
  

  if(contact.email.value){
  if(!is_email(contact.email.value)) {
    alert("Please supply a valid email address"); return false;
  }}

}



function is_int(i) {
  var ireg = /^[0-9]+$/;
  return ireg.test(i);
}

function is_date(d) {

  var darr = d.split("/");
  var d1   = new Date(darr[2],darr[1]-1,darr[0]);
  
  var day = new String(d1.getDate());
  var mon = new String(d1.getMonth()+1);
  var yr  = new String(d1.getYear());

  day = day.length < 2 ? '0'  + day : day;
  mon = mon.length < 2 ? '0'  + mon : mon;
  yr  = yr.length <  4 ? '19' + yr  : yr;

  var d2 = day+"/"+mon+"/"+yr;

  return (d == d2) ? true : false;
  
}

function chk_date(d) {

  var today = new Date();
  var darr = d.split("/");

  var d1 = new Date(darr[2],darr[1]-1,darr[0]);
  var d2 = new Date(today.getYear()-18,today.getMonth(),today.getDate());

  return (d1 <= d2) ? true : false;

}

var glbl_i = 0;

function scroll(n,s) {
  if(glbl_i >= 600) { glbl_i=0; return; }
  window.scrollBy(s,0);
  glbl_i += s;
  setTimeout("scroll("+n+","+s+")",1*5);
}

function auto_tab(f) {
  var freg = /^.*(\d)$/;
  var fnum = freg.exec(f.name);
  if(f.value.length == 2)  {
    eval("f.form.dob"+(parseInt(RegExp.$1,10) + 1)+".focus();");
  }
  return;
}

function pad(f) {
  var l = f.name == "dob3" ? 4 : 2;
  if(f.value.length < l) {
    f.value = "0" + f.value;
  }
}

function set_field(f,s) {
  var bg = s ? "#FFFFFF" : "#3C7400";
  var tc = s ? "#000000" : "#FFFFFF";
  f.style.backgroundColor = bg;
  f.style.color = tc;
}

function val_signup_frm(f) {

  var rarr = new Array("alias","firstname","lastname","emailad","dob1","dob2","dob3");
  var flag = false;

  for(i=0;i<rarr.length;i++) {
    if(!f.elements[rarr[i]].value) {
      set_field(f.elements[rarr[i]],0);
      flag=true;
    }
  }
  if(flag) {
    alert("Please complete all required fields"); return false;
  }
  for(i=4;i<rarr.length;i++) {
    if(!is_int(f.elements[rarr[i]].value)) {
      set_field(f.elements[rarr[i]],0);
      flag=true;
    }
  }
  if(flag) {
    alert("DOB fields must be numeric"); return false;
  }
  if(!is_date(f.dob1.value+"/"+f.dob2.value+"/"+f.dob3.value)) {
    set_field(f.dob1,0);
    set_field(f.dob2,0);
    set_field(f.dob3,0);
    alert("Please enter a valid DOB"); return false;
  }
  if(!chk_date(f.dob1.value+"/"+f.dob2.value+"/"+f.dob3.value)) {
    set_field(f.dob1,0);
    set_field(f.dob2,0);
    set_field(f.dob3,0);
    alert("You must be 18 years or over to enter this competition"); return false;
  }
  if(!is_email(f.emailad.value)) {
    set_field(f.emailad,0);
    alert("Please supply a valid email address"); return false;
  }
  if(f.smsoptin.checked) {
    if(!f.mobile.value) {
      set_field(f.mobile,0);
      alert("If you want to optin for SMS you must supply a mobile number."); return false;
    }
  }
  return true;
}


//**********************************************************

//Check the Drops are not above the maximum


function checkmaxdrop(calc)
{ 
  if ((calc.drop1.value > calc.maxdrop.value) || (calc.drop1.value == "") || (!is_int(calc.drop1.value)))
    { 
     alert("Please enter a drop under the maximum drop size"); return false;
    }
  if ((calc.width1.value == "") || (!is_int(calc.width1.value)))
    { 
     alert("Please enter a width"); return false;
    }
  else
    {
     return true;
    }
}



//**********************************************************

//ajax code

var xmlHttp


//for CAFE NETS prices 1 - 6

//**********************************************************
function showcafeprice1(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/cafeprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChanged_1)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price1").innerHTML=""
} 
} 

function stateChanged_1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price1").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showcafeprice2(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/cafeprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChanged_2)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price2").innerHTML=""
} 
} 

function stateChanged_2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price2").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showcafeprice3(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/cafeprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChanged_3)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price3").innerHTML=""
} 
} 

function stateChanged_3() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price3").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showcafeprice4(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/cafeprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChanged_4)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price4").innerHTML=""
} 
} 

function stateChanged_4() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price4").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showcafeprice5(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/cafeprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChanged_5)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price5").innerHTML=""
} 
} 

function stateChanged_5() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price5").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showcafeprice6(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/cafeprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChanged_6)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price6").innerHTML=""
} 
} 

function stateChanged_6() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price6").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************





//for deyron prices 1 - 6

//**********************************************************
function showprice1(width,ppm,isflorentine)
{ 
if (width.length > 0)
{ 
var url="inc/netprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm + "&isflorentine=" + isflorentine
xmlHttp=GetXmlHttpObject(stateChanged_1)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price1").innerHTML=""
} 
} 

function stateChanged_1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price1").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showprice2(width,ppm,isflorentine)
{ 
if (width.length > 0)
{ 
var url="inc/netprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm + "&isflorentine=" + isflorentine
xmlHttp=GetXmlHttpObject(stateChanged_2)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price2").innerHTML=""
} 
} 

function stateChanged_2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price2").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showprice3(width,ppm,isflorentine)
{ 
if (width.length > 0)
{ 
var url="inc/netprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm + "&isflorentine=" + isflorentine
xmlHttp=GetXmlHttpObject(stateChanged_3)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price3").innerHTML=""
} 
} 

function stateChanged_3() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price3").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showprice4(width,ppm,isflorentine)
{ 
if (width.length > 0)
{ 
var url="inc/netprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm + "&isflorentine=" + isflorentine
xmlHttp=GetXmlHttpObject(stateChanged_4)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price4").innerHTML=""
} 
} 

function stateChanged_4() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price4").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showprice5(width,ppm,isflorentine)
{ 
if (width.length > 0)
{ 
var url="inc/netprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm + "&isflorentine=" + isflorentine
xmlHttp=GetXmlHttpObject(stateChanged_5)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price5").innerHTML=""
} 
} 

function stateChanged_5() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price5").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showprice6(width,ppm,isflorentine)
{ 
if (width.length > 0)
{ 
var url="inc/netprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm + "&isflorentine=" + isflorentine
xmlHttp=GetXmlHttpObject(stateChanged_6)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price6").innerHTML=""
} 
} 

function stateChanged_6() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price6").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************




//**********************************************************
function showprice7(width,ppm,isflorentine)
{ 
if (width.length > 0)
{ 
var url="inc/netprice.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm + "&isflorentine=" + isflorentine
xmlHttp=GetXmlHttpObject(stateChanged_7)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("price7").innerHTML=""
} 
} 

function stateChanged_7() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("price7").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************



//FOR BURLEY AND OTHER NON DEYRON NETS



//**********************************************************
function showpriceB1(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_1)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB1").innerHTML=""
} 
} 

function stateChangedB_1() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB1").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showpriceB2(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_2)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB2").innerHTML=""
} 
} 

function stateChangedB_2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB2").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showpriceB3(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_3)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB3").innerHTML=""
} 
} 

function stateChangedB_3() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB3").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showpriceB4(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_4)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB4").innerHTML=""
} 
} 

function stateChangedB_4() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB4").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showpriceB5(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_5)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB5").innerHTML=""
} 
} 

function stateChangedB_5() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB5").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showpriceB6(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_6)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB6").innerHTML=""
} 
} 

function stateChangedB_6() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB6").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showpriceB7(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_7)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB7").innerHTML=""
} 
} 

function stateChangedB_7() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB7").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************


//**********************************************************
function showpriceB8(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_8)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB8").innerHTML=""
} 
} 

function stateChangedB_8() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB8").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************

//**********************************************************
function showpriceB9(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_9)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB9").innerHTML=""
} 
} 

function stateChangedB_9() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB9").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************

//**********************************************************
function showpriceB10(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_10)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB10").innerHTML=""
} 
} 

function stateChangedB_10() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB10").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************

//**********************************************************
function showpriceB11(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_11)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB11").innerHTML=""
} 
} 

function stateChangedB_11() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB11").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************

//**********************************************************
function showpriceB12(width,ppm)
{ 
if (width.length > 0)
{ 
var url="inc/netpriceB.php?sid=" + Math.random() + "&width=" + width + "&ppm=" + ppm
xmlHttp=GetXmlHttpObject(stateChangedB_12)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("priceB12").innerHTML=""
} 
} 

function stateChangedB_12() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("priceB12").innerHTML=xmlHttp.responseText 
} 
} 

//**********************************************************

//end of these template breakers








//for converter
function showHint(str)
{ 
if (str.length > 0)
{ 
var url="inc/convert.php?sid=" + Math.random() + "&q=" + str
xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
} 
else
{ 
document.getElementById("txtHint").innerHTML=""
} 
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
} 
} 

function GetXmlHttpObject(handler)
{ 
var objXmlHttp=null

if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("This example doesn't work in Opera") 
return 
}
if (navigator.userAgent.indexOf("MSIE")>=0)
{ 
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP"
} 
try
{ 
objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler 
return objXmlHttp
} 
catch(e)
{ 
alert("Error. Scripting for ActiveX might be disabled") 
return 
} 
} 
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler 
return objXmlHttp
}
} 






function showFlat() { 

document.getElementById('div0').style.visibility='visible'
document.getElementById('div0').style.display='block'
document.getElementById('div1').style.visibility='hidden'
document.getElementById('div1').style.display='none'
document.getElementById('div2').style.visibility='hidden'
document.getElementById('div2').style.display='none'
document.getElementById('flattext').style.color='#fff'
document.getElementById('actualtext').style.color='#000'
document.getElementById('helptext').style.color='#000'
document.getElementById('flattext').style.fontWeight='bold'
document.getElementById('actualtext').style.fontWeight='normal'
document.getElementById('helptext').style.fontWeight='normal'
document.getElementById('flatbox').style.backgroundColor='#672620'
document.getElementById('actualbox').style.backgroundColor='#fff'
document.getElementById('helpbox').style.backgroundColor='#fff'
 }
 
 function showActual() { 
document.getElementById('div0').style.visibility='hidden'
document.getElementById('div0').style.display='none'
document.getElementById('div1').style.visibility='visible'
document.getElementById('div1').style.display='block'
document.getElementById('div2').style.visibility='hidden'
document.getElementById('div2').style.display='none'
document.getElementById('actualtext').style.color='#fff'
document.getElementById('flattext').style.color='#000'
document.getElementById('helptext').style.color='#000'
document.getElementById('flattext').style.fontWeight='normal'
document.getElementById('actualtext').style.fontWeight='bold'
document.getElementById('helptext').style.fontWeight='normal'
document.getElementById('flatbox').style.backgroundColor='#fff'
document.getElementById('actualbox').style.backgroundColor='#672620'
document.getElementById('helpbox').style.backgroundColor='#fff'
 }

 function showHelp() { 
document.getElementById('div0').style.visibility='hidden'
document.getElementById('div0').style.display='none'
document.getElementById('div1').style.visibility='hidden'
document.getElementById('div1').style.display='none'
document.getElementById('div2').style.visibility='visible'
document.getElementById('div2').style.display='block'
document.getElementById('actualtext').style.color='#000'
document.getElementById('flattext').style.color='#000'
document.getElementById('helptext').style.color='#fff'
document.getElementById('flattext').style.fontWeight='normal'
document.getElementById('actualtext').style.fontWeight='normal'
document.getElementById('helptext').style.fontWeight='bold'
document.getElementById('flatbox').style.backgroundColor='#fff'
document.getElementById('actualbox').style.backgroundColor='#fff'
document.getElementById('helpbox').style.backgroundColor='#672620'
 }


