function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } function getActiveStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title"); } return null; } function getPreferredStyleSheet() { var i, a; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title") ) return a.getAttribute("title"); } return null; } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } window.onload = function(e) { var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); } window.onunload = function(e) { var title = getActiveStyleSheet(); createCookie("style", title, 365); } var cookie = readCookie("style"); var title = cookie ? cookie : getPreferredStyleSheet(); setActiveStyleSheet(title); function popup(url){ doWin(url,560,480); } function gallery(url){ doWin(url,785,585); } function minipopup(url){ doWin(url,300,150); } function bigpopup(url){ doWin(url,800,600); } function mm(url){ doWin(url,770,635); } function doWin(url,x,y){ var pop_features = 'width=' + x + ',height=' + y + ',left=10,top=10,scrollbars=yes,toolbars=no,resizable=yes'; var pop_target = ''; window.open(url, pop_target, pop_features); } function ajax(path,targetDiv,qstring) { ajaxTimeout = setTimeout('onAjaxTimeout(\'' + path + '\',\'' + targetDiv + '\')',3000); var req = new XMLHttpRequest(); if (req) { document.getElementById(targetDiv).innerHTML = '
Loading...<\/p>'; req.onreadystatechange = function() { if (req.readyState == 4 && req.status == 200) { document.getElementById(targetDiv).innerHTML = req.responseText; clearTimeout(ajaxTimeout); } }; if(!qstring){ req.open('GET', path); req.send(null); } else {req.open('POST', path); req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); req.send(qstring); } } } /* Cross-Browser XMLHttpRequest v1.1 ==================================== Emulate Gecko 'XMLHttpRequest()' functionality in IE and Opera. Opera requires the Sun Java Runtime Environment
Browsers without support include Internet Explorer for Macintosh and some versions of Opera. Learn how to upgrade for free.
'; } function expand(fromLink,contentPath,targetDiv,description){ var linktext = document.getElementById(fromLink.id).childNodes[0].nodeValue.split(" ")[0]; if (linktext == "Show"){ document.getElementById(targetDiv).style.display = 'block'; document.getElementById(fromLink.id).childNodes[0].nodeValue = "Hide " + description; ajax(contentPath,targetDiv); return false; } else { document.getElementById(targetDiv).style.display = 'none'; document.getElementById(fromLink.id).childNodes[0].nodeValue = "Show " + description; return false;} } function openMP(the_url) { var the_height_width = "height=600,width=890" + ",menubar=no,location=no,toolbar=no,resizable=no,scrollbars=no,status=no"; if (navigator.appName.indexOf("Microsoft") != -1) { the_height_width += ",left=" + ((screen.availWidth - 890) *.5) + ",top=" + ((screen.availHeight - 600) *.5); } else if (navigator.appName.indexOf("Netscape") != -1) { the_height_width += ",screenX=" + ((screen.availWidth - 890) *.5) + ",screenY=" + ((screen.availHeight - 600) *.5); } window.open(the_url,"_blank",the_height_width); }