/* This file is modified. Please visit: http://www.blackviper.com/Admin/credits.htm for more information. */
function event_attach(a,c){if(window.attachEvent)window.attachEvent(a,c);else if((typeof c).toLowerCase()=="function"){if((typeof document.event_handlers).toLowerCase()=="undefined")document.event_handlers=[];if((typeof document.event_handlers[a]).toLowerCase()=="undefined")document.event_handlers[a]=[];(typeof eval("window."+a)).toLowerCase()!="function"&&eval("window."+a+" = function () { if ( ( typeof( document.event_handlers[ '"+a+"' ] ) ).toLowerCase() != 'undefined' ) { for ( i = document.event_handlers[ '"+
a+"' ].length - 1 ; i >= 0  ; i-- ) { document.event_handlers[ '"+a+"' ][ i ](); } } } ");document.event_handlers[a][document.event_handlers[a].length]=c}}
function browser_detect(){var a=navigator.userAgent.toLowerCase();this.isGecko=a.indexOf("gecko")!=-1&&a.indexOf("safari")==-1;this.isAppleWebKit=a.indexOf("applewebkit")!=-1;this.isKonqueror=a.indexOf("konqueror")!=-1;this.isSafari=a.indexOf("safari")!=-1;this.isOmniweb=a.indexOf("omniweb")!=-1;this.isDreamcast=a.indexOf("dreamcast")!=-1;this.isOpera=a.indexOf("opera")!=-1;this.isIcab=a.indexOf("icab")!=-1;this.isAol=a.indexOf("aol")!=-1;this.isIE=a.indexOf("msie")!=-1&&!this.isOpera&&a.indexOf("webtv")==
-1;this.isMozilla=this.isGecko&&a.indexOf("gecko/")+14==a.length;this.isFirebird=a.indexOf("firebird/")!=-1;this.isNS=this.isGecko?a.indexOf("netscape")!=-1:a.indexOf("mozilla")!=-1&&!this.isOpera&&!this.isSafari&&a.indexOf("spoofer")==-1&&a.indexOf("compatible")==-1&&a.indexOf("webtv")==-1&&a.indexOf("hotjava")==-1;this.isIECompatible=a.indexOf("msie")!=-1&&!this.isIE;this.isNSCompatible=a.indexOf("mozilla")!=-1&&!this.isNS&&!this.isMozilla;this.geckoVersion=this.isGecko?a.substring(a.lastIndexOf("gecko/")+
6,a.lastIndexOf("gecko/")+14):-1;this.equivalentMozilla=this.isGecko?parseFloat(a.substring(a.indexOf("rv:")+3)):-1;this.appleWebKitVersion=this.isAppleWebKit?parseFloat(a.substring(a.indexOf("applewebkit/")+12)):-1;this.versionMinor=parseFloat(navigator.appVersion);if(this.isGecko&&!this.isMozilla)this.versionMinor=parseFloat(a.substring(a.indexOf("/",a.indexOf("gecko/")+6)+1));else if(this.isMozilla)this.versionMinor=parseFloat(a.substring(a.indexOf("rv:")+3));else if(this.isIE&&this.versionMinor>=
4)this.versionMinor=parseFloat(a.substring(a.indexOf("msie ")+5));else if(this.isKonqueror)this.versionMinor=parseFloat(a.substring(a.indexOf("konqueror/")+10));else if(this.isSafari)this.versionMinor=parseFloat(a.substring(a.lastIndexOf("safari/")+7));else if(this.isOmniweb)this.versionMinor=parseFloat(a.substring(a.lastIndexOf("omniweb/")+8));else if(this.isOpera)this.versionMinor=parseFloat(a.substring(a.indexOf("opera")+6));else if(this.isIcab)this.versionMinor=parseFloat(a.substring(a.indexOf("icab")+
5));this.versionMajor=parseInt(this.versionMinor,10);this.isDOM1=document.getElementById;this.isDOM2Event=document.addEventListener&&document.removeEventListener;this.mode=document.compatMode?document.compatMode:"BackCompat";this.isWin32=(this.isWin=a.indexOf("win")!=-1)&&(a.indexOf("95")!=-1||a.indexOf("98")!=-1||a.indexOf("nt")!=-1||a.indexOf("win32")!=-1||a.indexOf("32bit")!=-1||a.indexOf("xp")!=-1);this.isMac=a.indexOf("mac")!=-1;this.isUnix=a.indexOf("unix")!=-1||a.indexOf("sunos")!=-1||a.indexOf("bsd")!=
-1||a.indexOf("x11")!=-1;this.isLinux=a.indexOf("linux")!=-1;this.isNS40x=(this.isNS4x=this.isNS&&this.versionMajor==4)&&this.versionMinor<4.5;this.isNS47x=this.isNS4x&&this.versionMinor>=4.7;this.isNS4up=this.isNS&&this.versionMinor>=4;this.isNS6x=this.isNS&&this.versionMajor==6;this.isNS6up=this.isNS&&this.versionMajor>=6;this.isNS7x=this.isNS&&this.versionMajor==7;this.isNS7up=this.isNS&&this.versionMajor>=7;this.isIE4x=this.isIE&&this.versionMajor==4;this.isIE4up=this.isIE&&this.versionMajor>=
4;this.isIE5x=this.isIE&&this.versionMajor==5;this.isIE55=this.isIE&&this.versionMinor==5.5;this.isIE5up=this.isIE&&this.versionMajor>=5;this.isIE6x=this.isIE&&this.versionMajor==6;this.isIE6up=this.isIE&&this.versionMajor>=6;this.isIE7x=this.isIE&&this.versionMajor==7;this.isIE7up=this.isIE&&this.versionMajor>=7;this.isIE4xMac=this.isIE4x&&this.isMac}
function set_min_width(a,c,b){if((typeof b).toLowerCase()=="undefined")b=true;if(b===false||document.getElementById&&navigator.appVersion.indexOf("MSIE")>-1&&!window.opera){document.min_width_obj_name=a;document.min_width_size=c;document.resizing=false;event_attach("onload",control_min_width);event_attach("onresize",control_min_width)}}
function control_min_width(){var a,c,b,d,e,f,g,h;a=document.min_width_obj_name;var i=document.getElementById(a);c=parseInt(document.min_width_size,10);if(i&&document.body&&document.body.clientWidth){gs=i.currentStyle;a=parseInt(document.body.clientWidth,10);b=parseInt(gs.paddingLeft,10);d=parseInt(gs.paddingRight,10);e=parseInt(gs.marginLeft,10);f=parseInt(gs.marginRight,10);h=parseInt(gs.borderLeftWidth,10);g=parseInt(gs.borderRightWidth,10);e=e?e:0;f=f?f:0;b=b?b:0;d=d?d:0;h=h?h:0;g=g?g:0;b=b+d+
e+f+h+g;if(a<=c){c-=b;i.style.width=c+"px"}else i.style.width="auto"}}function setCookie(a,c,b,d,e,f){a=a+"="+escape(c)+(b?"; expires="+b.toGMTString():"; path=/")+(e?"; domain="+e:"")+(f?"; secure":"");document.cookie=a}function getCookie(a){var c=document.cookie;a=a+"=";var b=c.indexOf("; "+a);if(b==-1){b=c.indexOf(a);if(b!==0)return null}else b+=2;var d=document.cookie.indexOf(";",b);if(d==-1)d=c.length;return unescape(c.substring(b+a.length,d))}
function deleteCookie(a,c,b){c=getCookie(a);if(c!==null)document.cookie=a+"=; path=/"+(b?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";return c}function trim(a){return a.replace(/^\s*|\s*$/g,"")}
function setActiveStyleSheet(a,c){var b,d,e,f;if(a&&c)for(b=0;d=document.getElementsByTagName("link")[b];b++)if(d.getAttribute("rel").indexOf("style")!=-1&&d.getAttribute("title")){e=d.getAttribute("title").split(":");f=trim(e[e.length-1]);if(f.toLowerCase()==c.toLowerCase()){d.disabled=true;e=trim(d.getAttribute("title").substring(0,d.getAttribute("title").length-e[e.length-1].length-1));if(e.toLowerCase()==a.toLowerCase())d.disabled=false}setCookie("style_"+f.toLowerCase(),a)}}
function getPreferredStylesheet(a){return getCookie("style_"+a)}
function sfHover(a,c){var b=new browser_detect;if(b.isIE5up&&!b.isIE7up){a=document.getElementById(a).getElementsByTagName("LI");for(var d=0;d<a.length;d++)if(!c&&!b.isMac&&(b.isIE55||b.isIE6x)){a[d].onmouseover=function(){this.className+=(this.className.length>0?" ":"")+"sfhover";var e=this.getElementsByTagName("UL")[0];if(e){var f=document.createElement("IFRAME");f.style.width=e.offsetWidth+"px";f.style.height=e.offsetHeight+"px";e.insertBefore(f,e.firstChild);f.style.zIndex="-1"}};a[d].onmouseout=
function(){this.className=this.className.replace(/( ?|^)sfhover\b/,"");var e=this.getElementsByTagName("ul")[0];e&&e.removeChild(e.firstChild)}}else{a[d].onmouseover=function(){this.className+=(this.className.length>0?" ":"")+"sfhover"};a[d].onmouseout=function(){this.className=this.className.replace(/( ?|^)sfhover\b/,"")}}}}function isDefined(a){return typeof window[a]=="undefined"?false:true}function pause(a){var c=new Date,b=null;do b=new Date;while(b-c<a)};
