var pageWidth,pageHeight,isLoaded,startX,startY,curX,curY;
var pageCode=location.pathname.replace(/(.asp)/,"");

function generalInit(){
	isLoaded=true;
	DynObjectInit();
	window.onresize=resizer;
}


function resizer(){
	if(pageWidth&&ns4&&(pageWidth!=window.innerWidth))window.location.reload();
	pageWidth=ns ? window.innerWidth : document.body.clientWidth;
	pageHeight=ns ? window.innerHeight : document.body.clientHeight;
	if(ie6)pageHeight = document.documentElement.clientHeight;
	contentAreaDiv.moveTo(-(771-pageWidth)/2,-(404-pageHeight)/2);
}

function jump(what) 
	{ 
	var loc = (what);
 	var newWin = window.open(loc,"myWin", "toolbar=no,width=320,height=400,directories=no,status=no,scrollbars=yes,resize=no,menubar=no, top=0")
  	
	} 
function jumpComp(what) 
	{ 
	var loc = (what);
 	var newWin = window.open(loc,"myWin", "toolbar=no,width=355,height=300,directories=no,status=no,scrollbars=yes,resize=no,menubar=no, top=0")
  	
	} 	
	
 if	(ns) {document.write('<link rel="stylesheet" href="css/ns.css" />')}
else {document.write('<link rel="stylesheet" href="css/ie.css" />')}	


function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}

