var ShockMode = 0;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 6) {ShockMode = 1;} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
document.writeln('<scr'+'ipt type="text/vbscript">');
document.writeln('on error resume next');
document.writeln('ShockMode = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))');
document.writeln('if ( ShockMode <= 0 ) then ShockMode = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))');
document.writeln('<\/sc'+'ript>');}
function webclick(cid,key){var url='/AS/StatsTrack.aspx?c='+cid+'&k='+key;var status=false;var responseObj=new Ajax.Request(url,{method:'get','asynchronous':false,onComplete:function(transport){if(transport.responseText=='OK')status = true;}});return status;}
if (screen.width == 800) {document.write('<link REL="stylesheet" HREF="/Utilities/Scripts/Style240507_800.css" TYPE="text/css">');}
var Font={c:13,i:function(e){this.c=this.cI(Cookies.gc('fs'),this.c);this.c+=(this.c>=18?0:1);this.s(e,this.c);Cookies.ac('fs',this.c,43200, null, '/');},d:function(e){this.c=this.cI(Cookies.gc('fs'),this.c);this.c-=(this.c<=9?0:1);this.s(e,this.c);Cookies.ac('fs',this.c,43200, null, '/');},s:function(e,v){if(XPar.ve(e)&&e.style){v=this.cI(v,this.c);e.style.fontSize=v+"px";chgsize(e,v+6,'h3'); chgsize(e,v+3,'h4'); chgsize(e,v,'h5');chgsize(e,v,'p'); chgsize(e,v,'div'); chgsize(e,v,'td'); }},cI:function(i,dv){if(!dv)dv=0;var iv=parseInt(i);return(iv.toString()=="NaN"? dv:iv);}}
Cookies=new function(){this.ac=function(n,v,e,d,p,s){var ed=new Date();ed.setTime(ed.getTime()+((e||5)*60*1000));var cs=escape(n)+"="+escape(v)+"; expires="+ed.toGMTString()+(d?'; domain='+d:'')+(p?'; path='+p:'')+(s?'; secure='+s:'');document.cookie=cs;};this.dc=function(n){if(this.read(n))this.add(n,"",-1);};this.gc=function(n){var dc=document.cookie;n+='=';var s=dc.indexOf("; "+n);if(s==-1){s=document.cookie.indexOf(n);if(s!=0)return '';}else s+=2;var e=dc.indexOf(";",s);if(e==-1)e=dc.length;return unescape(dc.substring(s+n.length,e));}};
var XPar={ce:function(e,s){var n=document.createElement(e);if(s)n.id=s;return n;},ct:function(s){return document.createTextNode(s);},rc:function(p,c){p.removeChild(c);},cle:function(p){if(p){var c=p.childNodes;var l=c.length;for(var i=0;i<l;i++){this.cle(c[0]);this.rc(p,c[0]);}}},ac:function(p,c){if(p&&c)p.appendChild(c);},g1:function(e,s){return e?e.getElementById(s):document.getElementById(s);},g1v:function(e,s){var e=XPar.g1(e,s);var v="";if(e!=null&&e.length>0)v=e[0].nodeValue;return v;},g2:function(e,s){var c=new Array();if(e)c=e.getElementsByTagName(s);else c=document.getElementsByTagName(s);return c;},g2v:function(e,s){var c=XPar.g2(e,s);var v=new Array();if(c.length>0)for(var i=0;i<c.length;i++)if(XPar.hc(c[i])) v[i]=c[i].childNodes[0].nodeValue;return v;},ga:function(e,s){return XPar.ve(e)?e.getAttribute(s):"";},ve:function(e){return e!=null&&e.nodeType&&e.nodeType==1;},hc:function(e){return XPar.ve(e)&&e.childNodes.length>0;}}
function chgsize(e,v,element) {if(XPar.g2(e,element)[0]) {var l=XPar.g2(e,element).length;for(var i=0;i<l;i++){XPar.g2(e,element)[i].style.fontSize=(v)+"px";}}}
function dc(str){ret='';for(var i=0;i<str.length;i++)ret+=String.fromCharCode(str.charCodeAt(i)-day-str.length);return ret}
function printPage(){window.print();}
function WindowPreview(URL,dwidth,dheight){var height=screen.height;var width=screen.width;if((dheight=="")||(dheight==0))dheight=250;if((dwidth=="")||(dwidth==0))dwidth==300;var leftpos=(width/2)-(dwidth/2);var toppos=(height/2)-(dheight/2);windowprops='toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width='+dwidth+',height='+dheight+',left='+leftpos+',top='+toppos;window.open(URL,"",windowprops)}
var RotateIndex = new Array();
function RotateImg(uid, imgArray, delay){ var instance = this; var timer; this.timer = timer; var cnt = 0; this.uid = uid; this.imgArray = imgArray; this.delay = delay; this.getCnt = function() {cnt +=1; return(cnt);}; this.setCnt = function() {cnt = 0;}; document.getElementById(this.uid).src = this.imgArray[0]; this.setTimer();}
RotateImg.prototype.rotate = function() { var instance = this; dispcnt = this.getCnt(); if (dispcnt >= this.imgArray.length) {this.setCnt(); dispcnt = 0;}; document.getElementById(this.uid).src = this.imgArray[dispcnt]; this.setTimer();}
RotateImg.prototype.setTimer = function() {var instance = this; var started = false; for (var i=0; i < RotateIndex.length; i++){if (RotateIndex[i].uid == this.uid) {RotateIndex[i].timerID = setTimeout(function(){instance.rotate()}, instance.delay); started = true; }} if (started == false) { var nextID = RotateIndex.length; RotateIndex[nextID] = new Object(); RotateIndex[nextID].uid = this.uid; RotateIndex[nextID].timerID = setTimeout(function(){instance.rotate()}, instance.delay); }}
function StopAllRotateImg() {for (var i=0; i < RotateIndex.length; i++){clearTimeout(RotateIndex[i].timerID);}}
function AC_RunCmd(src){document.write(src)}
function AC_AddExtension(src,ext){if(src.indexOf('?')!=-1)return src.replace(/\?/,ext+'?');else return src+ext}
function AC_Generateobj(objAttrs, params, embedAttrs) { var str = '<object '; for (var i in objAttrs) str += i + '="' + objAttrs[i] + '" '; str += '>'; for (var i in params) str += '<param name="' + i + '" value="' + params[i] + '" /> '; str += '<embed '; for (var i in embedAttrs) str += i + '="' + embedAttrs[i] + '" '; str += ' ></embed></object>'; document.write(str);}
function AC_FL_RunContent(){ var ret =  AC_GetArgs (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" , "application/x-shockwave-flash" );  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); }
function AC_SW_RunContent(){ var ret =  AC_GetArgs (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000" , null ); AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs); }
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

/***********************************************
* Pausing up-down scroller- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
function pausescroller(content, divId, divClass, delay, onchangefunction){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.onchangefunction=onchangefunction // function to call and pass the displayed id
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}
// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------
pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}
// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------
pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+8)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-8+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-8+"px"
setTimeout(function(){scrollerinstance.animateup()}, 80)
}
else{
if (this.onchangefunction) setTimeout(this.onchangefunction + '(' + this.hiddendivpointer + ')', 10)
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}
// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------
pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}
pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}
// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------
pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}
pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}