var imgSwob="";var imgSwrc="";var imgSwop=0;var newIw= 0;var newIh= 0;var rsz2w= 0;var rsz2h= 0;var tttImg= false;var gImgSz= false;var dImgRs= false;var nImgLd= false;
var bgsleight=function() {function addLoadEvent(func) {var oldonload=window.onload;if (typeof window.onload != 'function') {window.onload=func;} else {window.onload=function() {if (oldonload) {oldonload();}func();}}}function fnLoadPngs() {var rslt=navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');var itsAllGood=(rslt != null && Number(rslt[1]) >= 5.5);for (var i=document.all.length - 1, obj=null; (obj=document.all[i]); i--) {if (itsAllGood && obj.currentStyle.backgroundImage.match(/\.png/i) != null) {fnFixPng(obj);obj.attachEvent("onpropertychange", fnPropertyChanged);}}}function fnPropertyChanged() {if (window.event.propertyName == "style.backgroundImage") {var el=window.event.srcElement;if (!el.currentStyle.backgroundImage.match(/x\.gif/i)) {var bg	= el.currentStyle.backgroundImage;var src=bg.substring(5,bg.length-2);el.filters.item(0).src=src;el.style.backgroundImage="url(x.gif)";}}}function fnFixPng(obj) {var bg	= obj.currentStyle.backgroundImage;var src=bg.substring(5,bg.length-2);obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";obj.style.backgroundImage="url(x.gif)";}return {init: function() {if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && window.attachEvent) {addLoadEvent(fnLoadPngs);}}}}();bgsleight.init();
var sIiD=0;iNOI=0;st=1;var status="onn";var mO=100;image='';imageid='';
function initImage(showTimeout,noi,cin,iDSI) {st=cin;iNOI=noi;image=iDSI;imageid=document.getElementById(image);sIiD=setInterval("fadeAndRotate(image,imageid);",showTimeout);}
function fadeAndRotate(image,imageid) {tttImg= true;if ((mO==100) && (status=="onn")) {fadeOut(image,100);}}
function setOpacity(oO,sOo){mO=sOo;oO.style.filter="alpha(opacity:"+mO+")";oO.style.KHTMLOpacity=mO/100;oO.style.MozOpacity=mO/100;oO.style.opacity=mO/100;if (tttImg) {if ((eval('titleimage'+st+'.src').indexOf(".png") > 0)) {oO.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+eval('titleimage'+st+'.src')+"')";}}}
function fadeOut(iOI,innO) {if (document.getElementById){inObj=document.getElementById(iOI);if (innO>=0){setOpacity(inObj,innO);innO=innO-5;if (innO==0){status="off";st++;if(st>iNOI){st=1;}document[image].src=eval('titleimage'+st+'.src');fadeIn(image,0);}window.setTimeout("fadeOut('"+iOI+"',"+innO+")", 10);}}}
function fadeIn(oOI,outO){if (document.getElementById){outObj=document.getElementById(oOI);if (outO<=100){setOpacity(outObj, outO);outO=outO+5;if (outO==100) {status="onn";}window.setTimeout("fadeIn('"+oOI+"',"+outO+")", 10);}}}
function Browser(){var ua,s,i;this.isIE=false;this.isNS=false;this.version=null;ua=navigator.userAgent;s="MSIE";if((i=ua.indexOf(s))>=0){this.isIE=true;this.version=parseFloat(ua.substr(i+s.length));return;}s="Netscape6/";if((i=ua.indexOf(s))>=0){this.isNS=true;this.version=parseFloat(ua.substr(i+s.length));return;}s="Gecko";if((i=ua.indexOf(s))>=0){this.isNS=true;this.version=6.1;return;}}var browser=new Browser();var dragObj=new Object();dragObj.zIndex=11;function dragStart(event,id){var el;var x,y;if(id)dragObj.elNode=document.getElementById(id);else{if(browser.isIE)dragObj.elNode=window.event.srcElement;if(browser.isNS)dragObj.elNode=event.target;if(dragObj.elNode.nodeType==3)dragObj.elNode=dragObj.elNode.parentNode;}if(browser.isIE){x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;}if(browser.isNS){x=event.clientX+window.scrollX;y=event.clientY+window.scrollY;}dragObj.cursorStartX=x;dragObj.cursorStartY=y;dragObj.elStartLeft=parseInt(dragObj.elNode.style.left,10);dragObj.elStartTop=parseInt(dragObj.elNode.style.top,10);if(isNaN(dragObj.elStartLeft))dragObj.elStartLeft=0;if(isNaN(dragObj.elStartTop))dragObj.elStartTop=0;dragObj.elNode.style.zIndex=++dragObj.zIndex;if(browser.isIE){document.attachEvent("onmousemove",dragGo);document.attachEvent("onmouseup",dragStop);window.event.cancelBubble=true;window.event.returnValue=false;}if(browser.isNS){document.addEventListener("mousemove",dragGo,true);document.addEventListener("mouseup",dragStop,true);event.preventDefault();}}function dragGo(event){var x,y;if(browser.isIE){x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;}if(browser.isNS){x=event.clientX+window.scrollX;y=event.clientY+window.scrollY;}dragObj.elNode.style.left=(dragObj.elStartLeft+x-dragObj.cursorStartX)+"px";dragObj.elNode.style.top=(dragObj.elStartTop+y-dragObj.cursorStartY)+"px";if(browser.isIE){window.event.cancelBubble=true;window.event.returnValue=false;}if(browser.isNS)event.preventDefault();}function dragStop(event){if(browser.isIE){document.detachEvent("onmousemove",dragGo);document.detachEvent("onmouseup",dragStop);}if(browser.isNS){document.removeEventListener("mousemove",dragGo,true);document.removeEventListener("mouseup",dragStop,true);}}
function swapImage(imgID,imgSRC){if (nImgLd){return false;}else{imgSwob=imgID;imgSwrc=imgSRC;theNewImage=new Image();if (theNewImage.addEventListener){theNewImage.addEventListener('load', stimr, false);}else if (theNewImage.attachEvent){theNewImage.attachEvent('onload', stimr);}theNewImage.src=imgSRC;}}
function stimr(){if (! gImgSz) {tttImg=false;newIw=theNewImage.width;newIh=theNewImage.height;gImgSz=true;}intervalID=setInterval("showImages()",100);}
function showImages(){if(! nImgLd){document.getElementById(imgSwob).src=imgSwrc;nImgLd=true;}setOpacity(document.getElementById(imgSwob),imgSwop);imgSwop+=10;if (imgSwop >= 100){gImgSz=false;nImgLd=false;clearInterval(intervalID);setOpacity(document.getElementById(imgSwob),100);imgSwop=0;if (dImgRs){doRsz(imgSwob);}}}
function swapAndResizeImage(imgID,imgSRC,maxWide,maxTall){if (document[imgID].src.indexOf(imgSRC) >= 0) {return false;}if (imgSRC != "null"){dImgRs=true;rsz2w= maxWide;rsz2h= maxTall;swapImage(imgID,imgSRC);}}	
function doRsz(imgID) {var dSz1=rsz2w/newIw;var dSz2=rsz2h/newIh;if (dSz1>dSz2) {dSz1=dSz2;}document.getElementById(imgSwob).width=newIw*dSz1;document.getElementById(imgSwob).height=newIh*dSz1;}
function closePopd(){if ((typeof razorballPopup != "undefined") && (! razorballPopup.closed)) {razorballPopup.close();}}
function windowPop(f,w,h,s,c){razorballPopup=window.open(f,"RazorBall","width="+w+",height="+h+",toolbar="+s+",menubar=0,scrollbars=1,status=0,resizable="+c);}
function setCookie(cookieName,cookieValue,nDays) {var today = new Date();var expire = new Date();if (nDays==null || nDays==0) nDays=1;expire.setTime(today.getTime() + 3600000*24*nDays);document.cookie = cookieName+"="+escape(cookieValue)+";expires="+expire.toGMTString();}
function hide(){document.getElementById('loggedin').style.visibility="hidden";setCookie("RazorToolBarStatus","hidden",30);document.getElementById('toolshid').style.visibility="visible";setCookie("RazorToolHidStatus","visible",30);}
function show(){document.getElementById('toolshid').style.visibility="hidden";setCookie("RazorToolHidStatus","hidden",30);document.getElementById('loggedin').style.visibility="visible";setCookie("RazorToolBarStatus","visible",30);}
function letternumber(e) {var key;var keychar;if (window.event) {key=window.event.keyCode;} else if (e) {key=e.which;} else {return true;}keychar=String.fromCharCode(key);keychar=keychar.toLowerCase();if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ){return true;} else if ((("abcdefghijklmnopqrstuvwxyz0123456789").indexOf(keychar) > -1)) {return true;} else {return false;}}
function onlyDoubles(e) {var key;var keychar;if (window.event) {key=window.event.keyCode;} else if (e) {key=e.which;} else {return true;}keychar=String.fromCharCode(key);keychar=keychar.toLowerCase();if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ){return true;} else if ((("0123456789.").indexOf(keychar) > -1)) {return true;} else {return false;}}
if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) && document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule){document.styleSheets[0].addRule('img', 'behavior: url(x/images/iepngfix.htc)');}
