var online=0;
var pageSize="751";
var onClr="ccaa00";
var offClr="990000";
var lastUpdate="Nov 2006";
var bgclr='666666';

if (wotSect=='1'){var bgcol='000000'};
if (wotSect=='2'){var bgcol='000000'};
if (wotSect=='3'){var bgcol='000000'};
if (wotSect=='4'){var bgcol='000000'};

var wotPlatForm="Unknown";
var wotBrowser="Unknown";
var bSetup="Unknown";

if (navigator.appVersion.indexOf("Mac") !== -1){wotPlatForm="Mac";}
else {wotPlatForm="Win";}

if (navigator.userAgent.indexOf("Safari") !== -1){wotBrowser="Safari";}
if (navigator.userAgent.indexOf("Firefox") !== -1){wotBrowser="Firefox";}
if (navigator.appVersion.indexOf("MSIE") !== -1){wotBrowser="MSIE";}
if (navigator.userAgent.indexOf("Netscape") !== -1){wotBrowser="Netscape";}
if (navigator.userAgent.indexOf("Opera") !== -1){wotBrowser="Opera";}

if ((wotBrowser=="Firefox")&&(wotPlatForm=="Mac")){bSetup="Mac_Firefox";}
if ((wotBrowser=="Firefox")&&(wotPlatForm=="Win")){bSetup="Win_Firefox";}

if ((wotBrowser=="Safari")&&(wotPlatForm=="Mac")){bSetup="Mac_Safari";}
if ((wotBrowser=="Safari")&&(wotPlatForm=="Win")){bSetup="Win_Safari";}

if ((wotBrowser=="MSIE")&&(wotPlatForm=="Mac")){bSetup="Mac_MSIE";}
if ((wotBrowser=="MSIE")&&(wotPlatForm=="Win")){bSetup="Win_MSIE";}

if ((wotBrowser=="Netscape")&&(wotPlatForm=="Mac")){bSetup="Mac_Netscape";}
if ((wotBrowser=="Netscape")&&(wotPlatForm=="Win")){bSetup="Win_Netscape";}

var ie6 = (document.all && document.getElementbyID) ? true : false;
var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns3 = (document.images) ? true : false;

if (ns4){origWidth=innerWidth;origHeight=innerHeight;}
function reDo(){if (innerWidth != origWidth||innerHeight!=origHeight){location.reload();}}
if (ns4){onresize=reDo();}

function ifIE_local(){
if ((navigator.appVersion.indexOf("MSIE"))) {
document.write('<p><b>NB:</b> If you know your version of Flash to be fairly recent then it may be that ');
document.write('<b>Internet Explorer</b> is currently not configured to permit your browser to ');
document.write('use <b>&quot;Active Content&quot;</b>. ');
document.write('<p>To rectify this, in the <b>&quot;Tools&quot;</b> menu, go to <b>&quot;Internet Options&quot;</b> ');
document.write('select the <b>&quot;Advanced&quot;</b> tab and scroll down to the <b>&quot;Security&quot;</b> ');
document.write('heading and make sure that the following two entries are checked: ');
document.write('<b>&quot;Allow Active Content from CDs to run on My Computer&quot;</b> ');
document.write('and <b>&quot;Allow Active Content to run in files on My Computer&quot;</b> ');
document.write('(you may require permission first from your Systems Administrator).');
document.write('');
}
}

function myUnescape(theWord){
var x=0;
var outStr ="";
var ch="";
for (x=0; x<theWord.length; x++){
 ch = theWord.substr(x,1);
 if (ch=='+'){ch=" "};
 outStr+=ch;
}
return outStr;
}

function putdate(){
var thisDate=new Date();
var thismonth=thisDate.getMonth()+1;
if (thismonth=="1") {monthname="January"}
if (thismonth=="2") {monthname="February"}
if (thismonth=="3") {monthname="March"}
if (thismonth=="4") {monthname="April"}
if (thismonth=="5") {monthname="May"}
if (thismonth=="6") {monthname="June"}
if (thismonth=="7") {monthname="July"}
if (thismonth=="8") {monthname="August"}
if (thismonth=="9") {monthname="September"}
if (thismonth=="10") {monthname="October"}
if (thismonth=="11") {monthname="November"}
if (thismonth=="12") {monthname="December"}
var year=thisDate.getYear();
if (navigator.appVersion.lastIndexOf('Mac') != -1) 
if (navigator.appName == ('Microsoft Internet Explorer')) 
var year = (thisDate.getYear());
else var year = (thisDate.getYear()+1900);
if ((navigator.appName=="Netscape") && (navigator.appVersion.indexOf("Win") != -1))
var year = (thisDate.getYear()+1900);
currentDate=monthname+' '+thisDate.getDate()+', '+year+'';
document.write(currentDate);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is a required field.\n'; }
  } if (errors) alert('The following error(s) occurred (Please fill in any required fields):\n\n'+errors);
  document.MM_returnValue = (errors == '');
}


