//core.js
//core functionality

//____popups__________________________________________________________________________________________________________________________________

//usage: <a href="mypage.htm" onClick="popUp('mypage.htm','small'); return false;" target="_blank" title="Popup HyperLink">Link Text</a>
//usage: <a href="mypage.htm" onClick="popUp('mypage.htm','none',400,550); return false;" target="_blank" title="Popup HyperLink">Link Text</a>
//usage: <a href="mypage.htm" onClick="popUp('mypage.htm'); return false;" target="_blank" title="Popup HyperLink">Link Text</a>

function popUp(newPage,popMode,popWidth,popHeight)  {
	var popProperties = "width=715, height=400, left=0, top=0, scrollbars=0,resizable=yes";
	activityWindow = window.open(newPage, '', popProperties);
	activityWindow.focus();
}

//_________end popups__________________________________________________________________________________________________________________________


//_________setting value for scroll attribute of body tag______________________________________________________________________________________

//sets scroll to no for IE/Windows and yes for everything else. This avoids double scroll bars (the style3000 CSS uses divs which have scrolling)

function setScrollValue(){
	if(navigator.userAgent.indexOf("MSIE") != -1 && navigator.platform.indexOf("Mac") == -1){
		document.getElementsByTagName("body")[0].setAttribute("scroll","no");
	}else{
		document.getElementsByTagName("body")[0].setAttribute("scroll","yes");
	}
}
//_________end setting value for scroll attribute of body tag__________________________________________________________________________________