/********************************************************************************
 * Librer�a javaScript com�n a todas las p�ginas del portal.
 * Copyright (c) 2011. Divisa iT S.A.
 ********************************************************************************/
function getCurrentDate(a){return getCurrentDate(a,false)}function getCurrentDate(b,a){return getCurrentDate(b,false,true)}function getCurrentDate(p,c,d){var q=new Array("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre");var b=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var k=new Array("janvier","f�vrier","mars","avril","mai","juin","juillet","ao&ucirc;t","septembre","octobre","novembre","d�cembre");var n=new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");var a=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var g=new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");var m=new Date();var h=m.getYear();var f=m.getMonth();var l=m.getDate();var e=m.getDay();if(h<1000){h+=1900}var o="";if(p=="es_ES"){if(c){o+=n[e]+", "}o+=l+" de "+q[f];if(d){o+=" de "+h}}if(p=="en_UK"){if(c){o=a[e]+", "}o+=b[f]+" "+l;if(d){o+=", "+h}}if(p=="fr_FR"){if(c){o=g[e]+", "}o+=l+" "+k[f];if(d){o+=" "+h}}document.write(o)}function checkDate(c,b){var f=/^((([1-9]|[0][1-9]|[12][0-9]|3[01])([/])([13578]|[0][13578]|10|12)([/])(\d{4}))|(([1-9]|[0][1-9]|[12][0-9]|30)([/])([469]|[0][469]|11)([/])(\d{4}))|(([1-9]|[0][1-9]|1[0-9]|2[0-8])([/])(02)([/])(\d{4}))|((29)(\/)(02)([/])([02468][048]00))|((29)([/])(02)([/])([13579][26]00))|((29)([/])(02)([/])([0-9][0-9][0][48]))|((29)([/])(02)([/])([0-9][0-9][2468][048]))|((29)([/])(02)([/])([0-9][0-9][13579][26])))$/;var a=/((^(10|12|0?[13578])([/])(3[01]|[12][0-9]|0?[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(11|0?[469])([/])(30|[12][0-9]|0?[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?2)([/])(2[0-8]|1[0-9]|0?[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?2)([/])(29)([/])([2468][048]00)$)|(^(0?2)([/])(29)([/])([3579][26]00)$)|(^(0?2)([/])(29)([/])([1][89][0][48])$)|(^(0?2)([/])(29)([/])([2-9][0-9][0][48])$)|(^(0?2)([/])(29)([/])([1][89][2468][048])$)|(^(0?2)([/])(29)([/])([2-9][0-9][2468][048])$)|(^(0?2)([/])(29)([/])([1][89][13579][26])$)|(^(0?2)([/])(29)([/])([2-9][0-9][13579][26])$))/;var e=(c=="es"||c=="es_ES")?f:a;var d=b.match(e);if(d==null){return false}else{return true}}function checkTime(c,f){var e=/^([0-9]|[0-1][0-9]|[2][0-3])(:)([0-5][0-9])$/;var a=/^(1[0-2]|[1-9])(:)([0-5][0-9]) *(am|AM|pm|PM|aM|Am|pM|Pm) *$/;var b=(c=="es"||c=="es_ES")?e:a;var d=f.match(b);if(d==null){return false}else{return true}}var allScrolls=new Array();function stopScrolls(){for(var a=0;a<allScrolls.length;a++){allScrolls[a].stopped=true;clearTimeout(allScrolls[a].timeout)}}function stopScroll(d){var b=d.parentNode.parentNode;var a;for(var c=0;c<b.childNodes.length;c++){if(b.childNodes[c].tagName=="UL"){a=b.childNodes[c]}}if(a){for(c=0;c<allScrolls.length;c++){if(allScrolls[c].name==a.id){allScrolls[c].stopped=true;clearTimeout(allScrolls[c].timeout);d.style.display="none";document.getElementById("cmPlayScroll_"+c).style.display="block"}}}return}function startScroll(e){var b=e.parentNode.parentNode;var a;for(var d=0;d<b.childNodes.length;d++){if(b.childNodes[d].tagName=="UL"){a=b.childNodes[d]}}if(a){for(d=0;d<allScrolls.length;d++){if(allScrolls[d].name==a.id){if(allScrolls[d].stopped&&allScrolls[d].items.length>1){allScrolls[d].stopped=false;var f=allScrolls[d].innerHeight;if(allScrolls[d].dimension!="px"){f*=10}if(allScrolls[d].scrollCount==f){for(var c=0;c<allScrolls[d].items.length;c++){allScrolls[d].resetElement(document.getElementById("c_"+allScrolls[d].name+"_"+c))}allScrolls[d].timeout=setTimeout(allScrolls[d].obj+".scroll()",allScrolls[d].innerInterval)}else{allScrolls[d].timeout=setTimeout(allScrolls[d].obj+".innerScroll()",allScrolls[d].innerInterval)}e.style.display="none";document.getElementById("cmPauseScroll_"+d).style.display="block"}}}}return}function ScrollList(scrollClass){var allScrollsUl=document.getElementsByTagName("UL");var maxIndex=0;for(var i=0;i<allScrollsUl.length;i++){if(allScrollsUl[i].id&&allScrollsUl[i].id.indexOf("cmScroll")!=-1){var currIndex=parseInt(allScrollsUl[i].id.substring(8));if(currIndex>maxIndex){maxIndex=currIndex}}}this.name="cmScroll"+(maxIndex+1);this.scrollClass=scrollClass;this.items=new Array();this.scrollCount=0;this.timeout=false;this.stopped=false;this.scrollWidth="200px";this.scrollHeight="90px";this.interval=5000;this.innerInterval=10;this.addElement=addElement;this.paintScroll=paintScroll;this.resetElement=resetElement;this.shiftElement=shiftElement;this.scroll=scroll;this.innerScroll=innerScroll;this.init=init;this.obj=this.name+"Object";eval(this.obj+"=this");allScrolls[allScrolls.length]=this}function addElement(b){var a=this.items.length;this.items[a]=new Object();this.items[a].text=b}function paintScroll(a){document.write('<ul id="'+this.name+'" class="'+this.scrollClass+'" style="overflow: hidden; position: relative;"></ul>\n');this.interval=parseInt(a);this.innerInterval=this.interval/200;if(!this.stopped){this.timeout=setTimeout(this.obj+".init()",500)}}function init(){var b=document.getElementById(this.name);b.style.margin=0;b.style.padding=0;b.style.listStyle="none";b.style.display="block";if(document.defaultView){if(document.defaultView.getComputedStyle(b,"").width){this.scrollWidth=document.defaultView.getComputedStyle(b,"").width}if(document.defaultView.getComputedStyle(b,"").height){this.scrollHeight=document.defaultView.getComputedStyle(b,"").height}}else{if(b.currentStyle){this.scrollWidth=b.currentStyle.width;this.scrollHeight=b.currentStyle.height}else{if(b.clientHeight){this.scrollHeight=b.clientHeight+"px"}if(b.clientWidth){this.scrollWidth=b.clientWidth+"px"}}}this.innerHeight=Math.round(parseFloat(this.scrollHeight));this.dimension="px";innerHeightAsStr=parseFloat(this.scrollHeight)+"";if(innerHeightAsStr.length!=this.scrollHeight.length){this.dimension=this.scrollHeight.substring(innerHeightAsStr.length)}for(i=0;i<this.items.length;i++){var c=i*this.innerHeight+""+this.dimension;var a=document.createElement("LI");a._innerTop=c;a.id="c_"+this.name+"_"+i;a.style.top=c;a.style.overflow="hidden";a.style.position="absolute";a.style.width=this.scrollWidth;a.style.height=this.scrollHeight;a.style.margin=0;a.style.padding=0;a.style.listStyle="none";a.style.display="block";a.innerHTML=this.items[i].text;b.appendChild(a)}if(this.items.length>1&&!this.stopped){this.timeout=setTimeout(this.obj+".scroll()",this.interval)}}function scroll(){this.scrollCount=0;if(!this.stopped){this.timeout=setTimeout(this.obj+".innerScroll()",this.innerInterval)}}function innerScroll(){var a=1;if(this.dimension!="px"){a=0.1}for(i=0;i<this.items.length;i++){this.shiftElement(document.getElementById("c_"+this.name+"_"+i),a)}this.scrollCount++;var b=this.innerHeight;if(this.dimension!="px"){b=b*10}if(this.scrollCount!=b){if(!this.stopped){this.timeout=setTimeout(this.obj+".innerScroll()",this.innerInterval)}}else{for(i=0;i<this.items.length;i++){this.resetElement(document.getElementById("c_"+this.name+"_"+i))}if(!this.stopped){this.timeout=setTimeout(this.obj+".scroll()",this.interval)}}}function resetElement(b){var a=b._innerTop;var c=Math.round(parseFloat(a));if(c+this.innerHeight==0){b._innerTop=(this.items.length-1)*this.innerHeight+this.dimension;b.style.top=b._innerTop}}function shiftElement(c,a,e,d){var b=c._innerTop;var f=parseFloat(b);f-=a;c.style.top=f+this.dimension;c._innerTop=f+this.dimension}function paintActionIcon(h,f,k){var b=document.getElementsByTagName("UL");var c=0;for(var d=0;d<b.length;d++){if(b[d].id&&b[d].id.indexOf("cmScroll")!=-1){var a=parseInt(b[d].id.substring(8));if(a>c){c=a}}}var g=k+"_"+c;var e='<a href="javascript:void(0);" id="'+g+'" class="'+k+'" title="'+f+'"';if(k=="cmPauseScroll"){e+=' onclick="stopScroll(this);">'}else{e+=' onclick="startScroll(this);" style="display: none;">'}e+='<img src="'+h+'" alt=""></a>';document.write(e)}function xbDetectBrowser(){var l=window.onerror;var g=null;window.onerror=null;window.saveNavigator=window.navigator;navigator.OS="";navigator.version=parseFloat(navigator.appVersion);navigator.org="";navigator.family="";var c;if(typeof(window.navigator.platform)!="undefined"){c=window.navigator.platform.toLowerCase();if(c.indexOf("win")!=-1){navigator.OS="win"}else{if(c.indexOf("mac")!=-1){navigator.OS="mac"}else{if(c.indexOf("unix")!=-1||c.indexOf("linux")!=-1||c.indexOf("sun")!=-1){navigator.OS="nix"}}}}var h=0;var a=window.navigator.userAgent.toLowerCase();if(a.indexOf("opera")!=-1){h=a.indexOf("opera");navigator.family="opera";navigator.org="opera";navigator.version=parseFloat("0"+a.substr(h+6),10)}else{if((h=a.indexOf("msie"))!=-1){navigator.org="microsoft";navigator.version=parseFloat("0"+a.substr(h+5),10);if(navigator.version<4){navigator.family="ie3"}else{navigator.family="ie4"}}else{if((h=a.indexOf("chrome"))!=-1){navigator.family="chrome";navigator.org="chrome";navigator.version=parseFloat("0"+a.substr(h+7),10)}else{if(a.indexOf("gecko")!=-1){navigator.family="gecko";var o=a.indexOf("rv:");var n=a.indexOf(")",o);var e=a.substring(o+3,n);var b=e.split(".");var m=0;var f=1;for(var h=0;h<b.length;h++){var d=parseInt(b[h]);m+=d/f;f*=100}navigator.version=m;if(a.indexOf("netscape")!=-1){navigator.org="netscape"}else{if(a.indexOf("compuserve")!=-1){navigator.org="compuserve"}else{navigator.org="mozilla"}}}else{if((a.indexOf("mozilla")!=-1)&&(a.indexOf("spoofer")==-1)&&(a.indexOf("compatible")==-1)&&(a.indexOf("opera")==-1)&&(a.indexOf("webtv")==-1)&&(a.indexOf("hotjava")==-1)){var k=parseFloat(navigator.appVersion);if(k<4){navigator.version=k}else{h=a.lastIndexOf("/");navigator.version=parseFloat("0"+a.substr(h+1),10)}navigator.org="netscape";navigator.family="nn"+parseInt(navigator.appVersion)}else{if((h=a.indexOf("aol"))!=-1){navigator.family="aol";navigator.org="aol";navigator.version=parseFloat("0"+a.substr(h+4),10)}else{if((h=a.indexOf("hotjava"))!=-1){navigator.family="hotjava";navigator.org="sun";navigator.version=parseFloat(navigator.appVersion)}}}}}}}window.onerror=l}xbDetectBrowser();function not_null(b,a){if(b.value==""){alert(a);b.focus();return false}return true}function check_longitud_maxima(c,b,a){if(c.value.length>b){alert(a);c.focus();return false}return true}function check_extension(d,f,b){var e=0;var c=d.value.indexOf(".");if(c==-1){alert(b);d.focus();return false}else{e=d.value.length-(c+1);var a=d.value;if(e==3){if((a.substr(c+1,1).toUpperCase()==f.substr(0,1))&&(a.substr(c+2,1).toUpperCase()==f.substr(1,1))&&(a.substr(c+3,1).toUpperCase()==f.substr(2,1))){return true}else{alert(b);d.focus();return false}}if((e==4)&&(f.length==4)){if((a.substr(c+1,1).toUpperCase()==f.substr(0,1))&&(a.substr(c+2,1).toUpperCase()==f.substr(1,1))&&(a.substr(c+3,1).toUpperCase()==f.substr(2,1))&&(a.substr(c+4,1).toUpperCase()==f.substr(3,1))){return true}else{alert(b);d.focus();return false}}else{alert(b);d.focus();return false}}}function modificar_accion(a,b,g,f){var d=f.action;var e=f.actionCode.name;var c=f.actionCode.value;f.action=a;if(b=="true"){f.actionCode.name=null;f.actionCode.value=null}else{f.actionCode.value=g}f.submit();f.action=d;if(e!=null){f.actionCode.name=e;f.actionCode.value=c}}function changeVisibility(a){var b=document.getElementById(a);if(!b){return}if(b.style.visibility=="hidden"||b.style.display=="none"){b.style.visibility="visible";b.style.display="block"}else{b.style.visibility="hidden";b.style.display="none"}}function setVisible(a){var b=document.getElementById(a);if(b){b.style.visibility="visible";b.style.display="block"}}function setHidden(a){var b=document.getElementById(a);if(b){b.style.visibility="hidden";b.style.display="none"}}var layers=new Array();function addLayer(a){layers[layers.length]=a}function hideAllLayers(){for(i=0;i<layers.length;i++){setHidden(layers[i])}}function insertResource(f,a,d){var c=document.getElementById(f);var e=document.getElementById(a);var b=document.getElementById(d);if(b.length==0){alert("No hay recursos disponibles")}else{insertAtCaret(c,"[RES_"+b.value+"_"+e.value+"]")}}function insertSP(d,c){var b=document.getElementById(d);var a=document.getElementById(c);insertAtCaret(b,'[SP type="'+a.value+'"]')}function insertCapitalLetter(d,c){var b=document.getElementById(d);var a=document.getElementById(c);insertAtCaret(b,"[CAPITAL_"+a.value+"]")}function insertBR(b){var a=document.getElementById(b);insertAtCaret(a,"<br>")}function insertUrl(h,g){var f=document.getElementById(g);var c=f.value.indexOf("@");var b=f.value.substr(0,c);var e=f.value.substr(c+1);var d=document.getElementById(h);if(d.createTextRange){var a;if(d.caretPos){a=d.caretPos}else{a=d.createRange().duplicate()}if(a){a.text=a.text.charAt(a.text.length-1)==" "?'[URL alias="'+e+'" id="'+b+'"]'+a.text+"[/URL] ":'[URL alias="'+e+'" id="'+b+'"]'+a.text+"[/URL]"}else{alert("Fallo al fijar la posici\u00F3n")}}else{alert("Posicione el cursor en aquella parte del \u00E1rea de texto\ndonde desee insertar el recurso")}}function insertList(e,d){var a=document.getElementById(d);var c=document.getElementById(e);if(c.createTextRange){var b;if(c.caretPos){b=c.caretPos}else{b=c.createRange().duplicate()}if(b){b.text=b.text.charAt(b.text.length-1)==" "?"[LIST_"+a.value+"]"+b.text+"[/LIST_"+a.value+"]":"[LIST_"+a.value+"]"+b.text+"[/LIST_"+a.value+"]"}else{alert("Fallo al fijar la posici\u00F3n")}}else{alert("Posicione el cursor en aquella parte del \u00E1rea de texto\ndonde desee insertar el recurso")}}function insertMetaTag(e,a,c){var d=document.getElementById(e);if(d.createTextRange){var b;if(d.caretPos){b=d.caretPos}else{b=d.createRange().duplicate()}if(b){b.text=a+b.text+c}else{alert("Fallo al fijar la posici\u00F3n")}}else{alert(" Debe seleccionar una posici\u00F3n del texto")}}function insertSimpleMetaTag(c,a){var b=document.getElementById(c);insertAtCaret(b,a)}function storeCaret(b){var a=document.getElementById(b);if(a.createTextRange){a.caretPos=document.selection.createRange().duplicate()}}function insertAtCaret(a,c){if(a.createTextRange){var b;if(a.caretPos){b=a.caretPos}else{b=a.createRange().duplicate()}if(b){b.text=b.text.charAt(b.text.length-1)==" "?c+" ":c}else{alert("Fallo al fijar la posici\u00F3n")}}else{alert("Posicione el cursor en aquella parte del \u00E1rea de texto\ndonde desee insertar el recurso")}}function sleep(b){var c=(new Date()).getTime();var a=(new Date()).getTime();while(a<c+b){a=(new Date()).getTime()}}function openModalWindow(b,c,a){return openModalWindow(b,c,a,"modalWindow")}function openModalWindow(c,d,a,b){var e=window.open(c,b,"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes , resizable=no,modal=yes,dialog=yes,width="+d+",height="+a);e.focus();return e}function openWindow(url,name,width,height,toolbar,location,directories,status,menubar,scrollbars,resizable){var finalWidth=(width>screen.width)?screen.width:width;var finalHeight=(height>screen.height)?screen.height:height;var winOptions;winOptions="toolbar="+((toolbar.toString()=="1"||toolbar.toString()=="yes")?"yes":"no")+",";winOptions+="location="+((location.toString()=="1"||location.toString()=="yes")?"yes":"no")+",";winOptions+="directories="+((directories.toString()=="1"||directories.toString()=="yes")?"yes":"no")+",";winOptions+="status="+((status.toString()=="1"||status.toString()=="yes")?"yes":"no")+",";winOptions+="menubar="+((menubar.toString()=="1"||menubar.toString()=="yes")?"yes":"no")+",";winOptions+="scrollbars="+((scrollbars.toString()=="1"||scrollbars.toString()=="yes")?"yes":"no")+",";winOptions+="resizable="+((resizable.toString()=="1"||resizable.toString()=="yes")?"yes":"no")+",";winOptions+="width="+finalWidth+",";winOptions+="height="+finalHeight+",";winOptions+="left="+((screen.width-finalWidth)/2)+",";winOptions+="top="+((screen.height-finalHeight)/3);eval(name+" = window.open(url, '"+name+"', winOptions)");eval(name+".focus();")}function fontSizer(a,b){fontSizer(a,b,null)}function fontSizer(e,f,d){var a=GetCookie("FONT_SIZE");if(a==null){SetCookie("FONT_SIZE","0");a="0"}var c=parseInt(a);if(e=="dec"){c--}else{c++}DeleteCookie("FONT_SIZE");var b=new Date();b.setTime(b.getTime()+3600000*24*365);SetCookie("FONT_SIZE",c,b,d);window.location.reload()}function setBaseFontSize(e,c){var a=GetCookie("FONT_SIZE");if(a==null){SetCookie("FONT_SIZE","1",null,c)}else{var b=parseInt(a);var f=1;if(b<0){f=b+1}else{if(b>0){f=b-1}else{}}if(f==0){}if(f<0){var d=Math.pow(e,Math.abs(f));DeleteCookie("FONT_SIZE");SetCookie("FONT_SIZE",f,null,c);fontSizer("dec",d,c)}else{if(f>0){var d=Math.pow(e,f);DeleteCookie("FONT_SIZE");SetCookie("FONT_SIZE",f,null,c);fontSizer("inc",d,c)}else{}}}document.getElementById("mainContainer").style.visibility="visible";document.getElementById("mainContainer").style.display="block"}function printIframeContent(a){if(printIframe.location){printIframe.location.href=a}else{printIframe.src=a}printIframe.focus()}function GetCookie(d){var b=d+"=";var f=b.length;var a=document.cookie.length;var e=0;while(e<a){var c=e+f;if(document.cookie.substring(e,c)==b){return getCookieVal(c)}e=document.cookie.indexOf(" ",e)+1;if(e==0){break}}return null}function SetCookie(c,e){var a=SetCookie.arguments;var h=SetCookie.arguments.length;var b=(h>2)?a[2]:null;var g=(h>3)?a[3]:null;var d=(h>4)?a[4]:null;var f=(h>5)?a[5]:false;document.cookie=c+"="+escape(e)+((b==null)?"":("; expires="+b.toGMTString()))+((g==null)?"":("; path="+g))+((d==null)?"":("; domain="+d))+((f==true)?"; secure":"")}function DeleteCookie(a){var c=new Date();c.setTime(c.getTime()-1);var b=GetCookie(a);document.cookie=a+"="+b+"; expires="+c.toGMTString()}function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}function hideSelects(a){if(navigator.appName.indexOf("Microsoft")!=-1&&navigator.version<7){var d=document.getElementById(a);var b=document.getElementsByTagName("SELECT");for(j=0;j<b.length;j++){if(!isElementInside(b[j],d)){if(!b[j].style.oldVisibility){b[j].style.oldVisibility=b[j].currentStyle.visibility;b[j].style.visibility="hidden"}}}var c=document.getElementsByTagName("IFRAME");for(j=0;j<c.length;j++){if(!isElementInside(c[j],d)){if(!c[j].style.oldVisibility){c[j].style.oldVisibility=c[j].currentStyle.visibility;c[j].style.visibility="hidden"}}}}}function showSelects(b){if(navigator.appName.indexOf("Microsoft")!=-1&&navigator.version<7){var a=document.getElementById(b);var c=document.getElementsByTagName("SELECT");for(j=0;j<c.length;j++){if(!isElementInside(c[j],a)){if(!c[j].style.oldVisibility){c[j].style.visibility=c[j].style.oldVisibility;c[j].style.oldVisibility=false}}}var d=document.getElementsByTagName("IFRAME");for(j=0;j<d.length;j++){if(!isElementInside(d[j],a)){if(!d[j].style.oldVisibility){d[j].style.visibility=d[j].style.oldVisibility;d[j].style.oldVisibility=false}}}}}function isElementInside(b,a){if(!b){return false}if(!b.parentNode){return false}var c=b.parentNode;if(!c.id){return isElementInside(c,a)}if(c.id!=a.id){return isElementInside(c,a)}return true}function imagePNG(b){_blank=b+"/imagenes/blank.gif";if(navigator.appName.indexOf("Microsoft")!=-1&&navigator.version<7){var e=document.getElementsByTagName("img");for(var d=0,c=e.length;d<c;d++){var a=e[d];if(a){img_vell=a.src;a.src=_blank;a.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+img_vell+", sizingMethod=scale)"}}}}function showCalBox(a){document.getElementById(a).style.display="block"}function hideCalBox(a){document.getElementById(a).style.display="none"}function displayBannerImage(a){hideBannerImages();var b=document.getElementById(a);if(b.style.display!="block"){b.style.display="block"}}function displayBannerImageFade(b,a,d){hideBannerImages();var c=document.getElementById(b);setOpacity(c,a);if(c.style.display!="block"){c.style.display="block"}fadeIn(b,a,d)}function hideBannerImages(){var b="zoomedImageBanner";var a=document.getElementsByTagName("DIV");for(i=0;i<a.length;i++){if(a[i].id.substr(0,b.length)==b){a[i].style.display="none"}}}function setOpacity(b,a){a=(a==100)?99.999:a;b.style.filter="alpha(opacity:"+a+")";b.style.KHTMLOpacity=a/100;b.style.MozOpacity=a/100;b.style.opacity=a/100}function fadeIn(b,a,c){if(document.getElementById){obj=document.getElementById(b);if(a<=100){setOpacity(obj,a);a+=10;window.setTimeout("fadeIn('"+b+"',"+a+","+c+")",c)}}}function keyPress(c){var a=c||window.event;var b=a.target||a.srcElement;if(a.keyCode==13){b.onclick();return false}return true}function hideAll(){switch(navigator.family){case"nn4":for(indice=0;;indice++){if(eval("document.layers.dform"+indice)){eval("document.layers.dform"+indice+".visibility='hidden'")}else{break}}break;case"ie4":case"gecko":for(indice=0;;indice++){theForm=document.getElementById("dform"+indice);if(theForm){if(theForm.style.visibility=="visible"||theForm.style.display!="none"){theForm.style.display="none";theForm.style.visibility="hidden"}}else{break}}}}function showLayer(theLayer){hideAll();switch(navigator.family){case"nn4":dLayer=eval("document.layers."+theLayer);break;case"ie4":case"gecko":dLayer=document.getElementById(theLayer).style;break}if(navigator.family!="nn4"){dLayer.display="block";dLayer.visibility="visible"}else{dLayer.visibility="show"}}function changeLayer(theLayerToShow,theLayerToHide){hideLayer(theLayerToHide);switch(navigator.family){case"nn4":dLayer=eval("document.layers."+theLayerToShow);break;case"ie4":case"gecko":dLayer=document.getElementById(theLayerToShow).style;break}if(navigator.family!="nn4"){dLayer.display="block";dLayer.visibility="visible"}else{dLayer.visibility="show"}}function hideLayer(theLayer){switch(navigator.family){case"nn4":if(eval("document.layers."+theLayer)){eval("document.layers."+theLayer+".visibility='hidden'")}else{break}break;case"ie4":case"gecko":theForm=document.getElementById(theLayer);if(theForm){if(theForm.style.visibility=="visible"||theForm.style.display!="none"){theForm.style.display="none";theForm.style.visibility="hidden"}}else{break}}}function dv2eeFormChecker(q,b,p){switch(navigator.family){case"nn4":break;case"ie4":case"gecko":default:for(var f=0;f<b.length;f++){var m=q.elements[b[f]];if(!m){continue}if(m.type=="text"){if(m.value.length==0){window.alert(p[f]);return false}}if(m.type=="textarea"){if(m.value.length==0){window.alert(p[f]);return false}}if(m.type=="password"){if(m.value.length==0){window.alert(p[f]);return false}}if(m.type=="checkbox"){if(!m.checked){window.alert(p[f]);return false}}if(m.type=="hidden"){if(m.value.length==0){window.alert(p[f]);return false}}if(m.type=="radio"){if(!m.checked){window.alert(p[f]);return false}}if(m.type=="file"){if(m.value.length==0){window.alert(p[f]);return false}}if(m.type=="select-multiple"){if(m.selectedIndex==-1){window.alert(p[f]);return false}var l=0;for(var e=0;e<m.length;e++){if(m.options[e].selected){if(m.options[e].value!=null&&m.options[e].value!=""){l++}}}if(l==0){window.alert(p[f]);return false}}if(m.type=="select-one"){if(m.selectedIndex==-1){window.alert(p[f]);return false}for(var e=0;e<m.length;e++){if(m.options[e].selected){if(m.options[e].value==null||m.options[e].value==""){window.alert(p[f]);return false}}}}if(m.length!=undefined){var c=0;var a=0;var g=0;var h=0;var o=0;var n=0;for(var d=0;d<m.length;d++){if(m[d].type=="text"){g++;if(m[d].value.length>0){n++}}if(m[d].type=="textarea"){g++;if(m[d].value.length>0){n++}}if(m[d].type=="password"){g++;if(m[d].value.length>0){n++}}if(m[d].type=="checkbox"){c++;if(m[d].checked){o++}}if(m[d].type=="hidden"){g++;if(m[d].value.length>0){n++}}if(m[d].type=="file"){g++;if(m[d].value.length>0){n++}}if(m[d].type=="select-multiple"){if(m[d].selectedIndex==-1){window.alert(p[f]);return false}var l=0;for(var e=0;e<m[d].length;e++){if(m[d].options[e].selected){if(m[d].options[e].value!=null&&m[d].options[e].value!=""){l++}}}if(l==0){window.alert(p[f]);return false}}if(m[d].type=="select-one"){if(m[d].selectedIndex==-1){window.alert(p[f]);return false}for(var e=0;e<m[d].options.length;e++){if(m[d].options[e].selected){if(m[d].options[e].value==null||m[d].options[e].value==""){window.alert(p[f]);return false}}}}if(m[d].type=="radio"){a++;if(m[d].checked){h++}}}if(a!=0&&h==0){window.alert(p[f]);return false}if(c!=0&&o==0){window.alert(p[f]);return false}if(g!=0&&n==0){window.alert(p[f]);return false}}}}waitCursor();return true}function waitCursor(){if(navigator.family=="ie4"){document.disabled="true";document.documentElement.style.old_cursor=document.documentElement.style.cursor;document.documentElement.style.cursor="wait";var a=document.getElementsByTagName("INPUT");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.old_cursor=a[j].style.cursor;a[j].style.cursor="wait"}}a=document.getElementsByTagName("TEXTAREA");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.old_cursor=a[j].style.cursor;a[j].style.cursor="wait"}}a=document.getElementsByTagName("DIV");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.old_cursor=a[j].style.cursor;a[j].style.cursor="wait"}}a=document.getElementsByTagName("BUTTON");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.old_cursor=a[j].style.cursor;a[j].style.cursor="wait"}}}}function restoreCursor(){if(navigator.family=="ie4"){document.disabled="false";document.documentElement.style.cursor=document.documentElement.style.old_cursor;var a=document.getElementsByTagName("INPUT");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.cursor=a[j].style.old_cursor}}a=document.getElementsByTagName("TEXTAREA");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.cursor=a[j].style.old_cursor}}a=document.getElementsByTagName("DIV");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.cursor=a[j].style.old_cursor}}a=document.getElementsByTagName("BUTTON");for(j=0;j<a.length;j++){if(a[j].style!=null){a[j].style.cursor=a[j].style.old_cursor}}}}function doReset(d){for(i=0;i<d.form.elements.length;i++){_item=d.form.elements.item(i);if(_item.type=="button"||_item.type=="submit"||_item.type=="reset"){continue}if(_item.type=="hidden"){var c=document.getElementById("sel"+_item.name);if(c!=undefined&&c!="null"){ec=c.children[1].children;var b=ec.length;for(var a=0;a<b;a++){ec[a].removeAttribute("selected");if(ec[a].backupCss!=null){ec[a].style.cssText=ec[a].backupCss}}ec[0].setAttribute("selected",1);c.selectedIndex=findSelected(c);if(ec[0].backupCss!=null){ec[0].style.cssText=ec[0].backupCss}copySelected(c);highlightSelected(c,false);_item.value=ec[0].value}}if(_item.type=="text"){_item.value=""}if(_item.type=="select-one"){_item.selectedIndex=0}}return false}function getHTTPObject(){var a=false;if(window.ActiveXObject){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){a=false}}}if(!a&&typeof XMLHttpRequest!="undefined"){try{a=new XMLHttpRequest()}catch(c){a=false}}return a}function executeForm(e,a){var d="";for(var c=0;c<e.length;c++){if(e.elements[c].type=="submit"){continue}if(e.elements[c].type=="button"){continue}if(e.elements[c].type=="radio"&&!e.elements[c].checked){continue}if(e.elements[c].type=="checkbox"&&!e.elements[c].checked){continue}if(d!=""){d+="&"}d+=e.elements[c].name+"="+e.elements[c].value}var b=e.action;return executeUrl(b,d,a)}function executeUrl(c,d,a,e){var b=getHTTPObject();if(!b){return true}if(!e){e="POST"}b.onreadystatechange=function(){if(b.readyState==4){if(b.status==200){if(replaceAll(b.responseText,"\r\n","")!=""){document.getElementById(a).innerHTML=b.responseText;evalDivScripts(document.getElementById(a))}}}};if(e=="GET"){b.open(e,c+"?"+d,true);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b.send(null)}else{b.open(e,c,true);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(d==null){b.send("abcxyz=1")}else{b.send(d)}}return false}function replaceAll(c,b,a){while(c.indexOf(b)!=-1){c=c.replace(b,a)}return c}function evalDivScripts(bodyDocument){var nodes=bodyDocument.getElementsByTagName("SCRIPT");for(var i=0;i<nodes.length;i++){_script=nodes[i].text.replace("<!--","");_script=_script.replace("//-->","");_script=_script.replace("\n","");eval(_script)}}var onLink=false;var onLayer=false;function enterLink(b,a){onLink=true;showLayer(b,a)}function leaveLink(b,a){onLink=false;if(onLayer==true){showLayer(b,a)}else{hideLayer(b,a)}}function enterLayer(b,a){onLayer=true;showLayer(b,a)}function leaveLayer(b,a){onLayer=false;if(onLink==true){showLayer(b,a)}else{hideLayer(b,a)}}function showLayer(d,c){var a=document.getElementById(c);var b=document.getElementById("bodyContentDiv");if(a&&a.style.visibility=="hidden"){if(onLink){if(b){a.parentNode.removeChild(a);b.appendChild(a)}if(window.navigator.appName=="Netscape"){a.style.top=d.pageY-2;a.style.left=d.pageX-2}else{a.style.top=self.document.body.scrollTop+d.y-2;a.style.left=d.x-2}}document.body.style.overflowX="hidden";a.style.visibility="visible"}}function showLayer2(h,c){h=(h)?h:event;var b=document.getElementById(c);var g=self.document.documentElement,a=self.document.body;var f,d,k;if(b){if(window.navigator.appName=="Netscape"){f=h.pageX;d=h.pageY}else{if(h.pageX==null&&h.clientX!=null){f=h.clientX+(g&&g.scrollLeft||a&&a.scrollLeft||0)-(g.clientLeft||0);d=h.clientY+(g&&g.scrollTop||a&&a.scrollTop||0)-(g.clientTop||0)}else{f=h.x+g.scrollLeft+a.scrollLeft;d=h.y+g.scrollTop+a.scrollTop}}k=(self.innerWidth||g&&g.clientWidth||a&&a.clientWidth||0)-15;f=(f+b.offsetWidth>k)?f-b.offsetWidth+12:f;b.style.left=(f-2)+"px";b.style.top=(d+20)+"px";b.style.visibility="visible"}}function hideLayer(c,b){var a=document.getElementById(b);if(a){a.style.visibility="hidden";a.style.left="0px";a.style.top="0px"}}function hidelayer(a){document.getElementById(a).style.display="none"}function showlayer(a){document.getElementById(a).style.display="block"}function writetolayer(b,a){document.getElementById(b).innerHTML=a}function DynLayer(id,nestref,frame){if(!DynLayer.set&&!frame){DynLayerInit()}this.frame=frame||self;if(is.ns4){if(is.ns4){if(!frame){if(!nestref){var nestref=DynLayer.nestRefArray[id]}if(!DynLayerTest(id,nestref)){return}this.css=(nestref)?eval("document."+nestref+".document."+id):document.layers[id]}else{this.css=(nestref)?eval("frame.document."+nestref+".document."+id):frame.document.layers[id]}this.elm=this.event=this.css;this.doc=this.css.document}this.x=this.css.left;this.y=this.css.top;this.w=this.css.clip.width;this.h=this.css.clip.height}else{if(is.ie||is.ns5){if(is.ie){this.elm=this.event=this.frame.document.all[id]}else{this.elm=this.event=this.frame.document.getElementById(id)}this.css=this.elm.style;this.doc=document;this.x=this.elm.offsetLeft;this.y=this.elm.offsetTop;this.w=(is.ie4)?this.css.pixelWidth:this.elm.offsetWidth;this.h=(is.ie4)?this.css.pixelHeight:this.elm.offsetHeight}}this.id=id;this.nestref=nestref;this.obj=id+"DynLayer";eval(this.obj+"=this")}function DynLayerMoveTo(a,b){if(a!=null){this.x=a;if(is.ns4){this.css.left=this.x}else{if(is.ie){this.css.pixelLeft=this.x}else{if(is.ns5){this.css.left=Math.floor(this.x)+"px"}}}}if(b!=null){this.y=b;if(is.ns4){this.css.top=this.y}else{if(is.ie){this.css.pixelTop=this.y}else{if(is.ns5){this.css.top=Math.floor(this.y)+"px"}}}}}function DynLayerMoveBy(a,b){this.moveTo(this.x+a,this.y+b)}function DynLayerShow(){this.css.visibility=(is.ns4)?"show":"visible"}function DynLayerHide(){this.css.visibility=(is.ns4)?"hide":"hidden"}DynLayer.prototype.moveTo=DynLayerMoveTo;DynLayer.prototype.moveBy=DynLayerMoveBy;DynLayer.prototype.show=DynLayerShow;DynLayer.prototype.hide=DynLayerHide;DynLayerTest=new Function("return true");function DynLayerInit(nestref){if(!DynLayer.set){DynLayer.set=true}if(is.ns4){if(nestref){ref=eval("document."+nestref+".document")}else{nestref="";ref=document}for(var i=0;i<ref.layers.length;i++){var divname=ref.layers[i].name;DynLayer.nestRefArray[divname]=nestref;var index=divname.indexOf("Div");if(index>0){eval(divname.substr(0,index)+' = new DynLayer("'+divname+'","'+nestref+'")')}if(ref.layers[i].document.layers.length>0){DynLayer.refArray[DynLayer.refArray.length]=(nestref=="")?ref.layers[i].name:nestref+".document."+ref.layers[i].name}}if(DynLayer.refArray.i<DynLayer.refArray.length){DynLayerInit(DynLayer.refArray[DynLayer.refArray.i++])}}else{if(is.ie){for(var i=0;i<document.all.tags("DIV").length;i++){var divname=document.all.tags("DIV")[i].id;var index=divname.indexOf("Div");if(index>0){eval(divname.substr(0,index)+' = new DynLayer("'+divname+'")')}}}else{if(is.ns5){var nodeList=document.getElementsByTagName("div");for(var i=0;i<nodeList.length;i++){var divname=nodeList[i].id;var index=divname.indexOf("Div");if(index>0){eval(divname.substr(0,index)+' = new DynLayer("'+divname+'")')}}}}}return true}DynLayer.nestRefArray=new Array();DynLayer.refArray=new Array();DynLayer.refArray.i=0;DynLayer.set=false;function DynLayerSlideTo(f,d,g,e,c){if(f==null){f=this.x}if(d==null){d=this.y}var b=f-this.x;var a=d-this.y;this.slideStart(f,d,b,a,g,e,c)}function DynLayerSlideBy(b,a,g,f,c){var e=this.x+b;var d=this.y+a;this.slideStart(e,d,b,a,g,f,c)}function DynLayerSlideStart(g,f,d,c,a,b,h){if(this.slideActive){return}if(!a){a=10}if(!b){b=20}var e=Math.sqrt(Math.pow(d,2)+Math.pow(c,2))/a;if(e==0){return}var l=d/e;var k=c/e;if(!h){h=null}this.slideActive=true;this.slide(l,k,g,f,e,1,b,h)}function DynLayerSlide(dx,dy,endx,endy,num,i,speed,fn){if(!this.slideActive){return}if(i++<num){this.moveBy(dx,dy);this.onSlide();if(this.slideActive){setTimeout(this.obj+".slide("+dx+","+dy+","+endx+","+endy+","+num+","+i+","+speed+',"'+fn+'")',speed)}else{this.onSlideEnd()}}else{this.slideActive=false;this.moveTo(endx,endy);this.onSlide();this.onSlideEnd();eval(fn)}}function DynLayerSlideInit(){}DynLayer.prototype.slideInit=DynLayerSlideInit;DynLayer.prototype.slideTo=DynLayerSlideTo;DynLayer.prototype.slideBy=DynLayerSlideBy;DynLayer.prototype.slideStart=DynLayerSlideStart;DynLayer.prototype.slide=DynLayerSlide;DynLayer.prototype.onSlide=new Function();DynLayer.prototype.onSlideEnd=new Function();function DynLayerClipInit(d,a,c,b){if(is.ie||is.ns5){if(arguments.length==4){this.clipTo(d,a,c,b)}else{if(is.ie4){this.clipTo(0,this.css.pixelWidth,this.css.pixelHeight,0)}else{if(is.ns5){this.clipTo(0,this.elm.offsetWidth,this.elm.offsetHeight,0)}}}}}function DynLayerClipTo(d,e,a,c){if(d==null){d=this.clipValues("t")}if(e==null){e=this.clipValues("r")}if(a==null){a=this.clipValues("b")}if(c==null){c=this.clipValues("l")}if(is.ns4){this.css.clip.top=d;this.css.clip.right=e;this.css.clip.bottom=a;this.css.clip.left=c}else{if(is.ie||is.ns5){this.css.clip="rect("+d+"px "+e+"px "+a+"px "+c+"px)"}}}function DynLayerClipBy(d,e,a,c){this.clipTo(this.clipValues("t")+d,this.clipValues("r")+e,this.clipValues("b")+a,this.clipValues("l")+c)}function DynLayerClipValues(a){if(is.ie||is.ns5){var b=this.css.clip.split("rect(")[1].split(")")[0].split("px")}if(a=="t"){return(is.ns4)?this.css.clip.top:Number(b[0])}if(a=="r"){return(is.ns4)?this.css.clip.right:Number(b[1])}if(a=="b"){return(is.ns4)?this.css.clip.bottom:Number(b[2])}if(a=="l"){return(is.ns4)?this.css.clip.left:Number(b[3])}}DynLayer.prototype.clipInit=DynLayerClipInit;DynLayer.prototype.clipTo=DynLayerClipTo;DynLayer.prototype.clipBy=DynLayerClipBy;DynLayer.prototype.clipValues=DynLayerClipValues;function DynLayerWrite(a){if(is.ns4){this.doc.open();this.doc.write(a);this.doc.close()}else{if(is.ie||is.ns5){this.event.innerHTML=a}}}DynLayer.prototype.write=DynLayerWrite;function BrowserCheck(){var a=navigator.appName;if(a=="Netscape"){this.b="ns"}else{if(a=="Microsoft Internet Explorer"){this.b="ie"}else{this.b=a}}this.version=navigator.appVersion;this.v=parseInt(this.version);this.ns=(this.b=="ns"&&this.v>=4);this.ns4=(this.b=="ns"&&this.v==4);this.ns5=(this.b=="ns"&&this.v==5);this.ie=(this.b=="ie"&&this.v>=4);this.ie4=(this.version.indexOf("MSIE 4")>0);this.ie5=(this.version.indexOf("MSIE 5")>0);this.min=(this.ns||this.ie)}is=new BrowserCheck();function css(a,d,k,c,l,e,b,h,f){var m="";if(arguments.length>=4&&c!=null){if(c.length==undefined){m="px"}}if(a=="START"){return'<STYLE TYPE="text/css">\n'}else{if(a=="END"){return"</STYLE>"}}var g=(d!=null&&k!=null)?"#"+a+" {position:absolute; left:"+d+"px; top:"+k+"px;":"#"+a+" {position:relative;";if(arguments.length>=4&&c!=null){g+=" width:"+c+m+";"}if(arguments.length>=5&&l!=null){g+=" height:"+l+"px;";if(arguments.length<9||f.indexOf("clip")==-1){g+=" clip:rect(0px "+c+m+" "+l+"px 0px);"}}if(arguments.length>=6&&e!=null){g+=(is.ns4)?" layer-background-color:"+e+";":" background-color:"+e+";"}if(arguments.length>=7&&b!=null){g+=" visibility:"+b+";"}if(arguments.length>=8&&h!=null){g+=" z-index:"+h+";"}if(arguments.length==9&&f!=null){g+=" "+f}g+="}\n";return g}function writeCSS(b,a){b=css("START")+b+css("END");document.write(b);if(a){alert(b)}}function DynLayerLoad(a,b){this.loadFinish=DynLayerLoadFinish;if(is.ns4){this.css.load(a,this.w)}else{if(is.ie||is.ns5){parent.bufferFrame.document.location=a}}this.evalfn=b}function DynLayerLoadFinish(){if(is.ie||is.ns5){this.event.innerHTML=parent.bufferFrame.document.body.innerHTML}eval(this.evalfn)}DynLayer.prototype.load=DynLayerLoad;function DynLayerSetbg(a){if(is.ns4){this.doc.bgColor=a}else{this.css.backgroundColor=a}}DynLayer.prototype.setbg=DynLayerSetbg;function DynLayerImg(imgName,imgObj){this.doc.images[imgName].src=eval(imgObj+".src")}DynLayer.prototype.img=DynLayerImg;function DynLayerGetRelativeX(){return(is.ns4)?this.css.pageX:this.elm.offsetLeft}function DynLayerGetRelativeY(){return(is.ns4)?this.css.pageY:this.elm.offsetTop}DynLayer.prototype.getRelativeX=DynLayerGetRelativeX;DynLayer.prototype.getRelativeY=DynLayerGetRelativeY;function DynLayerGetContentWidth(){return(is.ns4)?this.doc.width:this.elm.offsetWidth}function DynLayerGetContentHeight(){return(is.ns4)?this.doc.height:this.elm.offsetHeight}DynLayer.prototype.getContentWidth=DynLayerGetContentWidth;DynLayer.prototype.getContentHeight=DynLayerGetContentHeight;function DynLayerGlideTo(h,a,g,f,d,b,k){alert("DynLayerGlideTo");if(g==null){g=this.x}if(f==null){f=this.y}var e=g-this.x;var c=f-this.y;this.glideStart(h,a,g,f,e,c,d,b,k)}function DynLayerGlideBy(h,a,e,c,d,b,k){var g=this.x+e;var f=this.y+c;this.glideStart(h,a,g,f,e,c,d,b,k)}function DynLayerGlideStart(l,c,k,h,g,e,f,d,m){if(this.glideActive){return}if(k==this.x){var b=90}else{if(h==this.y){var b=0}else{var b=Math.abs(Math.atan(e/g)*180/Math.PI)}}if(k>=this.x){if(h>this.y){b=360-b}}else{if(h>this.y){b=180+b}else{b=180-b}}b*=Math.PI/180;var a=Math.sqrt(Math.pow(g,2)+Math.pow(e,2));if(!m){m=null}this.glideActive=true;if(l=="fast"){if(c=="fast"){this.glide(1,a/2,0,90,this.x,this.y,b,k,h,g,e,f,d,m)}else{this.glide(0,a,0,90,this.x,this.y,b,k,h,g,e,f,d,m)}}else{if(c=="fast"){this.glide(0,a,-90,0,this.x+g,this.y+e,b,k,h,g,e,f,d,m)}else{this.glide(0,a/2,-90,90,this.x+g/2,this.y+e/2,b,k,h,g,e,f,d,m)}}}function DynLayerGlide(type,amplitude,angle,endangle,centerX,centerY,slantangle,endx,endy,distx,disty,angleinc,speed,fn){if(angle<endangle&&this.glideActive){angle+=angleinc;var u=amplitude*Math.sin(angle*Math.PI/180);var x=centerX+u*Math.cos(slantangle);var y=centerY-u*Math.sin(slantangle);this.moveTo(x,y);this.onGlide();if(this.glideActive){setTimeout(this.obj+".glide("+type+","+amplitude+","+angle+","+endangle+","+centerX+","+centerY+","+slantangle+","+endx+","+endy+","+distx+","+disty+","+angleinc+","+speed+",'"+fn+"')",speed)}else{this.onGlideEnd()}}else{if(type==1){this.glide(0,amplitude,-90,0,this.x+distx/2,this.y+disty/2,slantangle,endx,endy,distx,disty,angleinc,speed,fn)}else{this.glideActive=false;this.moveTo(endx,endy);this.onGlide();this.onGlideEnd();eval(fn)}}}DynLayerGlideInit=new Function();DynLayer.prototype.glideInit=new Function();DynLayer.prototype.glideTo=DynLayerGlideTo;DynLayer.prototype.glideBy=DynLayerGlideBy;DynLayer.prototype.glideStart=DynLayerGlideStart;DynLayer.prototype.glide=DynLayerGlide;DynLayer.prototype.onGlide=new Function();DynLayer.prototype.onGlideEnd=new Function();function NewsTicker(tickerName,x,y,width,height){this.name=tickerName+(NewsTicker.count++);this.x=x;this.y=y;this.w=width;this.h=height;this.obj=this.name+"Object";eval(this.obj+"=this");this.items=new Array();this.scrollCount=0;this.pauseLength=3000;this.inc=2;this.speed=30;this.fromX=0;this.fromY=this.h;this.bgColor=null;this.addItem=NewsTickerAddItem;this.activate=NewsTickerActivate;this.build=NewsTickerBuild;this.start=NewsTickerStart;this.stop=NewsTickerStop;this.slide=NewsTickerSlide}function NewsTickerAddItem(b){var a=this.items.length;this.items[a]=new Object();this.items[a].text=b}function NewsTickerBuild(){this.css=css(this.name,this.x,this.y,this.w,this.h);this.div='<div id="'+this.name+'">';for(var a=0;a<this.items.length;a++){this.css+=css(this.name+"Item"+a,0,0,this.w,this.h,this.bgColor,"hidden");this.div+='<div id="'+this.name+"Item"+a+'">'+this.items[a].text+"</div>"}this.div+="</div>"}function NewsTickerActivate(c){for(var b=0;b<this.items.length;b++){this.items[b].lyr=new DynLayer(this.name+"Item"+b);this.items[b].lyr.moveTo(this.fromX,this.fromY);this.items[b].lyr.show()}this.items[0].lyr.moveTo(0,0);this.lyr=new DynLayer(this.name);var a=Math.sqrt(Math.pow(this.fromX,2)+Math.pow(this.fromY,2))/this.inc;this.dx=this.fromX/a||0;this.dy=this.fromY/a||0;if(c!=false){setTimeout(this.obj+".start()",this.pauseLength)}}function NewsTickerStart(){if(!this.started){this.started=true;var c=this.scrollCount;var a=(this.scrollCount==this.items.length-1)?0:this.scrollCount+1;var e=this.items[c].lyr.obj;var d=this.items[a].lyr.obj;this.timer=setInterval(this.obj+".slide("+e+","+d+")",this.speed)}}function NewsTickerStop(){clearInterval(this.timer);this.started=false}function NewsTickerSlide(b,a){b.moveBy(-this.dx,-this.dy);a.moveBy(-this.dx,-this.dy);if((this.dx!=0&&Math.floor(a.x)==0)||(this.dy!=0&&Math.floor(a.y)==0)){clearInterval(this.timer);b.moveTo(this.fromX,this.fromY);a.moveTo(0,0);this.scrollCount=(this.scrollCount==this.items.length-1)?0:this.scrollCount+1;this.timer=setTimeout(this.obj+".started=false;"+this.obj+".start()",this.pauseLength)}}NewsTicker.count=0;
