<!--
/*======================================================================================================*/
function SetLeftMenu() {
	xLEFT=document.getElementById("left");
	xRIGHT=document.getElementById("right");
	if (xLEFT&&xRIGHT) {
		xLEFTheight=xLEFT.offsetHeight;
		xRIGHTheight=xRIGHT.offsetHeight;
		if (xLEFTheight<xRIGHTheight) {
			xLEFT.style.height=xRIGHTheight+"px";
		}//end if (xLEFTheight<xRIGHTheight)
	}//end if (xLEFT&&xRIGHT)
}//end function
/*======================================================================================================*/
function SetTrMouseOvers() {
	xTables=document.getElementsByTagName("table");
	for (t=0;t<xTables.length;t++) {
		xTableClass=xTables[t].className;
		if (xTableClass=="datatable") {
			xTRs=xTables[t].getElementsByTagName("tr");
			for (tr=0;tr<xTRs.length;tr++) {
				xTRid="tr"+t+tr;
				xTRs[tr].id=xTRid;
				thisTR=document.getElementById(xTRid);
				thisTR.onmouseover=function() {
					this.className="overrow";
				}//end fucntion
				if (tr % 2) {
					thisTR.className="evenrow"
					thisTR.onmouseout=function() {
						this.className="evenrow";
					}//end fucntion
				} else {
					thisTR.className="oddrow"
					thisTR.onmouseout=function() {
						this.className="oddrow";
					}//end fucntion
				}//end if (tr % 2)
			}//next tr<=xTRs.length
		}//end if (xTableClass=="hotlist")
	}//next t<xTables.length
}//end function
/*======================================================================================================*/
function setOpacity(xDiv, xOpac, xDirection) {
	xDiv=document.getElementById(xDiv)
    xDiv.style.opacity=(xOpac/100);
    xDiv.style.MozOpacity=(xOpac/100);
    xDiv.style.KhtmlOpacity=(xOpac/100);
    xDiv.style.filter='alpha(opacity='+xOpac+')';
	document.getElementById("xopacdiv").value=xOpac;
	if (xDirection=="down") {
		if (xOpac==0) {
			xDiv.innerHTML='';
		}//end if (xOpac=="0")
	}//end if (xDirection=="down")
}//end function
/*======================================================================================================*/
function SwapImages() {
	ximgdiv1=document.getElementById("imgdiv1")
	ximgdiv2=document.getElementById("imgdiv2")
	if (ximgdiv1&&ximgdiv2) {
		if (document.getElementById("xopacdiv").value==100) {
			setTimeout("setRandomImage(\"imgdiv2\")", 5000);
			for (o=0;o<=100;o++) {
				ot=o*10;
				op=100-(o);
				setTimeout("setOpacity(\"imgdiv2\", "+op+", \"down\")", ot);
			}//next
		} else {
			setTimeout("setRandomImage(\"imgdiv1\")", 1001);
			for (o=0;o<=100;o++) {
				ot=o*10;
				op=o;
				setTimeout("setOpacity(\"imgdiv2\", "+op+", \"up\")", ot);
			}//next
		}//end if (document.getElementById("xopacdiv").value)
	}//end if (ximgdiv1&&ximgdiv2)
}//end function
/*======================================================================================================*/
function popup(xIMAGEid) {
	xPOPUPurl="http://www."+document.domain.replace("www.", "")+"/components/site_popup.asp?"+xIMAGEid;
	showModalDialog(xPOPUPurl,null,"dialogHeight:395px;dialogWidth:500px;resizable:no;scroll:no;status:no;unadorned:yes;");
}//end function
/*======================================================================================================*/
function SetHighlights() {
	xInputs=document.getElementsByTagName("input");
	for (i=0;i<xInputs.length;i++) {
		if (xInputs[i].type=="text") {
			xInputs[i].onfocus=function() {
					if (this.defaultValue==this.value) {
						this.select();
					}//end if ()
				}//end function
			xInputs[i].onmouseup=function(){return false};//because safari is special
		}//end if (xInputs[i].type=="text")
	}//next i<xInputs.length
	xTextAreas=document.getElementsByTagName("textarea");
	for (i=0;i<xTextAreas.length;i++) {
		xTextAreas[i].onfocus=function() {
				if (this.defaultValue==this.value) {
					this.select();
				}//end if ()
			}//end function
		xTextAreas[i].onmouseup=function(){return false};//because safari is special
	}//next i<xTextAreas.length
}//end function
/*======================================================================================================*/
/*copy protection, such that it is....*/
var message="Copyrighted Content";
function clickIE4() {
	if (event.button==2) {
		alert(message);
		return false;
	}//end if (event.button==2)
}//end function
/*======================================================================================================*/
function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all) {
		if (e.which==2||e.which==3) {
			alert(message);
			return false;
		}//end if (e.which==2||e.which==3)
	}//end if (document.layers||document.getElementById&&!document.all)
}//end function
/*======================================================================================================*/
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
} else if (document.all&&!document.getElementById) {
	document.onmousedown=clickIE4;
}//end if (document.layers)
/*======================================================================================================*/
document.oncontextmenu=new Function("alert(message);return false");
/*======================================================================================================*/
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}//end function
/*======================================================================================================*/
setTimeout("document.onkeydown=\"MM_goToURL('parent','javascript:;');return document.MM_returnValue\"", 2000)
/*======================================================================================================*/
window.onload=function () {
	SetTrMouseOvers();
	SetLeftMenu();
	SetHighlights();
	setInterval("SwapImages()", 5000);
}//end function
/*======================================================================================================*/
-->
