function addfavorite(title, url) { if (document.all) window.external.AddFavorite(url, title); else if (window.sidebar) window.sidebar.addPanel(title, url, "") } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } function fixHeader() { if (document.getElementById("main").getElementsByTagName("h1")[0]) { document.getElementById("main").getElementsByTagName("h1")[0].className = "h1fc"; } } function nypopup(pagename, bredd, hojd) { var top = Math.round((screen.height-hojd)/2); var left = Math.round((screen.width-bredd)/2); window.open (pagename, 'newwindow','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, fullscreen=no, top=' + top + ', left=' + left + ', width=' + bredd + ', height=' + hojd); } function clearText(input) { if (input.defaultValue==input.value) input.value = '' } function restoreText(input) { if (input.value=='') input.value = input.defaultValue } /* if (top.location != location) { top.location.href = document.location.href; } */ function onErrorImgs() { var elms = document.images; for (var i = 0; i < elms.length; i++) { var elm = elms[i]; if (elm.width == "88") { elm.onerror = function() { this.src = "/images/onerror.gif"; } } } } addLoadEvent(fixHeader); addLoadEvent(onErrorImgs); Hilite={elementid:'content',exact:true,max_nodes:1000,onload:true,style_name:'hilite',style_name_suffix:true,debug_referrer:''};Hilite.search_engines=[['^http://(www)?\\.?google.*','q='],['^http://search\\.yahoo.*','p='],['^http://search\\.msn.*','q='],['^http://search\\.aol.*','userQuery='],['^http://(www\\.)?altavista.*','q='],['^http://(www\\.)?feedster.*','q='],['^http://search\\.lycos.*','query='],['^http://(www\\.)?alltheweb.*','q=']];Hilite.decodeReferrer=function(referrer){var query=null;var match=new RegExp('');for(var i=0;i0){count++;if(count>=Hilite.max_nodes){var handler=function(){Hilite.walkElements(node,depth,textproc);};setTimeout(handler,50);return;}if(node.nodeType==1){if(!skipre.test(node.tagName)&&node.childNodes.length>0){node=node.childNodes[0];depth++;continue;}}else if(node.nodeType==3){node=textproc(node);}if(node.nextSibling){node=node.nextSibling;}else{while(depth>0){node=node.parentNode;depth--;if(node.nextSibling){node=node.nextSibling;break;}}}}};if(Hilite.onload){if(window.attachEvent){window.attachEvent('onload',Hilite.hilite);}else if(window.addEventListener){window.addEventListener('load',Hilite.hilite,false);}else{var __onload=window.onload;window.onload=function(){Hilite.hilite();__onload();};}} var ie=document.all; var dom=document.getElementById; function changeStyle(selector,property,value){ if (document.styleSheets[0].cssRules) {styleSheetRules=document.styleSheets[0].cssRules;} else if (document.styleSheets[0].rules) {styleSheetRules=document.styleSheets[0].rules;} for (i = 0; i < styleSheetRules.length; i++){ if (styleSheetRules[i].selectorText.toLowerCase() == selector.toLowerCase()){ //find selector rule if (property == 'color' || property == 'backgroundColor'){ // Dont change css value if the color isn't valid or IE returns error var color = new RGBColor(value); if (color.ok) { // 'ok' is true when the parsing was a success value = color.toHex(); eval ("styleSheetRules[i].style." + property + "='" + value + "'"); } }else { // targetrule=styleSheetRules[i] eval ("styleSheetRules[i].style." + property + "='" + value + "'"); } break; } } } var pos = -22; function moveDown() { if (pos == -22){ document.getElementById('attention').style.display = "block"; } if (pos < 0){ recursionHack = setTimeout("moveDown()", 1); } else { recursionHack = setTimeout("showClose()", 50000); } changeStyle('#attention','top',(pos+'px')); pos=pos+2; }