var browser = navigator.userAgent.toLowerCase().toString(); var IE = (browser.indexOf ('msie') + 1) ? true : false; var Moz = (browser.indexOf ('gecko') + 1) ? true : false; var Opera = (browser.indexOf ('opera') + 1) ? true : false; var FFnew = (browser.indexOf ('firefox/1.4') + 1) ? true : false; if (!FFnew) FFnew = (browser.indexOf ('firefox/1.5') + 1) ? true : false; //crap bugfix for 1.5 final if (Opera) {IE=false; Moz=false; FFnew=false;} function resize_headers(){ var imgs=document.getElementsByTagName("img"); for (var i=imgs.length-1; i>=0; i--){ if (imgs[i].className=='resize_me'){ imgs[i].style.width=parseInt(document.body.offsetWidth)-60; } if (imgs[i].className=='resize_me_c'){ imgs[i].style.height=imgs[i].parentNode.parentNode.childNodes[1].firstChild.childNodes[1].scrollHeight; } else if (imgs[i].className=='resize_me_b'){ var w=parseInt(document.body.offsetWidth)-60; var h=imgs[i].nextSibling.scrollHeight; imgs[i].nextSibling.style.top= - h; //move the text (div lol2) upwards imgs[i].parentNode.style.height= h; //div lol imgs[i].parentNode.style.width = w; //div lol imgs[i].style.width=w; imgs[i].style.height=h; } } } function beginWin(img_folder){ var s='' +'
' +' | ' +'' +' | ' +'' +' | ||
' +'' +' | '; if (!(IE || Opera)){ s+=''; }else { if (img_folder=="../pic/window2/") s+=' | '; else s+=' | ';
}
s+=' '
+''
+' '
+''
+'';
document.write(s);
}
function endWin(img_folder){
var s=''
+' '
+' | '
+'' +'' +' | ' +'
' +' | ' +'' +' | ' +'' +' |