function glow(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "on.src");
  }
}

function fade(imgName) {
  if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
  }
}

function sideButtonWriter(){
document.write('<div id="leftPanel">');
document.write('<div id="topButtonPanel">');
document.write('<ul id="topButtonList">');

var thetopRow="";
var thetopButtons=eval("thetopButtons"+topSuffix);
var thetopButtonURLs=eval("thetopButtonURLs"+topSuffix);
var thetopButtonImages=eval("thetopButtonImages"+topSuffix);

for (var loop=0;loop<thetopButtonURLs.length;loop++){
  
  if (wotMainSect!=(loop+1)){
    var thetopRow='<li>';
    thetopRow+='<a href="'+myUnescape(thetopButtonURLs[loop])+'.htm" onmouseover="glow(\'button'+myUnescape(thetopButtonImages[loop])+'\')" onmouseout="fade(\'button'+myUnescape(thetopButtonImages[loop])+'\')">';
    thetopRow+='<img name="button'+myUnescape(thetopButtonImages[loop])+'" src="images/buttons/'+myUnescape(thetopButtonImages[loop])+'.gif" alt="" width="186" height="28" hspace="0" vspace="0" border="0"><'+'/a><'+'/li>';
    document.write(thetopRow);
  }
  else{
    var thetopRow='<li>';
    thetopRow+='<a href="'+myUnescape(thetopButtonURLs[loop])+'.htm">';
    thetopRow+='<img name="button'+myUnescape(thetopButtonImages[loop])+'" src="images/buttons/'+myUnescape(thetopButtonImages[loop])+'_c.gif" alt="" width="186" height="28" hspace="0" vspace="0" border="0"><'+'/a><'+'/li>';
    document.write(thetopRow);
   
    document.write('<div id="lowerButtonPanel">');
    document.write('<ul id="lowerButtonList">');
    var theRow="";
    var theButtons=eval("theButtons"+wotSect);
    var theButtonUrls=eval("theButtonsURLs"+wotSect);
    
    for (var bLoop=0;bLoop<theButtons.length;bLoop++){
      if (buttonNum!=(bLoop+1)){
      var theRow='<li id="inactive">';
      
if (wotSect=="4"){
theRow+='<a href="'+myUnescape(theButtonUrls[bLoop])+'.htm" id="off" target="_blank">'+myUnescape(theButtons[bLoop])+'<'+'/a><'+'/li>';
}
else{
theRow+='<a href="'+myUnescape(theButtonUrls[bLoop])+'.htm" id="off">'+myUnescape(theButtons[bLoop])+'<'+'/a><'+'/li>';
} 
      
      document.write(theRow);
      }
      else{
      var theRow='<li id="active">';
      theRow+='<a href="'+myUnescape(theButtonUrls[bLoop])+'.htm" id="current">'+myUnescape(theButtons[bLoop])+'<'+'/a><'+'/li>';
      document.write(theRow);
      }
    }
    document.write('<'+'/ul>');
    document.write('<'+'/div>');
  }
  
}
    document.write('<'+'/ul>');
    document.write('<'+'/div>');

document.write('<div align="center">');
document.write('<img src="images/logos/artscouncil.gif" width="80" height="79" alt="" hspace="0" vspace="10" border="0">');
document.write('<'+'/div>');

//document.write('<scr'+'ipt type="text/javascr'+'ipt" src="includes/swfobject.js" language="Javas'+'cript"><'+'/scr'+'ipt>');
document.write('<div id="flashcontent" align="center">');

document.write('<'+'/div>');
document.write('<scr'+'ipt type="text/javas'+'cript">');
document.write('var so = new SWFObject("swfs/cp_hmmm.swf","cp_hmmm","145","40","4","#ffffcc");');
document.write('so.write("flashcontent");');
document.write('<'+'/scr'+'ipt>');
document.write('<'+'/div>');
}

function writePageHeader(theTitle){
document.write('<div id="mainHeader">'+theTitle+'<'+'/div>');
}

