
var r = document.all? 'rules' : 'cssRules';
function switchtextcss(ruleA,ruleB,ruleC,styleA,styleB,styleC){
	eval("document.styleSheets[1]."+ r +"["+ ruleA +"].style.color='"+ styleA+"'");
	eval("document.styleSheets[1]."+ r +"["+ ruleB +"].style.color='"+ styleB+"'");
	eval("document.styleSheets[1]."+ r +"["+ ruleC +"].style.color='"+ styleC+"'");
}

var i=0,id1,id2;
var hexes=new Array("#ffffff")

function fadedn(){
	id2?clearTimeout(id2) : 0;
	if(i<hexes.length){
		document.bgColor= hexes[i];
		id1=setTimeout('fadedn()',20);
		i++;
	}
}
function fadeup(){
	id1?clearTimeout(id1) : 0;
	if(i>0){
		i--;
		document.bgColor= hexes[i];
		id2=setTimeout('fadeup()',20);
	}
	else{
		switchtextcss(0,2,4,"#ffffff","#cccccc","#FF0066")
	}
}
function reld(){
	location.href="index.htm";
	
}

function show(file,mID,winid,winwidth,winheight,scrolling){
	off();
	id2?clearTimeout(id2) : 0;
	if(i<hexes.length){
		document.bgColor= hexes[i];
		id1=setTimeout('show("'+file+'","'+mID+'","'+winid+'",'+winwidth+','+winheight+',"'+scrolling+'")',20); i++;
	}
	else{
		if(mID==curID&&!openwin.closed){
			win.focus();
			switchtextcss(0,2,4,"#000000","#000000","#000000");
		}
		else{
			setTimeout('opwin("'+file+'","'+mID+'","'+winid+'",'+winwidth+','+winheight+',"'+scrolling+'")',150);
			switchtextcss(0,2,4,"#000000","#000000","#000000");
		}
	}
}

var xp1=8; var xp2=100; var yp1=18; var yp2=58;
function off(){
	document.getElementById("thumbnail").style.visibility="hidden";
}
function swp(m){
	document.getElementById("thumb").src=m.src; 
	document.getElementById("thumbnail").style.visibility="visible";
}
function makeobj(obj){									
   	this.css = document.getElementById(obj).style;													
	this.movement=move;
	return;
}
function move(x,y){
	this.x=x; this.y=y; 
	!(os.mac&&bw.ie5)? (this.css.left=this.x+"px", this.css.top=this.y+"px") : (this.css.pixelLeft=this.x, this.css.pixelTop=this.y)
}
function track(e){
	ch= bw.ie6? document.documentElement.clientHeight : bw.ie5? document.body.clientHeight : window.innerHeight;
	st= bw.ie6? document.documentElement.scrollTop : bw.ie5? document.body.scrollTop : window.scrollY;
	cw= bw.ie6? document.documentElement.clientWidth : bw.ie5? document.body.clientWidth : window.innerWidth;
	sl= bw.ie6? document.documentElement.scrollLeft : bw.ie5? document.body.scrollLeft : window.scrollX;
	x = bw.ie6||bw.ie5? eval(event.x+sl) : e.pageX;
	y = bw.ie6||bw.ie5? eval(event.y+st) : e.pageY;

	x+120<cw+sl? x=x+xp1 : x=x-xp2;
	y+95 <ch+st? y=y+yp1 : y=y-yp2;

	cursorobj1.movement(x,y);
}
var bug=0;
function bugloop(){
	if(bug<30){
		
		document.getElementById("thumb").src=pxl.src;
		setTimeout("bugloop()",10);bug++;
	}
}
function setobj(){
	os.mac&&bw.ie5? bugloop() : 0;
	cursorobj1=new makeobj("thumbnail");
	document.onmousemove=track;
}

