candrop = 1;
function openPage(page)
{
	show(page);
}
function switchPage(from,to)
{
	hide(from);
	show(to);
}
function show(movlay)
{
	myObj = document.getElementById(movlay);
	myObj.style.display='';
}
function hide(movlay)
{
	myObj = document.getElementById(movlay);
	myObj.style.display='none';
}
function changeImage(theimage,theobject)
{
	document.images[theobject + "image"].src = '../images/' + seasonfolder + '/' + theimage + '.gif';
}
function buttonOver(theimage,theobject)
{
	dropButton(theimage);
	if ( theobject != "" )
	{
		changeImage(theimage,theobject);
		changeLink(theimage,theobject);
	}
}
function changeLink(thelink,theobject)
{
	linkid = theobject + 'link';
	myObj = document.getElementById(linkid);
	myObj.href = '../images/' + seasonfolder + '/' + thelink + 'large.gif';
}
function changeImage2(theimage,theobject)
{
	document.images[theobject + "image"].src = '../images/' + theimage + '.gif';
}
function buttonOver2(theimage,theobject)
{
	dropButton(theimage);
	if ( theobject != "" )
	{
		changeImage2(theimage,theobject);
		changeLink2(theimage,theobject);
	}
}
function changeLink2(thelink,theobject)
{
	linkid = theobject + 'link';
	myObj = document.getElementById(linkid);
	myObj.href = '../images/' + thelink + 'large.gif';
}
function changeLink3(thelink,theobject)
{
	linkid = theobject + 'link';
	myObj = document.getElementById(linkid);
	myObj.href = thelink;
}
function dropButton(thebutton)
{
	if ( candrop )
	{
		myObj = document.getElementById(thebutton);
		myObj.style.top =  parseInt(myObj.style.top) + 2 + "px";
		myObj.style.left =  parseInt(myObj.style.left) - 2 + "px";
		myObj.style.cursor='hand';
		candrop = 0;
	}
}
function releaseButton(thebutton)
{
	if ( ! candrop )
	{
		myObj = document.getElementById(thebutton);
		myObj.style.top =  parseInt(myObj.style.top) - 2 + "px";
		myObj.style.left =  parseInt(myObj.style.left) + 2 + "px";
		myObj.style.cursor='default';
		candrop = 1;
	}
}
function popup(thepage,width,height)
{
	linkid = thepage + 'link';
	myObj = document.getElementById(linkid);
	thecontent = myObj.href;
	
	window.open(thecontent,"previewwindow", 'menubar,resizable,scrollbars,dependent,status,width=' + width + ',height=' + height);
}
function popup2(thepage,width,height)
{
	window.open("../images/" + seasonfolder + "/" + thepage + "large.gif","previewwindow", 'menubar,resizable,dependent,status,width=' + width + ',height=' + height);
}
function popup3(thepage,width,height)
{
	window.open(thepage,"previewwindow", 'menubar,resizable,dependent,status,width=' + width + ',height=' + height);
}
function popup4(thepage,width,height)
{
	window.open("../images/" + thepage + "large.gif","previewwindow", 'menubar,resizable,dependent,status,width=' + width + ',height=' + height);
}
function popup5(thepage,width,height)
{
	window.open(thepage,"previewwindow", 'menubar,resizable,dependent,scrollbars,status,width=' + width + ',height=' + height);
}
function popup6(thepage,width,height)
{
	window.open("../images/" + seasonfolder + "/" + thepage + "large.gif","previewwindow", 'menubar,resizable,dependent,scrollbars,status,width=' + width + ',height=' + height);
}
function hidecolors()
{
	hide('rsc-ccp');
	hide('rsc1');
	hide('rsc2');
	hide('rsc-tnc');
	hide('hss-ccp');
	hide('hss1');
	hide('hss2');
	hide('hlb1');
	hide('hlb2');
	hide('ppc');
	hide('ccp1');
	hide('ccp2');
	hide('ccc1');
	hide('ccc2');
	hide('cdl1');
	hide('cdl2');
	hide('cdl3');
	hide('cdl4');
	hide('cdl5');
	hide('cdl6');
	hide('cdl7');
	hide('cdl8');
	hide('cdl9');
	hide('cdl10');
	show('colorcopy');
}
function hidecolorblocks()
{
	hide('rsccolors');
	hide('hsscolors');
	hide('hlbcolors');
	hide('ppccolors');
	hide('ccpcolors');
	hide('ccccolors');
	hide('cdlcolors');
	show('sidinglogos');
	hide('colorcopy');
}

