loaded=false;agent=navigator.userAgent.toLowerCase();op=agent.indexOf('opera')!=-1;if(op){reg1 = new RegExp("opera.([0-9]+\.[0-9]+)");var foundArray=reg1.exec(agent);reg2 = new RegExp("([0-9]+\.[0-9]+)");if(foundArray!=null){opversion=reg2.exec(foundArray[0]);version = opversion[0];}}else version=parseInt(navigator.appVersion);op7=op&&version>=7;ns=(agent.indexOf('mozilla')!=-1)&&(agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible')==-1)&&(version>=4);ns4=ns&&version==4;ns50=ns&&version==5&&(parseInt(navigator.productSub)<20010726);ns5=ns&&version>=5;ie=agent.indexOf('msie')!=-1&&(version>=4);ie4=ie&&(agent.indexOf('msie 4')!=-1);ie5=ie&&(agent.indexOf('msie 5')!=-1);ie55=ie&&((agent.indexOf('msie 5.5')!=-1)||(agent.indexOf('msie 6.0')!=-1)||(agent.indexOf('msie 7')!=-1)||(agent.indexOf('msie 9')!=-1)||(agent.indexOf('msie 8')!=-1));mac=agent.indexOf('mac')!=-1;if(ns4){visible='show';hidden='hide'}else{visible='visible';hidden='hidden'}lowResolution=(screen.width<800);midResolution=(screen.width==800);hiResolution=(screen.width>800);lowDepth=(screen.colorDepth==8);function dynLayer(obj,parent){this.id=obj.id;if(ie){this.css=obj.style;this.doc=obj;this.parent=((obj.parentElement.id)&&(obj.parentElement.tagName.toLowerCase()=='div'))?eval('dyn'+obj.parentElement.id):false}else if(ns4){obj.created=true;this.css=obj;this.doc=obj.document;this.parent=parent?eval('dyn'+parent.id):false}else{obj.created=true;this.css=obj.style;this.doc=obj;this.parent=parent?eval('dyn'+parent.id):false;if(ns50){this.css.left=this.doc.offsetLeft-(this.parent?this.parent.doc.offsetLeft:0);this.css.top=this.doc.offsetTop-(this.parent?this.parent.doc.offsetTop:0)}}this.drag=false;this.bgColor=null;this.bgImage=null;this.obj=this.id+'Obj';eval(this.obj+"=this")};dynLayer.prototype.setWidth=function(w){w=w<0?0:w;if(ns4)this.css.clip.width=w;else if(ns5)this.css.width=w;else this.css.pixelWidth=w};dynLayer.prototype.setHeight=function(h){h=h<0?0:h;if(ns4)this.css.clip.height=h;else if(ns5)this.css.height=h;else this.css.pixelHeight=h};dynLayer.prototype.getWidth=function(){if(ns4)return this.css.clip.width;else if((op&&!op7)||ie4)return this.css.pixelWidth;else return this.doc.offsetWidth};dynLayer.prototype.getHeight=function(){if(ns4)return this.css.clip.height;else if((op&&!op7)||ie4)return this.css.pixelHeight;else return this.doc.offsetHeight};dynLayer.prototype.getContentWidth=function(){if(ns4)return this.doc.width;else if(ns5)return this.doc.offsetWidth;else return this.doc.scrollWidth};dynLayer.prototype.getContentHeight=function(){if(ns4)return this.doc.height;else if(ns5)return this.doc.offsetHeight;else return this.doc.scrollHeight};dynLayer.prototype.setSize=function(w,h){this.setWidth(w);this.setHeight(h)};dynLayer.prototype.setLeft=function(x){if(ns)this.css.left=x;else this.css.pixelLeft=x};dynLayer.prototype.setTop=function(y){if(ns)this.css.top=y;else this.css.pixelTop=y};dynLayer.prototype.getLeft=function(){if(ns4)return this.css.left;else if(ns50)return parseInt(this.css.left);else return this.doc.offsetLeft};dynLayer.prototype.getTop=function(){if(ns4)return this.css.top;else if(ns50)return parseInt(this.css.top);else return this.doc.offsetTop};dynLayer.prototype.moveTo=function(x,y){this.setLeft(x);this.setTop(y)};dynLayer.prototype.moveBy=function(dx,dy){this.setLeft(this.getLeft()+dx);this.setTop(this.getTop()+dy)};dynLayer.prototype.show=function(){this.css.visibility=visible};dynLayer.prototype.hide=function(){this.css.visibility=hidden};function getParentVisibility(obj){if(obj.parent){parentVisibility=obj.parent.css.visibility!=hidden;getParentVisibility(obj.parent)}else parentVisibility=true};dynLayer.prototype.getVisibility=function(){visibility=this.css.visibility!=hidden;getParentVisibility(this);return visibility&&parentVisibility};dynLayer.prototype.setLayer=function(t,r,b,l){if(ns4){this.css.clip.top=t;this.css.clip.right=r;this.css.clip.bottom=b;this.css.clip.left=l;this.setSize(r-l,b-t)}else if(op){if(this.parent){this.moveTo(-l,-t);this.parent.setSize(r-l,b-t);this.parent.moveTo(l,t)}}else{this.css.clip='rect('+t+'px '+r+'px '+b+'px '+l+'px)';}};dynLayer.prototype.resetLayer=function(){if(op)this.setLayer(0,1,1,0);else this.setLayer(0,0,0,0)};dynLayer.prototype.opct=function(o)
{this.o=o;if(ie)this.css.filter='alpha(opacity='+o+')';if(ns5)this.css.MozOpacity=o+'%'};dynLayer.prototype.setFade=function(s,e,d,sd){this.timer=null;this.start=s||0;this.end=e;this.step=parseInt(e>s?10000/d:-10000/d);this.test=e>s?'<=':'>=';this.startdelay=sd;setTimeout(this.obj+'.makeFade()',this.startdelay)};dynLayer.prototype.makeFade=function(){if(eval(this.start+this.test+this.end)){this.opct(this.start);this.start+=this.step;setTimeout(this.obj+'.makeFade()',20)}else{this.start=this.start<0?0:(this.start>100?100:this.start);this.opct(this.start)}};dynLayer.prototype.setZIndex=function(z){this.css.zIndex=z};dynLayer.prototype.setHTML=function(html){if(ns4){this.doc.write(html);this.doc.close()}else this.doc.innerHTML=html
};dynLayer.prototype.getbgColor=function(){return this.bgColor};dynLayer.prototype.getbgImage=function(){return this.bgImage};dynLayer.prototype.setbgColor=function(color){if(color==null&&!ns4)color='transparent';this.bgColor=color;if(ns4){this.doc.bgColor=color;this.doc.backgroundColor=color;this.setSize(this.getWidth(),this.getHeight());}else this.css.backgroundColor=color};dynLayer.prototype.setbgImage=function(path){this.bgImage=path;if(ns4){this.css.background.src=path;if(!path)this.setbgColor(this.getbgColor())}else this.css.backgroundImage='url('+path+')'};function swapImg(dynLayer,imgName,imgSrc){if(ns4)eval((dynLayer?dynLayer+'.doc.':'document.')+'images[\''+imgName+'\'].src='+imgSrc+'.src');else document[imgName].src=eval(imgSrc+'.src')}function getFormObj(dynLayer,formName,formField){if(ns4)return eval((dynLayer?dynLayer+'.doc.':'document.')+formName+(formField?('.'+formField):''));else return eval('document.'+formName+(formField?'.'+formField:''))}function getAvailableWidth(){if(ns||op)return window.innerWidth;else return document.body.clientWidth}function getAvailableHeight(){if(ns||op)return window.innerHeight;else return document.body.clientHeight}function getDocumentWidth(){if(ns)return document.width;else if(!op)return document.body.scrollWidth;else return window.innerWidth}function getDocumentHeight(){if(ns)return document.height;else if(!op) return document.body.scrollHeight;else return window.innerWidth}function initializeLayers(){if(ie){for(var i in document.links)document.links[i].onfocus=document.links[i].blur}if(ie4){for(var i=0;i<document.all.tags('div').length;i++){obj=document.all.tags('div')[i];if(obj.id!='')eval('dyn'+obj.id+'=new dynLayer(obj)')}}if(ie5||ie55){for(var i=0;i<document.getElementsByTagName('div').length;i++){obj=document.getElementsByTagName('div')[i];if(obj.id!='')eval('dyn'+obj.id+'=new dynLayer(obj)')}}if(ns4){for(var i=0;i<document.layers.length;i++){extractNS4Layers(document.layers[i]);}}if(ns5){for(var i=0;i<document.getElementsByTagName('div').length;i++){extractNS5Layers(document.getElementsByTagName('div')[i]);}}init();}function extractNS4Layers(obj,parent){if(obj.name!=''){if(!obj.created)eval('dyn'+obj.name+'=new dynLayer(obj,parent)');for(var i=0;i<obj.document.layers.length;i++){extractNS4Layers(obj.document.layers[i],obj);}}}function extractNS5Layers(obj,parent){if(obj.id!=''){if(!obj.created)eval('dyn'+obj.id+'=new dynLayer(obj,parent)');for(var i=0;i<obj.getElementsByTagName('div').length;i++){extractNS5Layers(obj.getElementsByTagName('div')[i],obj);}}}srcflag=false;function checkSrc(){if(self.event.srcElement.type=='text')srcflag=true}function unselectElement(){if(srcflag){self.event.cancelBubble=true;return true}else return false}function releaseSrc(){srcflag=false}function releaseEvent(){return false}function preLoad(){imagePath=imageFiles[0];for(var i=1;i<imageFiles.length;i++){imageFile=imageFiles[i];imageName=imageFile.substring(0,imageFile.indexOf('.'));eval(imageName+'=new Image();'+imageName+'.src="'+imagePath+imageFile+'"')}}if(ns||op){origWidth=innerWidth;origHeight=innerHeight}function reloadPage(){
if((ns4||op)&&origWidth==innerWidth&&origHeight==innerHeight)return;if(ie||ns5||ns50)setTimeout('window.location.reload()',1000);else window.location.reload()}function noFocus(obj){if(!ns5){if(obj.blur())obj.blur()}}function msgStatus(msg){status=msg;return true}function onerror(){document.location.href="javascript:"}
function winPrint(url){newWin=null;w=screen.width<800?620:720;h=screen.height-150;x=(screen.width-w)/2;y=20;newWin=window.open(url,'print','left='+x+',top='+y+',width='+w+',height='+h+',scrollbars=1,menubar=1,status=1');if(newWin!=null)setTimeout('newWin.focus()',100);}
function findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
