//try {window.addEventListener("resize", fixHeight, true);} catch(e) {}; //try {window.attachEvent("onresize",fixHeight);} catch(e) {}; var pageHeight; function init() { //fixHeight(); initialized=true; document.getElementById("link_").style.backgroundColor="#cc9900"; document.getElementById("link_").style.color="#111111"; } function fixHeight() { try { var height=getWindowSize(); height=height.height; if (height<590) { height=590; //document.body.style.overflow = 'auto'; } //else document.body.style.overflow = 'hidden'; document.getElementById("container").style.height=(height)+"px"; if (document.all) document.getElementById("content").style.height=(height-230)+"px"; else document.getElementById("content").style.height=(height-215)+"px"; if (height-545>0) document.getElementById("uoregon_logo").style.top=(height-40)+"px"; setTimeout("checkHeight(" + height + ")",485); } catch (e) { setTimeout("fixHeight()",500); } } function checkHeight(currentHeight) { var height=getWindowSize(); windowHeight=height.height; if (windowHeight<595) windowHeight=595; if (currentHeight!=windowHeight) fixHeight(); } function getWindowSize() { temp=new Object(); temp.width=0; temp.height=0; if (typeof(window.innerWidth)=='number') { temp.width = window.innerWidth; temp.height = window.innerHeight; } else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { temp.width = document.documentElement.clientWidth; temp.height = document.documentElement.clientHeight; } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { temp.width = document.body.clientWidth; temp.height = document.body.clientHeight; } return temp; } function move_arr(color,row) { document.getElementById("arr_"+color).style.marginTop=parseInt(row*14.25+.5)+"px" } var popUpWin=null; var currentLocation=null; var returnLocation=null; function popUpWindow(URLStr, left, top, width, height) { if (popUpWin) { if(!popUpWin.closed) popUpWin.close(); else { currentLocation=null; returnLocation=null; } } popUpWin = open(URLStr, 'commments', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+''); } function notePopup(url) { returnLocation=currentLocation; currentLocation=url; } function logout() { setCookie("username","",0,"/"); setCookie("password","",0,"/"); document.getElementById("account_info").innerHTML="log in | sign up"; if (popUpWin && !popUpWin.closed) { popUpWin.close(); currentLocation=null; returnLocation=null; } } function setCookie(name, value, expires, path, domain, secure) { document.cookie= name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); }