var Spry;if(!Spry){Spry={}}if(!Spry.Widget){Spry.Widget={}}Spry.Widget.TabbedPanels=function(A,C){this.element=this.getElement(A);this.defaultTab=0;this.tabSelectedClass="TabbedPanelsTabSelected";this.tabHoverClass="TabbedPanelsTabHover";this.tabFocusedClass="TabbedPanelsTabFocused";this.panelVisibleClass="TabbedPanelsContentVisible";this.focusElement=null;this.hasFocus=false;this.currentTabIndex=0;this.enableKeyboardNavigation=true;this.nextPanelKeyCode=Spry.Widget.TabbedPanels.KEY_RIGHT;this.previousPanelKeyCode=Spry.Widget.TabbedPanels.KEY_LEFT;Spry.Widget.TabbedPanels.setOptions(this,C);if(typeof (this.defaultTab)=="number"){if(this.defaultTab<0){this.defaultTab=0}else{var B=this.getTabbedPanelCount();if(this.defaultTab>=B){this.defaultTab=(B>1)?(B-1):0}}this.defaultTab=this.getTabs()[this.defaultTab]}if(this.defaultTab){this.defaultTab=this.getElement(this.defaultTab)}this.attachBehaviors()};Spry.Widget.TabbedPanels.prototype.getElement=function(A){if(A&&typeof A=="string"){return document.getElementById(A)}return A};Spry.Widget.TabbedPanels.prototype.getElementChildren=function(B){var A=[];var C=B.firstChild;while(C){if(C.nodeType==1){A.push(C)}C=C.nextSibling}return A};Spry.Widget.TabbedPanels.prototype.addClassName=function(B,A){if(!B||!A||(B.className&&B.className.search(new RegExp("\\b"+A+"\\b"))!=-1)){return }B.className+=(B.className?" ":"")+A};Spry.Widget.TabbedPanels.prototype.removeClassName=function(B,A){if(!B||!A||(B.className&&B.className.search(new RegExp("\\b"+A+"\\b"))==-1)){return }B.className=B.className.replace(new RegExp("\\s*\\b"+A+"\\b","g"),"")};Spry.Widget.TabbedPanels.setOptions=function(D,C,A){if(!C){return }for(var B in C){if(A&&C[B]==undefined){continue}D[B]=C[B]}};Spry.Widget.TabbedPanels.prototype.getTabGroup=function(){if(this.element){var A=this.getElementChildren(this.element);if(A.length){return A[0]}}return null};Spry.Widget.TabbedPanels.prototype.getTabs=function(){var A=[];var B=this.getTabGroup();if(B){A=this.getElementChildren(B)}return A};Spry.Widget.TabbedPanels.prototype.getContentPanelGroup=function(){if(this.element){var A=this.getElementChildren(this.element);if(A.length>1){return A[1]}}return null};Spry.Widget.TabbedPanels.prototype.getContentPanels=function(){var A=[];var B=this.getContentPanelGroup();if(B){A=this.getElementChildren(B)}return A};Spry.Widget.TabbedPanels.prototype.getIndex=function(C,A){C=this.getElement(C);if(C&&A&&A.length){for(var B=0;B<A.length;B++){if(C==A[B]){return B}}}return -1};Spry.Widget.TabbedPanels.prototype.getTabIndex=function(B){var A=this.getIndex(B,this.getTabs());if(A<0){A=this.getIndex(B,this.getContentPanels())}return A};Spry.Widget.TabbedPanels.prototype.getCurrentTabIndex=function(){return this.currentTabIndex};Spry.Widget.TabbedPanels.prototype.getTabbedPanelCount=function(A){return Math.min(this.getTabs().length,this.getContentPanels().length)};Spry.Widget.TabbedPanels.addEventListener=function(C,B,D,A){try{if(C.addEventListener){C.addEventListener(B,D,A)}else{if(C.attachEvent){C.attachEvent("on"+B,D)}}}catch(E){}};Spry.Widget.TabbedPanels.prototype.cancelEvent=function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}return false};Spry.Widget.TabbedPanels.prototype.onTabClick=function(B,A){this.showPanel(A);return this.cancelEvent(B)};Spry.Widget.TabbedPanels.prototype.onTabMouseOver=function(B,A){this.addClassName(A,this.tabHoverClass);return false};Spry.Widget.TabbedPanels.prototype.onTabMouseOut=function(B,A){this.removeClassName(A,this.tabHoverClass);return false};Spry.Widget.TabbedPanels.prototype.onTabFocus=function(B,A){this.hasFocus=true;this.addClassName(A,this.tabFocusedClass);return false};Spry.Widget.TabbedPanels.prototype.onTabBlur=function(B,A){this.hasFocus=false;this.removeClassName(A,this.tabFocusedClass);return false};Spry.Widget.TabbedPanels.KEY_UP=38;Spry.Widget.TabbedPanels.KEY_DOWN=40;Spry.Widget.TabbedPanels.KEY_LEFT=37;Spry.Widget.TabbedPanels.KEY_RIGHT=39;Spry.Widget.TabbedPanels.prototype.onTabKeyDown=function(F,E){var C=F.keyCode;if(!this.hasFocus||(C!=this.previousPanelKeyCode&&C!=this.nextPanelKeyCode)){return true}var B=this.getTabs();for(var A=0;A<B.length;A++){if(B[A]==E){var D=false;if(C==this.previousPanelKeyCode&&A>0){D=B[A-1]}else{if(C==this.nextPanelKeyCode&&A<B.length-1){D=B[A+1]}}if(D){this.showPanel(D);D.focus();break}}}return this.cancelEvent(F)};Spry.Widget.TabbedPanels.prototype.preorderTraversal=function(A,B){var D=false;if(A){D=B(A);if(A.hasChildNodes()){var E=A.firstChild;while(!D&&E){D=this.preorderTraversal(E,B);try{E=E.nextSibling}catch(C){E=null}}}}return D};Spry.Widget.TabbedPanels.prototype.addPanelEventListeners=function(D,B){var C=this;Spry.Widget.TabbedPanels.addEventListener(D,"click",function(F){return C.onTabClick(F,D)},false);Spry.Widget.TabbedPanels.addEventListener(D,"mouseover",function(F){return C.onTabMouseOver(F,D)},false);Spry.Widget.TabbedPanels.addEventListener(D,"mouseout",function(F){return C.onTabMouseOut(F,D)},false);if(this.enableKeyboardNavigation){var E=null;var A=null;this.preorderTraversal(D,function(F){if(F.nodeType==1){var G=D.attributes.getNamedItem("tabindex");if(G){E=F;return true}if(!A&&F.nodeName.toLowerCase()=="a"){A=F}}return false});if(E){this.focusElement=E}else{if(A){this.focusElement=A}}if(this.focusElement){Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"focus",function(F){return C.onTabFocus(F,D)},false);Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"blur",function(F){return C.onTabBlur(F,D)},false);Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"keydown",function(F){return C.onTabKeyDown(F,D)},false)}}};Spry.Widget.TabbedPanels.prototype.showPanel=function(B){var F=-1;if(typeof B=="number"){F=B}else{F=this.getTabIndex(B)}if(!F<0||F>=this.getTabbedPanelCount()){return }var E=this.getTabs();var C=this.getContentPanels();var A=Math.max(E.length,C.length);for(var D=0;D<A;D++){if(D!=F){if(E[D]){this.removeClassName(E[D],this.tabSelectedClass)}if(C[D]){this.removeClassName(C[D],this.panelVisibleClass);C[D].style.display="none"}}}this.addClassName(E[F],this.tabSelectedClass);this.addClassName(C[F],this.panelVisibleClass);C[F].style.display="block";this.currentTabIndex=F};Spry.Widget.TabbedPanels.prototype.attachBehaviors=function(D){var C=this.getTabs();var A=this.getContentPanels();var E=this.getTabbedPanelCount();for(var B=0;B<E;B++){this.addPanelEventListeners(C[B],A[B])}this.showPanel(this.defaultTab)};var xmlHttp;function ajaxFunction(){try{xmlHttp=new XMLHttpRequest()}catch(A){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(A){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(A){alert("Your browser does not support AJAX!");return false}}}}var DDSPEED=10;var DDTIMER=15;function ddMenu(D,B){var A=document.getElementById(D+"-ddheader");var C=document.getElementById(D+"-ddcontent");clearInterval(C.timer);if(B==1){clearTimeout(A.timer);if(C.maxh&&C.maxh<=C.offsetHeight){return }else{if(!C.maxh){C.style.display="block";C.style.height="auto";C.maxh=C.offsetHeight;C.style.height="0px"}}C.timer=setInterval(function(){ddSlide(C,1);document.getElementById("two-ddheader").style.cssText="background:url(../../../images/com/info_imgdistancia_bot.gif) no-repeat bottom;"},DDTIMER)}else{A.timer=setTimeout(function(){ddCollapse(C)},50)}}function ddCollapse(A){A.timer=setInterval(function(){ddSlide(A,-1)},DDTIMER);document.getElementById("two-ddheader").style.cssText="background:url(../../../images/com/info_imgdistancia.gif) no-repeat bottom;"}function cancelHide(C){var A=document.getElementById(C+"-ddheader");var B=document.getElementById(C+"-ddcontent");clearTimeout(A.timer);clearInterval(B.timer);if(B.offsetHeight<B.maxh){B.timer=setInterval(function(){ddSlide(B,1)},DDTIMER)}}function ddSlide(D,C){var B=D.offsetHeight;var A;if(C==1){A=(Math.round((D.maxh-B)/DDSPEED))}else{A=(Math.round(B/DDSPEED))}if(A<=1&&C==1){A=1}if(B<45){D.style.height=B+(A*C)+"px";D.style.opacity=B/D.maxh;D.style.filter="alpha(opacity="+(B*150/D.maxh)+")"}if((B<2&&C!=1)||(B>(D.maxh-2)&&C==1)){clearInterval(D.timer)}if(C==-1&&B==4){document.getElementById("one-ddcontent").style.height="0px"}}function LoginDistEsp(E){var C;var B;var A;ajaxFunction();B=document.form1.txtNumDist.value;A=document.form1.txtPinDist.value;var D="ftnum="+B+"&pin="+A;document.getElementById("txtPinDist").value="";C="esp/dis/jli/jliloghp01.asp";document.getElementById("mensajeLogin").innerHTML="Procesando...";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById("mensajeLogin").innerHTML="";var F=xmlHttp.responseText.split("|");if(F[0]=="true"){document.getElementById("dvBloqueLogin").style.display="none";document.getElementById("msgarea").innerHTML=F[1];document.getElementById("dvLogin").style.display="block";document.getElementById("dvLoginDistancia").style.display="none"}else{document.getElementById("dvBloqueLogin").style.display="";if(F[0]=="false"){alertaGenerica(F[1])}else{alertaGenerica("Usuario Invalido")}}}};if(C!=""){xmlHttp.open("POST",C,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",D.length);xmlHttp.setRequestHeader("Connection","close");xmlHttp.send(D)}}function UserIsLoginEsp(B){var A;ajaxFunction();A="esp/dis/jli/jliloghp02.asp";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById("mensajeLogin").innerHTML="";var C=xmlHttp.responseText.split("|");if(C[0]=="true"){document.getElementById("msgarea").innerHTML=C[1];if(C[2]=="0"||C[2]=="2"){document.getElementById("dvBloqueLogin").style.display=""}}else{document.getElementById("dvBloqueLogin").style.display=""}}};if(A!=""){xmlHttp.open("GET",A,true);xmlHttp.send(null)}}function LogoutEsp(B){var A;ajaxFunction();A="esp/dis/jli/jlilogouthp.asp";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){var C=xmlHttp.responseText;if(C=="true"){UserIsLogin()}}};if(A!=""){xmlHttp.open("GET",A,true);xmlHttp.send(null)}}function LoginDistEng(){var C;var B;var A;ajaxFunction();B=document.form1.txtNumDist.value;A=document.form1.txtPinDist.value;var D="ftnum="+B+"&pin="+A;document.getElementById("txtPinDist").value="";C="eng/dis/jli/jliloghp01.asp";document.getElementById("mensajeLogin").innerHTML="Please Wait...";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById("mensajeLogin").innerHTML="";var E=xmlHttp.responseText.split("|");if(E[0]=="true"){document.getElementById("dvBloqueLogin").style.display="none";document.getElementById("msgarea").innerHTML=E[1];document.getElementById("dvLogin").style.display="block";document.getElementById("dvLoginDistancia").style.display="none"}else{document.getElementById("dvBloqueLogin").style.display="";if(E[0]=="false"){alertaGenerica(E[1])}else{alertaGenerica("Invalid User")}}}};if(C!=""){xmlHttp.open("POST",C,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",D.length);xmlHttp.setRequestHeader("Connection","close");xmlHttp.send(D)}}function UserIsLoginEng(){var A;ajaxFunction();A="eng/dis/jli/jliloghp02.asp";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById("mensajeLogin").innerHTML="";var B=xmlHttp.responseText.split("|");if(B[0]=="true"){document.getElementById("msgarea").innerHTML=B[1];if(B[2]=="0"||B[2]=="2"){document.getElementById("dvBloqueLogin").style.display=""}}else{document.getElementById("dvBloqueLogin").style.display=""}}};if(A!=""){xmlHttp.open("GET",A,true);xmlHttp.send(null)}}function LogoutEng(B){var A;ajaxFunction();A="eng/dis/jli/jlilogouthp.asp";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){var C=xmlHttp.responseText;if(C=="true"){UserIsLogin()}}};if(A!=""){xmlHttp.open("GET",A,true);xmlHttp.send(null)}}function ClkLog(){login_onclick();document.getElementById("txtNumDist").focus()}function LoginDistPor(){var C;var B;var A;ajaxFunction();B=document.form1.txtNumDist.value;A=document.form1.txtPinDist.value;var D="ftnum="+B+"&pin="+A;document.getElementById("txtPinDist").value="";C="por/dis/jli/jliloghp01.asp";document.getElementById("mensajeLogin").innerHTML="Procesando...";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById("mensajeLogin").innerHTML="";var E=xmlHttp.responseText.split("|");if(E[0]=="true"){document.getElementById("dvBloqueLogin").style.display="none";document.getElementById("msgarea").innerHTML=E[1];document.getElementById("dvLogin").style.display="block";document.getElementById("dvLoginDistancia").style.display="none"}else{document.getElementById("dvBloqueLogin").style.display="";if(E[0]=="false"){alertaGenerica(E[1])}else{alertaGenerica("Usuario Inválido")}}}};if(C!=""){xmlHttp.open("POST",C,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",D.length);xmlHttp.setRequestHeader("Connection","close");xmlHttp.send(D)}}function UserIsLoginPor(){var A;ajaxFunction();A="por/dis/jli/jliloghp02.asp";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){document.getElementById("mensajeLogin").innerHTML="";var B=xmlHttp.responseText.split("|");if(B[0]=="true"){document.getElementById("msgarea").innerHTML=B[1];if(B[2]=="0"||B[2]=="2"){document.getElementById("dvBloqueLogin").style.display=""}}else{document.getElementById("dvBloqueLogin").style.display=""}}};if(A!=""){xmlHttp.open("GET",A,true);xmlHttp.send(null)}}function LogoutPor(){var A;ajaxFunction();A="por/dis/jli/jlilogouthp.asp";xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){var B=xmlHttp.responseText;if(B=="true"){UserIsLogin()}}};if(A!=""){xmlHttp.open("GET",A,true);xmlHttp.send(null)}}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var A;var B;var C;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");A=B.GetVariable("$version")}catch(C){}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A="WIN 6,0,21,0";B.AllowScriptAccess="always";A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A="WIN 3,0,18,0"}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");A="WIN 2,0,0,11"}catch(C){A=-1}}return A}function GetSwfVer(){var G=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var F=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var A=navigator.plugins["Shockwave Flash"+F].description;var E=A.split(" ");var C=E[2].split(".");var H=C[0];var B=C[1];var D=E[3];if(D==""){D=E[4]}if(D[0]=="d"){D=D.substring(1)}else{if(D[0]=="r"){D=D.substring(1);if(D.indexOf("d")>0){D=D.substring(0,D.indexOf("d"))}}}var G=H+"."+B+"."+D}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){G=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){G=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){G=2}else{if(isIE&&isWin&&!isOpera){G=ControlVersion()}}}}}return G}function DetectFlashVer(F,D,C){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var E=versionArray[0];var A=versionArray[1];var B=versionArray[2];if(E>parseFloat(F)){return true}else{if(E==parseFloat(F)){if(A>parseFloat(D)){return true}else{if(A==parseFloat(D)){if(B>=parseFloat(C)){return true}}}}}return false}}}function AC_AddExtension(B,A){if(B.indexOf("?")!=-1){return B.replace(/\?/,A+"?")}else{return B+A}}function AC_Generateobj(E,D,A){var C="";if(isIE&&isWin&&!isOpera){C+="<object ";for(var B in E){C+=B+'="'+E[B]+'" '}C+=">";for(var B in D){C+='<param name="'+B+'" value="'+D[B]+'" /> '}C+="</object>"}else{C+="<embed ";for(var B in A){C+=B+'="'+A[B]+'" '}C+="> </embed>"}document.write(C)}function AC_FL_RunContent(){var A=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_SW_RunContent(){var A=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(A.objAttrs,A.params,A.embedAttrs)}function AC_GetArgs(B,E,G,D,H){var A=new Object();A.embedAttrs=new Object();A.params=new Object();A.objAttrs=new Object();for(var C=0;C<B.length;C=C+2){var F=B[C].toLowerCase();switch(F){case"classid":break;case"pluginspage":A.embedAttrs[B[C]]=B[C+1];break;case"src":case"movie":B[C+1]=AC_AddExtension(B[C+1],E);A.embedAttrs.src=B[C+1];A.params[G]=B[C+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":case"id":A.objAttrs[B[C]]=B[C+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":A.embedAttrs[B[C]]=A.objAttrs[B[C]]=B[C+1];break;default:A.embedAttrs[B[C]]=A.params[B[C]]=B[C+1]}}A.objAttrs.classid=D;if(H){A.embedAttrs.type=H}return A}var timeout=500;var closetimer=0;var ddmenuitem=0;function mopen(A){mcancelclosetime();if(ddmenuitem){ddmenuitem.style.visibility="hidden"}ddmenuitem=document.getElementById(A);ddmenuitem.style.visibility="visible"}function mclose(){if(ddmenuitem){ddmenuitem.style.visibility="hidden"}}function mclosetime(){closetimer=window.setTimeout(mclose,timeout)}function mcancelclosetime(){if(closetimer){window.clearTimeout(closetimer);closetimer=null}}document.onclick=mclose;var Spry;if(!Spry){Spry={}}if(!Spry.Widget){Spry.Widget={}}Spry.Widget.SlidingPanels=function(A,B){this.element=this.getElement(A);this.enableAnimation=true;this.currentPanel=null;this.enableKeyboardNavigation=true;this.hasFocus=false;this.previousPanelKeyCode=Spry.Widget.SlidingPanels.KEY_LEFT;this.nextPanelKeyCode=Spry.Widget.SlidingPanels.KEY_RIGHT;this.currentPanelClass="SlidingPanelsCurrentPanel";this.focusedClass="SlidingPanelsFocused";this.animatingClass="SlidingPanelsAnimating";Spry.Widget.SlidingPanels.setOptions(this,B);if(this.element){this.element.style.overflow="hidden"}if(this.defaultPanel){if(typeof this.defaultPanel=="number"){this.currentPanel=this.getContentPanels()[this.defaultPanel]}else{this.currentPanel=this.getElement(this.defaultPanel)}}if(!this.currentPanel){this.currentPanel=this.getContentPanels()[0]}if(Spry.Widget.SlidingPanels.onloadDidFire){this.attachBehaviors()}else{Spry.Widget.SlidingPanels.loadQueue.push(this)}};Spry.Widget.SlidingPanels.prototype.onFocus=function(A){this.hasFocus=true;this.addClassName(this.element,this.focusedClass);return false};Spry.Widget.SlidingPanels.prototype.onBlur=function(A){this.hasFocus=false;this.removeClassName(this.element,this.focusedClass);return false};Spry.Widget.SlidingPanels.KEY_LEFT=37;Spry.Widget.SlidingPanels.KEY_UP=38;Spry.Widget.SlidingPanels.KEY_RIGHT=39;Spry.Widget.SlidingPanels.KEY_DOWN=40;Spry.Widget.SlidingPanels.prototype.onKeyDown=function(B){var A=B.keyCode;if(!this.hasFocus||(A!=this.previousPanelKeyCode&&A!=this.nextPanelKeyCode)){return true}if(A==this.nextPanelKeyCode){this.showNextPanel()}else{this.showPreviousPanel()}if(B.preventDefault){B.preventDefault()}else{B.returnValue=false}if(B.stopPropagation){B.stopPropagation()}else{B.cancelBubble=true}return false};Spry.Widget.SlidingPanels.prototype.attachBehaviors=function(){var E=this.element;if(!E){return }if(this.enableKeyboardNavigation){var A=null;var D=E.attributes.getNamedItem("tabindex");if(D||E.nodeName.toLowerCase()=="a"){A=E}if(A){var B=this;Spry.Widget.SlidingPanels.addEventListener(A,"focus",function(F){return B.onFocus(F||window.event)},false);Spry.Widget.SlidingPanels.addEventListener(A,"blur",function(F){return B.onBlur(F||window.event)},false);Spry.Widget.SlidingPanels.addEventListener(A,"keydown",function(F){return B.onKeyDown(F||window.event)},false)}}if(this.currentPanel){var C=this.enableAnimation;this.enableAnimation=false;this.showPanel(this.currentPanel);this.enableAnimation=C}};Spry.Widget.SlidingPanels.prototype.getElement=function(A){if(A&&typeof A=="string"){return document.getElementById(A)}return A};Spry.Widget.SlidingPanels.prototype.addClassName=function(B,A){if(!B||!A||(B.className&&B.className.search(new RegExp("\\b"+A+"\\b"))!=-1)){return }B.className+=(B.className?" ":"")+A};Spry.Widget.SlidingPanels.prototype.removeClassName=function(B,A){if(!B||!A||(B.className&&B.className.search(new RegExp("\\b"+A+"\\b"))==-1)){return }B.className=B.className.replace(new RegExp("\\s*\\b"+A+"\\b","g"),"")};Spry.Widget.SlidingPanels.setOptions=function(D,C,A){if(!C){return }for(var B in C){if(A&&C[B]==undefined){continue}D[B]=C[B]}};Spry.Widget.SlidingPanels.prototype.getElementChildren=function(B){var A=[];var C=B.firstChild;while(C){if(C.nodeType==1){A.push(C)}C=C.nextSibling}return A};Spry.Widget.SlidingPanels.prototype.getCurrentPanel=function(){return this.currentPanel};Spry.Widget.SlidingPanels.prototype.getContentGroup=function(){return this.getElementChildren(this.element)[0]};Spry.Widget.SlidingPanels.prototype.getContentPanels=function(){return this.getElementChildren(this.getContentGroup())};Spry.Widget.SlidingPanels.prototype.getContentPanelsCount=function(){return this.getContentPanels().length};Spry.Widget.SlidingPanels.onloadDidFire=false;Spry.Widget.SlidingPanels.loadQueue=[];Spry.Widget.SlidingPanels.addLoadListener=function(A){if(typeof window.addEventListener!="undefined"){window.addEventListener("load",A,false)}else{if(typeof document.addEventListener!="undefined"){document.addEventListener("load",A,false)}else{if(typeof window.attachEvent!="undefined"){window.attachEvent("onload",A)}}}};Spry.Widget.SlidingPanels.processLoadQueue=function(C){Spry.Widget.SlidingPanels.onloadDidFire=true;var D=Spry.Widget.SlidingPanels.loadQueue;var A=D.length;for(var B=0;B<A;B++){D[B].attachBehaviors()}};Spry.Widget.SlidingPanels.addLoadListener(Spry.Widget.SlidingPanels.processLoadQueue);Spry.Widget.SlidingPanels.addEventListener=function(C,B,D,A){try{if(C.addEventListener){C.addEventListener(B,D,A)}else{if(C.attachEvent){C.attachEvent("on"+B,D)}}}catch(E){}};Spry.Widget.SlidingPanels.prototype.getContentPanelIndex=function(D){if(D){D=this.getElement(D);var B=this.getContentPanels();var A=B.length;for(var C=0;C<A;C++){if(B[C]==D){return C}}}return -1};Spry.Widget.SlidingPanels.prototype.showPanel=function(I){var G=-1;if(typeof I=="number"){G=I}else{G=this.getContentPanelIndex(I)}var E=this.getContentPanelsCount();if(E>0){G=(G>=E)?E-1:G}else{G=0}var A=this.getContentPanels()[G];var H=this.getContentGroup();if(A&&H){if(this.currentPanel){this.removeClassName(this.currentPanel,this.currentPanelClass)}this.currentPanel=A;var F=-A.offsetLeft;var D=-A.offsetTop;if(this.enableAnimation){if(this.animator){this.animator.stop()}var C=H.offsetLeft;var B=H.offsetTop;if(C!=F||B!=D){var J=this;this.addClassName(this.element,this.animatingClass);this.animator=new Spry.Widget.SlidingPanels.PanelAnimator(H,C,B,F,D,{duration:this.duration,fps:this.fps,transition:this.transition,finish:function(){J.removeClassName(J.element,J.animatingClass);J.addClassName(A,J.currentPanelClass)}});this.animator.start()}}else{H.style.left=F+"px";H.style.top=D+"px";this.addClassName(A,this.currentPanelClass)}}return A};Spry.Widget.SlidingPanels.prototype.showFirstPanel=function(){return this.showPanel(0)};Spry.Widget.SlidingPanels.prototype.showLastPanel=function(){return this.showPanel(this.getContentPanels().length-1)};Spry.Widget.SlidingPanels.prototype.showPreviousPanel=function(){return this.showPanel(this.getContentPanelIndex(this.currentPanel)-1)};Spry.Widget.SlidingPanels.prototype.showNextPanel=function(){return this.showPanel(this.getContentPanelIndex(this.currentPanel)+1)};Spry.Widget.SlidingPanels.PanelAnimator=function(E,B,A,G,F,D){this.element=E;this.curX=B;this.curY=A;this.dstX=G;this.dstY=F;this.fps=60;this.duration=500;this.transition=Spry.Widget.SlidingPanels.PanelAnimator.defaultTransition;this.startTime=0;this.timerID=0;this.finish=null;var C=this;this.intervalFunc=function(){C.step()};Spry.Widget.SlidingPanels.setOptions(this,D,true);this.interval=1000/this.fps};Spry.Widget.SlidingPanels.PanelAnimator.defaultTransition=function(D,B,A,C){D/=C;return B+((2-D)*D*A)};Spry.Widget.SlidingPanels.PanelAnimator.prototype.start=function(){this.stop();this.startTime=(new Date()).getTime();this.timerID=setTimeout(this.intervalFunc,this.interval)};Spry.Widget.SlidingPanels.PanelAnimator.prototype.stop=function(){if(this.timerID){clearTimeout(this.timerID)}this.timerID=0};Spry.Widget.SlidingPanels.PanelAnimator.prototype.step=function(){var C=(new Date()).getTime()-this.startTime;var B=C>=this.duration;var A,D;if(B){A=this.curX=this.dstX;D=this.curY=this.dstY}else{A=this.transition(C,this.curX,this.dstX-this.curX,this.duration);D=this.transition(C,this.curY,this.dstY-this.curY,this.duration)}this.element.style.left=A+"px";this.element.style.top=D+"px";if(!B){this.timerID=setTimeout(this.intervalFunc,this.interval)}else{if(this.finish){this.finish()}}};
