//THIS IS THE LOAD IMAGES AND ROLLOVER SCRIPT
var myimages=new Array()

function preloadimages()
{
	for (i=0;i<preloadimages.arguments.length;i++)
	{
		myimages[i] = new Image();
		myimages[i].src=preloadimages.arguments[i];
	}
}

function swapimgrestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findobj(n, d) { //v4.0
	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=findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function swapimage() { //v3.0
	var i,j=0,x,a=swapimage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=findobj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//to here





//THIS IS THE FIX WINDOW SCRIPT
function fixwin()
{

	if (window.screen)
	{
		var mywidth = screen.availWidth;
		var myheight = screen.availHeight;
		window.moveTo(0, 0);
		window.resizeTo(mywidth,myheight);
	}

}
//TO HERE





//this activates / deactivates the submit button
function enableformsubmit()
{

	//get the current values of all the selects
	var position1 = document.getElementById("position-1").value;
	var position2 = document.getElementById("position-2").value;
	var position3 = document.getElementById("position-3").value;
	var position4 = document.getElementById("position-4").value;
	var position5 = document.getElementById("position-5").value;
	var position6 = document.getElementById("position-6").value;
	var position7 = document.getElementById("position-7").value;
	var position8 = document.getElementById("position-8").value;
	var position9 = document.getElementById("position-9").value;

	//if they all equal zero
	if (position1 == 0 && position2 == 0 && position3 == 0 && position4 == 0 && position5 == 0 && position6 == 0 && position7 == 0 && position8 == 0 && position9 == 0)
	{
		//deactivate the submit button
		document.videoform.submitbutton.disabled = true;
	}
	else
	{
		//else activate it
		document.videoform.submitbutton.disabled = false;
	}

}
//TO HERE
