$(function(){$(document).pngFix()});function favorite(b){var c=window.document.location;var d=window.document.title;if(window.sidebar){window.sidebar.addPanel(d,c,"")}else{if(window.external&&typeof(window.external.AddFavorite)!="undefined"){window.external.AddFavorite(c,d)}else{if(window.opera&&window.print){b.href=c;b.rel="sidebar";b.title=c+","+d;return true}else{alert("Press CTRL-D, to add this page to bookmark!")}}}return false}function getScroll(){xScroll=0;yScroll=0;if(window.innerHeight&&window.scrollMaxY||window.innerWidth&&window.scrollMaxX){yScroll=window.innerHeight+window.scrollMaxY;xScroll=window.innerWidth+window.scrollMaxX;var e=document.documentElement;var f=(e&&e.clientWidth)||document.body.clientWidth||window.innerWidth||self.innerWidth;var d=(e&&e.clientHeight)||document.body.clientHeight||window.innerHeight||self.innerHeight;xScroll-=(window.innerWidth-f);yScroll-=(window.innerHeight-d)}else{if(document.body.scrollHeight>document.body.offsetHeight||document.body.scrollWidth>document.body.offsetWidth){yScroll=document.body.scrollHeight;xScroll=document.body.scrollWidth}else{yScroll=document.body.offsetHeight;xScroll=document.body.offsetWidth}}return new Array(xScroll,yScroll)}function showLoginForm(){var a=getScroll();$("#screen").css("width",a[0]+"px").css("height",a[1]+"px").css("display","block");$("#loginForm").css("left",(a[0]/2-270)+"px");$("#loginForm").fadeIn(500,function(){});$("#uName").focus();return false}function hideLoginForm(){$("#loginForm").fadeOut(500,function(){});$("#screen").css("display","none")}$.ctrl=function(b,c,a){$(document).keydown(function(d){if(!a){a=[]}if(d.keyCode==b&&d.ctrlKey){c.apply(this,a);return false}})};