window.onload = auto

var errow = "<DIV id=errow STYLE=\"position: absolute; top: 0px; left: 0px; font: 15px 'wingdings'; color: #AA0000; height: 50px; width: 50px;\">&#0231;</DIV>"

var browser = new BrowserCheck()

function auto()
{

}


function BrowserCheck() {
	var b = navigator.appName;
	if (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	this.version = navigator.appVersion
	this.v = parseInt(this.version);
	this.ns = (this.b=="ns" && this.v>=4);
	this.ns4 = (this.b=="ns" && this.v==4);
	this.ns5 = (this.b=="ns" && this.v==5);
	this.ie = (this.b=="ie" && this.v>=4);
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0);
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0);
	if (this.ie5) this.v = 5;
	this.min = (this.ns||this.ie);
  this.win = (this.version.indexOf('Win')>0);
  this.mac = (this.version.indexOf('Mac')>0);
}


function play_images()
{
	rnd1 = Math.round(Math.random() * 10);
	rnd2 = Math.round(Math.random() * 10);
//	alert ("rnd1 " + rnd1 + "  - " +" rnd2 " + rnd2);
	if (rnd1 > 10 || rnd1 <= 0)  { rnd1 = 2; }
	if (rnd2 > 10 || rnd2 <= 0)  { rnd2 = 9; }
	if (rnd1 == rnd2) { rnd1 = 3;  rnd2 = 7; }
	cpos1 = d.images("img" + rnd1).id;
	cpos1_img = d.images("img" + rnd1).src;
	cpos2 = d.images("img" + rnd2).id;
	cpos2_img = d.images("img" + rnd2).src;
	d.images(cpos1).src = cpos2_img;
	d.images(cpos2).src = cpos1_img;
	dummy_variable = setTimeout("play_images()",2500);

}
function box_img()
{
 this[0] = "images/h0.jpg";
 this[1] = "images/h1.jpg";
 this[2] = "images/h2.jpg";
 this[3] = "images/h3.jpg";
 this[4] = "images/h4.jpg";
 this[5] = "images/h5.jpg";
 this[6] = "images/h6.jpg";
 this[7] = "images/h7.jpg";
 this[8] = "images/h8.jpg";
 this[9] = "images/h9.jpg";
 this[10] = "images/h10.jpg";
}


function load_images() 
{
  if(d.images)
	{ 
		if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=load_images.arguments; 
		for(i=0; i<a.length; i++)
		{
		    if (a[i].indexOf("#")!=0)
				{ 
					d.MM_p[j]=new Image; 
					d.MM_p[j++].src=a[i];
				}
		}
	}
}
