<!--
// rollover script
var oldSrc;
 		function Mid(str, start, len)
         {
                 if (start < 0 || len < 0) return "";
                 var iEnd,iLen;
				 iLen = String(str).length;
                 if (start + len < iLen){
                         iEnd = iLen;}
                 else{iEnd = start + len;}
                 return String(str).substring(start,iEnd);
         }
 
 function preloadImages() {
	 var num = document.images.length;
	 var img,posn,temp,orig,newsrc;
	 var preload = new Array(); 
	 for(var i = 0; i<num; i++) {
	 	img = document.images[i].src;
	 	posn = img.indexOf("nav_");
	 		if(posn > -1){
			 dot = img.lastIndexOf(".");
			 temp = img.substr(dot,img.length);
			 orig = img.substr(0,dot);
			 newsrc = orig + "_lit" + temp;
	 
	 	 preload[i] = new Image();
	     preload[i].src = newsrc;
		 }
 	}
 } 
 function getSrc(n){
    img = n.toString(); 
 	eval("n = document." + img + ".src"); 
 	if(n.indexOf("_lit")< 0){
 		dot = n.lastIndexOf(".");
 		temp = n.substr(dot,n.length).toString();
		orig = n.substr(0,dot).toString();
		newsrc = orig + "_lit" + temp;
	 	newsrc = newsrc.toString();
 	return newsrc;
 	}
	else{return n;}
 }
    function swap(imgname) {
       n = arguments[0].toString();
   		eval("oldSrc = document." + n + ".src");
   		old = n;
  		eval("document." + n + ".src=getSrc('" + imgname + "')");
 }
 function restore(){
      eval("document." + img + ".src=oldSrc");
 
 }
// open_window function for pop-ups

function open_Window(url, win) {
	popupWin = window.open(url, win, 'width=370,height=380,left=10,top=10,toolbar,menubar,status,location,resizable')
}

function open_Window_jp(url, win) {
	popupWin = window.open(url, win, 'width=370,height=570,left=10,top=10,toolbar,menubar,status,location,resizable')
}

function open_ExternalLinksDisclaimer(url){
	url = escape(url);
	
	var attendance_form = window.open('/includes/ext_links_disclaimer.asp?url=' + url, 'Inco','width=443,taskbar=yes,height=390,left=200,top=50')
}

function registerDownload(title,fileName,lang){
var sUrl='';
var registerWin;
if (fileName != ''){
sUrl = "/library/register.asp?filename="+fileName+"&lang="+lang+"&title="+title;
//alert(sUrl);
	registerWin = window.open(sUrl, 'Registration', 'width=500,height=600,left=10,top=10,resizable')
	if (window.focus) {registerWin.focus();}
}
}
  
// -->