function resize(){var a=$$("#size img");if(Cookie.read("size")==""){prefSize=Cookie.write("size","s",{path:"/"})}if(Cookie.read("size")=="m"){$(document.body).getElements("*").each(function(b){if(b.tagName!="OBJECT"){b.setStyle("font-size",b.getStyle("font-size").toInt()+1)}});$("m").src=jspath+"images/A2_on.gif";$("s").src=jspath+"images/A1.gif";$("l").src=jspath+"images/A3.gif";if(Browser.Engine.trident&&Browser.Engine.version==5){$$("#leftnav a").setStyle("padding-top","7px")}}else{if(Cookie.read("size")=="l"){$(document.body).getElements("*").each(function(b){if(b.tagName!="OBJECT"){b.setStyle("font-size",b.getStyle("font-size").toInt()+2)}});$("m").src=jspath+"images/A2.gif";$("s").src=jspath+"images/A1.gif";$("l").src=jspath+"images/A3_on.gif";if(Browser.Engine.trident&&Browser.Engine.version==5){$$("#leftnav a").setStyle("padding-top","5px")}}else{resizeS();$("s").src=jspath+"images/A1_on.gif";if(Browser.Engine.trident&&Browser.Engine.version==5){$$("#leftnav a").setStyle("padding-top","10px")}}}a[0].addEvent("click",resizeS);a[1].addEvent("click",resizeM);a[2].addEvent("click",resizeL)}function resizeS(){if(Cookie.read("size")=="m"){$(document.body).getElements("*").each(function(a){if(a.tagName!="OBJECT"){a.setStyle("font-size",a.getStyle("font-size").toInt()-1)}})}else{if(Cookie.read("size")=="l"){$(document.body).getElements("*").each(function(a){if(a.tagName!="OBJECT"){a.setStyle("font-size",a.getStyle("font-size").toInt()-2)}})}}$("m").src=jspath+"images/A2.gif";$("s").src=jspath+"images/A1_on.gif";$("l").src=jspath+"images/A3.gif";prefSize=Cookie.write("size","s",{path:"/"});if(Browser.Engine.trident&&Browser.Engine.version==5){$$("#leftnav a").setStyle("padding-top","7px")}}function resizeM(){if(Cookie.read("size")=="s"){$(document.body).getElements("*").each(function(a){if(a.tagName!="OBJECT"){a.setStyle("font-size",a.getStyle("font-size").toInt()+1)}})}else{if(Cookie.read("size")=="l"){$(document.body).getElements("*").each(function(a){if(a.tagName!="OBJECT"){a.setStyle("font-size",a.getStyle("font-size").toInt()-1)}})}}$("m").src=jspath+"images/A2_on.gif";$("s").src=jspath+"images/A1.gif";$("l").src=jspath+"images/A3.gif";prefSize=Cookie.write("size","m",{path:"/"});if(Browser.Engine.trident&&Browser.Engine.version==5){$$("#leftnav a").setStyle("padding-top","7px")}}function resizeL(){if(Cookie.read("size")=="s"){$(document.body).getElements("*").each(function(a){if(a.tagName!="OBJECT"){a.setStyle("font-size",a.getStyle("font-size").toInt()+2)}})}else{if(Cookie.read("size")=="m"){$(document.body).getElements("*").each(function(a){if(a.tagName!="OBJECT"){a.setStyle("font-size",a.getStyle("font-size").toInt()+1)}})}}$("m").src=jspath+"images/A2.gif";$("s").src=jspath+"images/A1.gif";$("l").src=jspath+"images/A3_on.gif";prefSize=Cookie.write("size","l",{path:"/"});if(Browser.Engine.trident&&Browser.Engine.version==5){$$("#leftnav a").setStyle("padding-top","5px")}}function targetBlank(a){var d="You are now leaving PKU.com and moving to an external website.  If you do not wish to leave this site, click Cancel or click OK to continue.<br /><a>"+a+"</a>";var b="370",j="180";var e=(screen.width/2)-b/2;var h=(screen.height/2)-j/2;var f="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width="+b+",height="+j+",left="+e+",top="+h+",screenX="+e+",screenY="+h+"'";var i="<head><title>PKU.com</title><style type='text/css'>body{font-family:arial;font-size:12px;}</style><script type='text/javascript'>var link = '"+a+"'<\/script></head>";var g="<p>"+d+'<p><center><form><input type="button" value="OK" onClick="window.open(link); self.close();">&nbsp;&nbsp;<input type="button" value="Cancel" onClick="self.close();"></form></center>';var c=window.open("","msgWindow",f);c.document.write(i+g)}function openRef(d){var b=document.getElementsByTagName("base");var a=b[0].href;var c=a+"references.html#"+d;window.open(c,"refWin","width=600, height=300, scrollbars=yes")}function openRefHcp(d){var b=document.getElementsByTagName("base");var a=b[0].href;var c=a+"hcp_references.html#r"+d;window.open(c,"refWin","width=600, height=300, scrollbars=yes")}function tabFix(){if(typeof(profile_tab)!="undefined"){var b=document.getElementById("tabs");var a=b.getElementsByTagName("li");var c=a.length-1;a[c].className="last"}}function initSlider(){if($("c_tab")){$("t_5").setStyle("border-right","none");var a=$("c_tab").getElements("li");a.addEvent("click",function(){var b=new Fx.Tween("c_block");if(this.id=="t_1"){b.start("margin-left",0);this.addClass("active");$("t_2").removeClass("active");$("t_4").removeClass("active");$("t_5").removeClass("active")}if(this.id=="t_2"){b.start("margin-left",-642);this.addClass("active");$("t_1").removeClass("active");$("t_4").removeClass("active");$("t_5").removeClass("active")}if(this.id=="t_4"){b.start("margin-left",-1284);this.addClass("active");$("t_2").removeClass("active");$("t_1").removeClass("active");$("t_5").removeClass("active")}if(this.id=="t_5"){b.start("margin-left",-1926);this.addClass("active");$("t_2").removeClass("active");$("t_4").removeClass("active");$("t_1").removeClass("active")}})}}function preloader(){var a=0;imageObj=new Image();images=new Array();images[0]=jspath+"images/bg_leftnav_darkgrey.gif";images[1]=jspath+"images/bg_leftnav_darkmagenta.gif";images[2]=jspath+"images/bg_leftnav_hover.gif";images[3]=jspath+"images/bg_lnav_2nd_arrow_down.gif";images[4]=jspath+"images/bg_lnav_2nd_mag_arrow_hover.gif";images[5]=jspath+"images/bg_lnav_2nd_magenta.gif";images[6]=jspath+"images/bg_lnav_2nd_magenta_arrow.gif";images[7]=jspath+"images/bg_lnav_3rd_grey.gif";images[8]=jspath+"images/bg_lnav_3rd_grey_hover.gif";images[9]=jspath+"images/bg_lnav_first.gif";images[10]=jspath+"images/bg_lnav_first_hover.gif";images[11]=jspath+"images/bg_lnav_last.gif";images[12]=jspath+"images/bg_lnav_last_hover.gif";images[13]=jspath+"images/bg_lnav_lightgrey.gif";for(a=0;a<=13;a++){imageObj.src=images[a]}};