function writePic(picPath,picW,picH,theTitle,boxed,isCap,theCap){
document.write('<div id="thePhoto">');
document.write('<img src="'+picPath+'" alt="'+theTitle+'" width="'+picW+'" height="'+picH+'" hspace="0" vspace="0" border="0" title="'+theTitle+'">');
document.write('<'+'/div>');
}

function writeTop(){
document.write('<div align="center"><table border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td><img src="images/spacer.gif" width="43" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="19" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="18" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="187" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="39" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="413" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="31" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="1" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="3" rowspan="2"><img src="images/bgnd/corner_logo.gif" width="80" height="80" border="0"></td>');
document.write('<td rowspan="2"><img src="images/bgnd/logo_name.gif" width="187" height="80" border="0"></td>');
document.write('<td rowspan="2" background="images/bgnd/toptab_corner.gif"></td>');
document.write('<td></td>');
document.write('<td></td>');
document.write('<td><img src="images/spacer.gif" width="1" height="38" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td background="images/bgnd/topline.gif" class="headText">');
document.write('Woodfield Road, Garston Liverpool L18 9SH&nbsp;&nbsp;&nbsp;&nbsp;Tel: 0151 427 6741</td>');
document.write('<td><img name="top_rightcorner" src="images/bgnd/top_right_corner.gif" width="31" height="42" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="1" height="42" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td background="images/bgnd/side_left.gif">');
document.write('<img src="images/spacer.gif" width="43" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td background="images/bgnd/filler.gif"></td>');
document.write('<td background="images/bgnd/filler.gif" colspan="4">');
document.write('<div id="container">');
}

function writeTopGallery(){
document.write('<div align="center"><table border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td><img src="images/spacer.gif" width="43" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="19" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="18" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="187" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="39" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="413" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="31" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="1" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="3" rowspan="2"><img src="images/bgnd/corner_logo.gif" width="80" height="80" border="0"></td>');
document.write('<td rowspan="2"><img src="images/bgnd/logo_name.gif" width="187" height="80" border="0"></td>');
document.write('<td rowspan="2" background="images/bgnd/toptab_corner.gif"></td>');
document.write('<td></td>');
document.write('<td></td>');
document.write('<td><img src="images/spacer.gif" width="1" height="38" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td background="images/bgnd/topline.gif" class="headText">');
document.write('Woodfield Road, Garston Liverpool L18 9SH&nbsp;&nbsp;&nbsp;&nbsp;Tel: 0151 427 6741</td>');
document.write('<td><img src="images/bgnd/top_right_corner.gif" width="31" height="42" border="0"></td>');
document.write('<td><img src="images/spacer.gif" width="1" height="42" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td background="images/bgnd/side_left.gif">');
document.write('<img src="images/spacer.gif" width="43" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td background="images/bgnd/filler.gif" colspan="5">');
document.write('<div id="container">');
}

function writeBottom(){
if (needJumper>0){
document.write('<div id="jumperDiv"><a href="#top">');
document.write('<img src="images/up.gif" alt="Jump to Top" width="13" height="13" hspace="0" vspace="0" border="0" title="Jump to Top">');
document.write('</a></div>');
}
else {
document.write('<div id="bottomSpacer">');
document.write('<img src="images/spacer.gif" width="10" height="20" alt="" hspace="0" vspace="10" border="0">');
document.write('</div>');
}
document.write('</div>');
document.write('</td>');
document.write('<td background="images/bgnd/side_right.gif">');
document.write('<img src="images/spacer.gif" width="31" height="10" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="3" background="images/bgnd/bottom_left_corner.gif"></td>');
document.write('<td colspan="3" background="images/bgnd/bottomline.gif" class="pageBgnd">');
document.write('<img src="images/spacer.gif" width="10" height="40" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('<td background="images/bgnd/bottom_rightcorner.gif"></td>');
document.write('<td><img src="images/spacer.gif" width="1" height="40" alt="" hspace="0" vspace="0" border="0"></td>');
document.write('</tr>');
document.write('</table></div>');
document.write('<div align="center"><table border="0" width="'+pageSize+'" cellpadding="0" cellspacing="0">');
document.write('<tr><td class="creditFooter">');
document.write('site design by <a class="creditFooter" href="http://www.macdigital-uk.com/" ');
document.write('target="_blank" title="Click to visit macDigital">macdigital<'+'/a>');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<'+'/td><'+'/tr>');
document.write('<'+'/table><'+'/div>');
}
