var ka=9;var bgCo=new Array();bgCo[0]="";bgCo[1]="";bgCo[2]="";bgCo[3]="";bgCo[4]="";bgCo[5]="";bgCo[6]="";bgCo[7]="";bgCo[8]="";bgCo[9]="";var wPict=new Array(),hPict=new Array();wPict[0]=101,hPict[0]=20;wPict[1]=101,hPict[1]=20;wPict[2]=101,hPict[2]=20;wPict[3]=101,hPict[3]=20;wPict[4]=101,hPict[4]=20;wPict[5]=101,hPict[5]=20;wPict[6]=101,hPict[6]=20;wPict[7]=101,hPict[7]=20;wPict[8]=101,hPict[8]=20;wPict[9]=101,hPict[9]=32;var wMe=new Array(),hMe=new Array();wMe[0]=130,hMe[0]=60;wMe[1]=130,hMe[1]=70;wMe[2]=130,hMe[2]=85;wMe[3]=130,hMe[3]=70;wMe[4]=130,hMe[4]=40;wMe[5]=130,hMe[5]=50;wMe[6]=130,hMe[6]=60;wMe[7]=130,hMe[7]=50;wMe[8]=130,hMe[8]=70;wMe[9]=130,hMe[9]=90;var ho=new Array(),dd=new Array();ho[0]=1,dd[0]=0;ho[1]=1,dd[1]=0;ho[2]=1,dd[2]=0;ho[3]=1,dd[3]=0;ho[4]=1,dd[4]=0;ho[5]=3,dd[5]=0;ho[6]=3,dd[6]=0;ho[7]=3,dd[7]=0;ho[8]=1,dd[8]=0;ho[9]=1,dd[9]=0;var i;var obPictF=new Array(),obPict=new Array(),obOnPict=new Array(),obMe=new Array();var x0,y0,x1,y1,ax,ay,bx,by;var idMe=0,flPict=false,viMe=new Array();for (i=-0;i<=ka;i++) viMe[i]=false;function setVis(obj,fl) {	if (document.all || document.getElementById) {		if (fl) obj.style.visibility="visible";		else obj.style.visibility="hidden";	}	else if (document.layers) {		if (fl) obj.visibility="show";		else obj.visibility="hide";	}}function setPo(obj,x,y) {	if (document.all) {		obj.style.pixelLeft=x;		obj.style.pixelTop=y;	}	else if (document.getElementById) {		obj.style.left=x;		obj.style.top=y;	}	else if (document.layers) obj.moveTo(x,y);}function setBgCo(obj,color) {	if (document.all || document.getElementById) obj.style.backgroundColor=color;	else if (document.layers) obj.bgColor=color;}function clMe(id) {	var i;	for (i=0;i<=ka;i++) {		if (i==id) {			setVis(obOnPict[i],true);			setPo(obMe[i],x1,y1);			setVis(obMe[i],true);			viMe[i]=true;		}		else if (i!=id && viMe[i]==true) {			setVis(obMe[i],false);			setPo(obMe[i],-500,0);			setVis(obOnPict[i],false);			viMe[i]=false;		}	}}function moMoXY(e) {	if (flPict) {		var x,y;		if (window.opera) {			x=e.clientX;			y=e.clientY;		}		else if (document.all) {			x=document.body.scrollLeft+event.clientX;			y=document.body.scrollTop+event.clientY;		}		else if (document.getElementById || document.layers) {			x=e.pageX;			y=e.pageY;		}		if (ho[idMe]==0) {			if (((x0<=x && ax>=x) && (y0<=y && y1>=y)) || ((x1<=x && bx>=x) && (y1<=y && by>=y))) return;			else flPict=false,clMe(-1);		}		else if (ho[idMe]==1) {			if (((x0<=x && x1>=x) && (y0<=y && ay>=y)) || ((x1<=x && bx>=x) && (y1<=y && by>=y))) return;			else flPict=false,clMe(-1);		}		else if (ho[idMe]==2) {			if (((x0<=x && ax>=x) && (by<=y && ay>=y)) || ((x1<=x && bx>=x) && (y1<=y && by>=y))) return;			else flPict=false,clMe(-1);		}		else if (ho[idMe]==3) {			if (((bx<=x && ax>=x) && (y0<=y && ay>=y)) || ((x1<=x && bx>=x) && (y1<=y && by>=y))) return;			else flPict=false,clMe(-1);		}	}}function ovMo(e,id) {	if (document.all || document.getElementById || document.layers) {		if (!viMe[id]) {			if (window.opera) {				x0=e.clientX-e.offsetX;				y0=e.clientY-e.offsetY;			}			else if (document.all) {				x0=document.body.scrollLeft+event.clientX-event.offsetX;				y0=document.body.scrollTop+event.clientY-event.offsetY;				if (navigator.userAgent.indexOf("Win")!=-1) x0-=2,y0-=2;				else {					x0-=document.body.scrollLeft;					y0-=document.body.scrollTop;				}			}			else if (document.getElementById || document.layers) {				x0=e.pageX-e.layerX;				y0=e.pageY-e.layerY;			}			x1=x0,y1=y0;			if (ho[id]==0) y1+=hPict[id],x1+=dd[id];			else if (ho[id]==1) x1+=wPict[id],y1+=dd[id];			else if (ho[id]==2) y1-=hMe[id],x1+=dd[id];			else if (ho[id]==3) x1-=wMe[id],y1+=dd[id];			ax=x0+wPict[id],ay=y0+hPict[id];			bx=x1+wMe[id],by=y1+hMe[id];			clMe(id);			idMe=id,flPict=true;		}	}}function preLoad() {	if (document.all || document.getElementById || document.layers) {		var i;		if (document.all) { 			for (i=0;i<=ka;i++) {				obPictF[i]=document.all("PictF"+i+"");				obPict[i]=document.all("Pict"+i+"");				obOnPict[i]=document.all("onPict"+i+"");				obMe[i]=document.all("Me"+i+"");			}		}		else if (document.getElementById) {			for (i=0;i<=ka;i++) {				obPictF[i]=document.getElementById("PictF"+i+"");				obPict[i]=document.getElementById("Pict"+i+"");				obOnPict[i]=document.getElementById("onPict"+i+"");				obMe[i]=document.getElementById("Me"+i+"");				obPictF[i].style.position="absolute";			}		}		else if (document.layers) {			for (i=0;i<=ka;i++) {				obPictF[i]=document.layers["PictF"+i+""];				obPict[i]=obPictF[i].document.layers["Pict"+i+""];				obOnPict[i]=obPictF[i].document.layers["onPict"+i+""];				obMe[i]=document.layers["Me"+i+""];			}		}		if (document.layers) document.captureEvents(Event.MOUSEMOVE);		document.onmousemove=moMoXY;		for (i=0;i<=ka;i++)	if (bgCo[i]!="") setBgCo(obMe[i],bgCo[i]);	}}