// Check browser type
var isDOM = false, isIE4 = false, isNN4 = false, keyCode = false;
if( document.layers ) isNN4 = true;
else if( document.all ) isIE4 = true;
else if( document.getElementById ) isDOM = true;


// Handles mouse over images
function active( state, element ) {
 var img = element.firstChild;
 if( !img.orginalSrc & state == "on" ){
 img.orginalSrc = new String( img.src.replace( ".gif", "" ) );
 img.orginalWidth = img.width;
 }
 if( state == "on" ) { img.src = img.orginalSrc + "_over.gif"; img.width = img.orginalWidth; }
 if( state == "off" ) { img.src = img.orginalSrc + ".gif"; img.width = img.orginalWidth; }
 return true;
}

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