function targetBlankTrack(a){
var d="You are now leaving PKU.com and moving to an external website.  If you do not wish to leave this site, click Cancel or click OK to continue.<br /><a>"+a+"</a>";
var b="370",j="180";
var e=(screen.width/2)-b/2;var h=(screen.height/2)-j/2;
var f="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width="+b+",height="+j+",left="+e+",top="+h+",screenX="+e+",screenY="+h+"'";

var i="<head><title>PKU.com</title><style type='text/css'>body{font-family:arial;font-size:12px;}</style><script type='text/javascript' src='./include/js/mootools12.js'></script><script type='text/javascript'>function track(){var myAjax = new Request({method:'get',url:'./track.php'}); myAjax.send('id=1')} var link = '"+a+"'<\/script></head>";

var g="<p>"+d+'<p><center><form><input type="button" value="OK" onClick="track();window.open(link); self.close();">&nbsp;&nbsp;<input type="button" value="Cancel" onClick="self.close();"></form></center><div id=\'responseDiv\'></div>';
var c=window.open("","msgWindow",f);c.document.write(i+g);
}
/*
function move_up(){
	var c = $('news').getStyle('margin-top').toInt();
	var h = $('news').getStyle('height').toInt();
	//c = c.replace('px', '') * 1;
	//h = h.replace('px', '') * 1;
	if((c*-1) < (h-70)){
	$('news').tween('margin-top', c + ndiff);
	}
}
function move_dn(){
	var c = $('news').getStyle('margin-top').toInt();
	var h = $('news').getStyle('height').toInt();
	c = c.replace('px', '') * 1;
	h = h.replace('px', '') * 1;
	//alert(c);
	if(c < 0){
	$('news').tween('margin-top', c + 50);
	}

}
*/

function scroll(){
	if($('news')!=null){
	var h = $('news').getStyle('height').toInt();
	var t = $('news').getStyle('margin-top').toInt();
	
	n += -1;
	if(t==(h*-1)){
	$('news').setStyle('margin-top', 70);
	n = 70;
	}
	else{
	$('news').setStyle('margin-top', n);
	}
	}
}

