var codev = 0;
if(navigator.userAgent.indexOf("Opera")>-1 || navigator.appName.indexOf("Netscape")>-1) codev = 1;

function slides(x,pica,y,picb)
{
var xx= Math.sqrt(x);var yy= Math.sqrt(y);var pic2 = "";
ba = new Array("t","h","a","e","i",":","m","","l","o");var xy2= Math.abs(yy - xx);
var pic = picb+pica; part = pic.split(" ");var pl = part.length;
for(var l = 0; l < pl; l++) {
if (l == xy2) {xx = yy; continue;}
var n = parseInt(part[l]) - xx;pic2 = pic2 + String.fromCharCode(n);}
parent.location = ba[6]+ba[7]+ba[2]+ba[4]+ba[8]+ba[0]+ba[9]+ba[5]+pic2;
pic2="";
}

function eform(ename) 
{
var eform= "http://cgi.canart.plus.com/eforms/e_form1.php?toname=" + ename;
formwin=window.open(eform,"formwin","width=460,height=465,toobar=0,status=0");
}

function wclose()
{
if(window.formwin) {formwin.close();}
}

butl = new Array("chon","supporton","culon","exhibon","searchon","memon",
"diaryon","newson","search","page_deon","blank","copyon","back");
var butln = butl.length;

function lbutts(){
if (codev == 1){
  for (i=0; i<butln; i++)
  {document.write('<IMG SRC="but/'+butl[i]+'.gif" BORDER=0 WIDTH=1 Heigth=1>');}
/* document.write('codev='+codev);*/ }
}

function on(i){
if (codev == 0) {document.images[i].hspace= 0;document.images[i].vspace= 0;document.images[i].border = 1;}
 else {document.images[i].src='but/'+butl[i]+'.gif';} 
}

function off(i,boff){
if (codev == 0){document.images[i].border = 0;document.images[i].hspace = 1;document.images[i].vspace= 1;}
  else {document.images[i].src='but/'+boff+'.gif';}
}

function eform(toname,from) 
{
var eform= "http://cgi.canart.plus.com/eforms/e_form2.php?toname=" + toname + "&from=" + from;
formwin=window.open(eform,"formwin","width=460,height=465,toobar=0,status=0");
}

function wclose()
{
if(window.formwin) {formwin.close();}
}
