document.observe("dom:loaded",function(){$$("a[rel~=prototip]").each(function(a){new Tip(a,a.rel)})});function grayOut(c){if(arguments.length>1){var a=arguments[1];var b=arguments[2];mainDiv=document.getElementById(a);document.getElementById("fade").style.top=document.getElementById(b).offsetTop;document.getElementById("fade").style.left=document.getElementById(b).offsetLeft;document.getElementById("fade").style.width=mainDiv.offsetWidth+"px";document.getElementById("fade").style.height=mainDiv.offsetHeight+"px"}else{mainDiv=document.getElementById("a_tabbar");if(mainDiv!=null){document.getElementById("fade").style.top=document.getElementById("grayout_div").offsetTop;document.getElementById("fade").style.left=document.getElementById("grayout_div").offsetLeft;document.getElementById("fade").style.width=mainDiv.offsetWidth+"px";document.getElementById("fade").style.height=mainDiv.offsetHeight+"px"}else{mainDiv=document.getElementById("divPageLoadMessage");if(mainDiv!=null){document.getElementById("fade").style.top=document.getElementById("grayout_div").offsetTop;document.getElementById("fade").style.left=document.getElementById("grayout_div").offsetLeft;document.getElementById("fade").style.width=mainDiv.offsetWidth+"px";document.getElementById("fade").style.height=mainDiv.offsetHeight+"px"}}}if(c){document.getElementById("fade").style.display="block"}else{document.getElementById("fade").style.display="none"}}if(typeof(bsn)=="undefined"){_b=bsn={}}if(typeof(_b.Autosuggest)=="undefined"){_b.Autosuggest={}}else{alert("Autosuggest is already set!")}_b.AutoSuggest=function(e,d){if(!document.getElementById){return 0}this.fld=_b.DOM.gE(e);if(!this.fld){return 0}this.sInp="";this.nInpC=0;this.aSug=[];this.iHigh=0;this.oP=d?d:{};var a,b={minchars:2,meth:"get",varname:"input",className:"autosuggest",timeout:5000,delay:0,offsety:-5,shownoresults:true,noresults:"No results!",maxheight:250,cache:true,maxentries:25,loadingImg:""};for(a in b){if(typeof(this.oP[a])!=typeof(b[a])){this.oP[a]=b[a]}}var c=this;this.fld.onkeypress=function(f){return c.onKeyPress(f)};this.fld.onkeyup=function(f){return c.onKeyUp(f)};this.fld.setAttribute("autocomplete","off")};_b.AutoSuggest.prototype.onKeyPress=function(e){var d=(window.event)?window.event.keyCode:e.keyCode;var c=13;var b=9;var f=27;var a=1;switch(d){case c:this.setHighlightedValue();a=0;break;case f:this.clearSuggestions();break}return a};_b.AutoSuggest.prototype.onKeyUp=function(e){var c=(window.event)?window.event.keyCode:e.keyCode;var b=38;var d=40;var a=1;if((document.getElementById("txtexFirstName")!=null&&document.getElementById("txtexFirstName").value!="")&&(document.getElementById("txtInstructor")!=null&&document.getElementById("txtInstructor").value=="")){functionclear()}switch(c){case b:this.changeHighlight(c);a=0;break;case d:this.changeHighlight(c);a=0;break;default:var f=this;var g=this.fld.value;clearTimeout(this.ajgetSugg);this.ajgetSugg=setTimeout(function(){f.getSuggestions(g)},400)}return a};_b.AutoSuggest.prototype.getSuggestions=function(g){if(g==this.sInp){return 0}g=trim(g);_b.DOM.remE(this.idAs);this.sInp=g;if(g.length<this.oP.minchars){this.aSug=[];this.nInpC=g.length;return 0}var d=this.nInpC;this.nInpC=g.length?g.length:0;var b=this.aSug.length;if(this.nInpC>d&&b&&b<this.oP.maxentries&&this.oP.cache){var a=[];for(var e=0;e<b;e++){if(this.aSug[e].value.substr(0,g.length).toLowerCase()==g.toLowerCase()){a.push(this.aSug[e])}}this.aSug=a;this.createList(this.aSug);return false}else{var f=this;var c=this.sInp;clearTimeout(this.ajID);this.ajID=setTimeout(function(){f.doAjaxRequest(c)},this.oP.delay)}return false};_b.AutoSuggest.prototype.doAjaxRequest=function(c){if(c!=trim(this.fld.value)){return false}var g=this;if(typeof(this.oP.script)=="function"){var d=this.oP.script(encodeURIComponent(this.sInp))}else{var d=this.oP.script+urlParams(new Array(this.oP.varname,encodeURIComponent(this.sInp)))}if(!d){return false}var b=this.oP.meth;var c=this.sInp;var a=function(h){g.setSuggestions(h,c)};var e=function(){alert("only alphanumeric,space and single quote characters expected")};if(this.oP.loadingImg!=""&&document.getElementById(this.oP.loadingImg)){document.getElementById(this.oP.loadingImg).style.display="block"}var f=new _b.Ajax();f.makeRequest(d,b,a,e,this.oP,this)};_b.AutoSuggest.prototype.filterInput=function(a){re=/\$|,|@|#|~|`|\%|\*|\^|\&|\(|\)|\+|\=|\[|\-|\_|\]|\[|\}|\{|\;|\:|\'|\"|\<|\>|\?|\||\\|\!|\$|\./g;return a.replace(re,"")};_b.AutoSuggest.prototype.setSuggestions=function(req,input){if(input!=trim(this.fld.value)){return false}this.aSug=[];if(this.oP.json){if(req.responseText!=""){var jsondata=eval("("+req.responseText+")");for(var i=0;i<jsondata.results.length;i++){this.aSug.push({instructorId:jsondata.results[i].id,value:jsondata.results[i].value,firstname:jsondata.results[i].firstname,lastname:jsondata.results[i].lastname,email:jsondata.results[i].email,wsPrice:jsondata.results[i].wsPrice,username:jsondata.results[i].username})}}}else{var xml=req.responseXML;var results=xml.getElementsByTagName("results")[0].childNodes;for(var i=0;i<results.length;i++){if(results[i].hasChildNodes()){var content=results[i].childNodes[0].nodeValue;var data=content.split("|");this.aSug.push({id:results[i].getAttribute("id"),value:data[0],firstname:data[1],lastname:data[2],email:data[3],wsPrice:data[4],username:data[5]})}}}this.idAs="as_"+this.fld.id;this.createList(this.aSug);if(this.oP.loadingImg!=""&&document.getElementById(this.oP.loadingImg)){document.getElementById(this.oP.loadingImg).style.display="none"}};_b.AutoSuggest.prototype.createList=function(b){var p=this;_b.DOM.remE(this.idAs);this.killTimeout();if(b.length==0&&this.oP.shownoresults){functionclear();return false}if(b.length==0&&!this.oP.shownoresults){return false}var m=_b.DOM.cE("div",{id:this.idAs,className:this.oP.className});var d=_b.DOM.cE("div",{className:"as_corner"});var g=_b.DOM.cE("div",{className:"as_bar"});var r=_b.DOM.cE("div",{className:"as_header"});r.appendChild(d);r.appendChild(g);m.appendChild(r);var l=_b.DOM.cE("ul",{id:"as_ul"});for(var s=0;s<b.length;s++){var x=b[s].value;var o=x.toLowerCase().indexOf(this.sInp.toLowerCase());var j=x.substring(0,o)+"<em>"+x.substring(o,o+this.sInp.length)+"</em>"+x.substring(o+this.sInp.length);var q=_b.DOM.cE("span",{},j,true);if(b[s].info!=""){var u=_b.DOM.cE("br",{});q.appendChild(u);var h=_b.DOM.cE("small",{},b[s].info);q.appendChild(h)}var v=_b.DOM.cE("a",{href:"#"});var e=_b.DOM.cE("span",{className:"tl"}," ");var c=_b.DOM.cE("span",{className:"tr"}," ");v.appendChild(e);v.appendChild(c);v.appendChild(q);v.name=s+1;v.onclick=function(){p.setHighlightedValue();return false};v.onmouseover=function(){p.setHighlight(this.name)};var k=_b.DOM.cE("li",{},v);l.appendChild(k)}if(b.length==0&&this.oP.shownoresults){var k=_b.DOM.cE("li",{className:"as_warning"},this.oP.noresults);l.appendChild(k);functionclear()}m.appendChild(l);var t=_b.DOM.cE("div",{className:"as_corner"});var w=_b.DOM.cE("div",{className:"as_bar"});var n=_b.DOM.cE("div",{className:"as_footer"});n.appendChild(t);n.appendChild(w);m.appendChild(n);var f=_b.DOM.getPos(this.fld);m.style.left=f.x+"px";m.style.top=(f.y+this.fld.offsetHeight+this.oP.offsety)+"px";m.style.width=this.fld.offsetWidth+"px";m.onmouseover=function(){p.killTimeout()};m.onmouseout=function(){p.resetTimeout()};document.getElementsByTagName("body")[0].appendChild(m);this.iHigh=0;var p=this;this.toID=setTimeout(function(){p.clearSuggestions()},this.oP.timeout)};_b.AutoSuggest.prototype.changeHighlight=function(a){var b=_b.DOM.gE("as_ul");if(!b){return false}var c;if(a==40){c=this.iHigh+1}else{if(a==38){c=this.iHigh-1}}if(c>b.childNodes.length){c=b.childNodes.length}if(c<1){c=1}this.setHighlight(c)};_b.AutoSuggest.prototype.setHighlight=function(b){var a=_b.DOM.gE("as_ul");if(!a){return false}if(this.iHigh>0){this.clearHighlight()}this.iHigh=Number(b);a.childNodes[this.iHigh-1].className="as_highlight";this.killTimeout()};_b.AutoSuggest.prototype.clearHighlight=function(){var a=_b.DOM.gE("as_ul");if(!a){return false}if(this.iHigh>0){a.childNodes[this.iHigh-1].className="";this.iHigh=0}};_b.AutoSuggest.prototype.setHighlightedValue=function(){if(this.iHigh){this.sInp=this.fld.value=this.aSug[this.iHigh-1].value;this.fld.focus();if(this.fld.selectionStart){this.fld.setSelectionRange(this.sInp.length,this.sInp.length)}this.clearSuggestions();if(typeof(this.oP.callback)=="function"){this.oP.callback(this.aSug[this.iHigh-1])}}};_b.AutoSuggest.prototype.killTimeout=function(){clearTimeout(this.toID)};_b.AutoSuggest.prototype.resetTimeout=function(){clearTimeout(this.toID);var a=this;this.toID=setTimeout(function(){a.clearSuggestions()},1000)};_b.AutoSuggest.prototype.clearSuggestions=function(){this.killTimeout();var a=_b.DOM.gE(this.idAs);var c=this;if(a){var b=new _b.Fader(a,1,0,250,function(){_b.DOM.remE(c.idAs)})}};if(typeof(_b.Ajax)=="undefined"){_b.Ajax={}}_b.Ajax=function(){this.req={};this.isIE=false};_b.Ajax.prototype.makeRequest=function(c,h,f,b,k,e){var g=e.fld.id;if(h!="POST"){h="GET"}this.onComplete=f;this.onError=b;var a=this;var j=1;if(g.toLowerCase().indexOf("city")!=-1){var d=e.sInp.search("[^A-Za-z0-9' ]");if(trim(e.sInp.value).length>0&&d>=0){j=0}}else{j=1}if(j){if(window.XMLHttpRequest){var c=c+"/";this.req=new XMLHttpRequest();this.req.onreadystatechange=function(){a.processReqChange(k)};this.req.open("GET",c,true);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");this.req.send(null)}else{if(window.ActiveXObject){this.req=new ActiveXObject("Microsoft.XMLHTTP");if(this.req){this.req.onreadystatechange=function(){a.processReqChange(k)};this.req.open(h,c,true);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");this.req.send()}}}}else{this.onError();if(k.loadingImg!=""&&document.getElementById(k.loadingImg)){document.getElementById(k.loadingImg).style.display="none"}}};_b.Ajax.prototype.processReqChange=function(a){if(this.req.readyState==4){if(this.req.status==200){this.onComplete(this.req)}else{this.onError();if(a.loadingImg!=""&&document.getElementById(a.loadingImg)){document.getElementById(a.loadingImg).style.display="none"}}}};if(typeof(_b.DOM)=="undefined"){_b.DOM={}}_b.DOM.cE=function(g,c,b,f){var h=document.createElement(g);if(!h){return 0}for(var d in c){h[d]=c[d]}var e=typeof(b);if(e=="string"&&!f){h.appendChild(document.createTextNode(b))}else{if(e=="string"&&f){h.innerHTML=b}else{if(e=="object"){h.appendChild(b)}}}return h};_b.DOM.gE=function(c){var a=typeof(c);if(a=="undefined"){return 0}else{if(a=="string"){var b=document.getElementById(c);if(!b){return 0}else{if(typeof(b.appendChild)!="undefined"){return b}else{return 0}}}else{if(typeof(c.appendChild)!="undefined"){return c}else{return 0}}}};_b.DOM.remE=function(a){var b=this.gE(a);if(!b){return 0}else{if(b.parentNode.removeChild(b)){return true}else{return 0}}};_b.DOM.getPos=function(c){var c=this.gE(c);var b=c;var d=0;if(b.offsetParent){while(b.offsetParent){d+=b.offsetLeft;b=b.offsetParent}}else{if(b.x){d+=b.x}}var b=c;var a=0;if(b.offsetParent){while(b.offsetParent){a+=b.offsetTop;b=b.offsetParent}}else{if(b.y){a+=b.y}}return{x:d,y:a}};if(typeof(_b.Fader)=="undefined"){_b.Fader={}}_b.Fader=function(b,f,e,a,d){if(!b){return 0}this.e=b;this.from=f;this.to=e;this.cb=d;this.nDur=a;this.nInt=50;this.nTime=0;var c=this;this.nID=setInterval(function(){c._fade()},this.nInt)};_b.Fader.prototype._fade=function(){this.nTime+=this.nInt;var a=Math.round(this._tween(this.nTime,this.from,this.to,this.nDur)*100);var c=a/100;if(this.e.filters){try{this.e.filters.item("DXImageTransform.Microsoft.Alpha").opacity=a}catch(b){this.e.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")"}}else{this.e.style.opacity=c}if(this.nTime==this.nDur){clearInterval(this.nID);if(this.cb!=undefined){this.cb()}}};_b.Fader.prototype._tween=function(e,a,g,f){return a+((g-a)*(e/f))};var ZUMBA=window.ZUMBA||{};var msg="";ZUMBA.cart={totalQty:0,removeItem:function(item,anchor){var row=Element.findElement(anchor,"TR");var img=$(anchor).down();img.src="/"+licenseeshortname+"/images/shop/button-remove-progress.gif";var url="/"+licenseeshortname+"/shop/cart/action/remove/";var params="itemId="+item;new Ajax.Request(url,{method:"post",parameters:params,asynchronous:false,onSuccess:function(res){var json=eval("("+res.responseText+")");new Effect.Fade(row,{afterFinish:function(effect){Element.remove(effect.element);if(!json.totalQty){$("cartitems").remove();if($("checkoutRow")){$("checkoutRow").remove()}$("cartHeader").update("Your shopping cart is currently empty.");itemsInCart=0}var pluralize=(json.totalQty==1)?"":"s";ZUMBA.cart.totalQty=json.totalQty;if($("cartlink")){$("cartlink").update("View Shopping Cart ("+json.totalQty+" item"+pluralize+")")}$("subtotal").update(json.subTotal);ZUMBA.checkout.setShipping()}});if(trim(document.getElementById("lstShipCountryId").value)!=""){checkShipping()}}.bind(this)})},updateQty:function(item,offset){var el=$("qty_"+item);var qty=(el.innerHTML*1)+offset;if(qty>1){$("qtyminus_"+item).show()}else{$("qtyminus_"+item).hide()}if(qty<maxorderqty){$("qtyplus_"+item).show()}else{$("qtyplus_"+item).hide()}el.update(qty);var url="/"+licenseeshortname+"/shop/cart/action/update/";var stId=0;for(var i=0;i<document.forms.length;i++){if(document.forms[i].name=="frmCheckout"){var stobj=Form.getInputs("frmCheckout","radio","optShipmentTypeId").find(function(radio){return radio.checked});stId=stobj?stobj.value:0}}var lstShipCountryId=$("lstShipCountryId")?$("lstShipCountryId").value:"";var params="itemId="+item+"&qty="+qty+"&lstShipCountryId="+lstShipCountryId;new Ajax.Request(url,{method:"post",parameters:params,onSuccess:function(res){var json=eval("("+res.responseText+")");var pluralize=(json.totalQty==1)?"":"s";ZUMBA.cart.totalQty=json.totalQty;if($("cartlink")){$("cartlink").update("View Shopping Cart ("+json.totalQty+" item"+pluralize+")")}$("subtotal").update(json.subTotal);$("QtyShip").innerHTML=json.shipCharges;if(stId){if($("optShipmentTypeId_"+stId)){$("optShipmentTypeId_"+stId).checked=true}}ZUMBA.checkout.setShipping()}})}};ZUMBA.checkout={needToSelectShipping:true,setShipping:function(){if(!ZUMBA.cart.totalQty){if(location.protocol=="https:"){var shopUrl="http://"+location.host+"/"+licenseeshortname+"/shop/"}else{var shopUrl="/"+licenseeshortname+"/shop/"}redirect(shopUrl)}ZUMBA.checkout.needToSelectShipping=false;var url="/"+licenseeshortname+"/shop/cart/action/getshipping/";var stId=0;for(var i=0;i<document.forms.length;i++){if(document.forms[i].name=="frmCheckout"){var stobj=Form.getInputs("frmCheckout","radio","optShipmentTypeId").find(function(radio){return radio.checked});stId=stobj?stobj.value:0}}var sid=$("lstShipStateId")?$("lstShipStateId").value:0;var cid=$("lstShipCountryId")?$("lstShipCountryId").value:0;var cc=$("txtCouponCode")?$("txtCouponCode").value:"";var params="stId="+stId+"&cc="+cc+"&sId="+sid+"&lstShipCountryId="+cid;new Ajax.Request(url,{method:"post",parameters:params,onSuccess:function(res){var json=eval("("+res.responseText+")");if($("total_detail")){$("total_detail").update(json.orderTotal)}if($("subtotal_detail")){$("subtotal_detail").update(json.orderSubtotal)}if($("tax_detail")){$("tax_detail").update(json.tax)}if($("shipping_detail")){$("shipping_detail").update(json.shipCharge)}if($("surcharge_detail")){$("surcharge_detail").update(json.shipSurcharge)}if($("discount_label")){$("discount_label").update("discount ("+json.discountLabel+")")}if($("discount_detail")){$("discount_detail").update(json.discountValue)}if(json.couponCode.type=="shipping"&&json.couponCode.value=="FREE"){ZUMBA.checkout.disableShipMethods(json.shipmentTypeId)}else{ZUMBA.checkout.enableShipMethods()}if(cc!=""&&json.couponCode.type!=""){$("couponcodeValid").innerHTML='<span class="valid">Valid</span>'}else{if(cc!=""&&json.couponCode.type==""){$("couponcodeValid").innerHTML='<span class="invalid">Invalid</span>'}else{$("couponcodeValid").innerHTML=""}}if(json.error=="no shipping method"){}else{}}})},disableShipMethods:function(a){Form.getInputs("frmCheckout","radio","optShipmentTypeId").invoke("disable");if($("optShipmentTypeId_"+a)){$("optShipmentTypeId_"+a).checked=true;$("optShipmentTypeId_"+a).disabled=false}},enableShipMethods:function(a){Form.getInputs("frmCheckout","radio","optShipmentTypeId").invoke("enable")},getShipping:function(){var url="/"+licenseeshortname+"/shop/cart/action/getshipping/";var cid=$("lstShipCountryId")?$("lstShipCountryId").value:0;var params="lstShipCountryId="+cid;new Ajax.Request(url,{method:"post",parameters:params,asynchronous:false,onSuccess:function(res){var json=eval("("+res.responseText+")");if($("QtyShip")){$("QtyShip").innerHTML=json.shipCharges}}})},clearShipping:function(){var a=$("txtCouponCode")?$("txtCouponCode").value:"";if(a==""){ZUMBA.checkout.setShipping()}}};function orderSubmitted(){alert("Order already submitted! Please wait...");return false}function checkShipping(){url="/us/shop/cart/action/checkShippingCountry/";country=document.getElementById("lstShipCountryId").value;if(country==""){msg="";alert("Please select your shipping country.");return false}else{new Ajax.Request(url,{parameters:"countyName="+country,asynchronous:false,onSuccess:function(a){if(a.responseText==1){msg=""}else{msg="We're sorry, but we cannot ship the "+a.responseText+" to "+country+". Please visit http://dvd.zumba.com/ for more information about buying DVDs in your country. To continue with this purchase, please remove the item "+a.responseText+".";alert(msg);return false}},onFailure:function(a){alert("Oops, there's been an error."+a.responseText)}})}}function sameShipAddress(a){var b=new Array("txtBillFirstName","txtBillLastName","txtBillAddress","txtBillZipCode","txtBillPhone","chkBillIsBusinessAddr");for(i=0;i<b.length;i++){objEle=document.getElementById(b[i]);if(!objEle){continue}prefix=b[i].substr(3,4);objOthEle=document.getElementById(b[i].replace(prefix,"Ship"));if(!objOthEle){continue}if(a){if(objEle.type=="text"||objEle.type=="textarea"){objOthEle.value=objEle.value}else{if(objEle.type=="checkbox"){objOthEle.checked=objEle.checked}}}}countryChanged(a)}function cityAdd(c,b,a){if(document.getElementById(c).style.display=="block"){if(document.getElementById(b)){document.getElementById(b).innerHTML='&nbsp;&nbsp;<a href="#" onclick="cityAdd(\''+c+"','"+b+"','"+a+'\'); return false;" style="text-decoration:none" title="Could not find your city in our database? Not a problem, please add it here">[+]</a>'}document.getElementById(a).value="";document.getElementById(c).style.display="none"}else{if(document.getElementById(b)){document.getElementById(b).innerHTML='&nbsp;&nbsp;<a href="#" onclick="cityAdd(\''+c+"','"+b+"','"+a+'\'); return false;" style="text-decoration:none" title="Remove text box including its text.">[-]</a>'}document.getElementById(c).style.display="block"}}function submitOrder(b,a){if(msg!=""){alert(msg);return false}else{if(validateCheckoutForm(b,a)){displayProcessButton("shop-submit","shop-submit-process");return true}else{return false}}}function validateCheckoutForm(b,a){if(ZUMBA.cart.totalQty==0){alert("Cannot Proceed. Your shopping cart is empty!");return false}return validateForm(b,a)}function getPageSize(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=document.body.scrollWidth;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}var b,d;if(self.innerHeight){b=self.innerWidth;d=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight}}}if(a<d){pageHeight=d}else{pageHeight=a}if(c<b){pageWidth=b}else{pageWidth=c}arrayPageSize=new Array(pageWidth,pageHeight,b,d);return arrayPageSize}function addToCart(a,b){sizeId=b.lstSizeId?b.lstSizeId.options[b.lstSizeId.selectedIndex].value:0;qty=b.lstQty.options[b.lstQty.selectedIndex].value;a=a+"q_"+qty+"/s_"+sizeId+"/";window.location.href=a}Object.extend(Element,{findElement:function(b,a){var b=$(b);while(b.parentNode&&(!b.tagName||(b.tagName.toUpperCase()!=a.toUpperCase()))){b=b.parentNode}return $(b)}});document.observe("dom:loaded",function(){if($("hidecart")){$("hidecart").onclick=function(){var a="http://"+location.host+"/"+licenseeshortname+"/shop/";window.location.href=a}}});var productsearchval;function getShopSearchData(b,a){productsearchval=b.search.value;grayOut(true,"product-list","grayout_div");new Ajax.Request(a,{parameters:"productName="+productsearchval,asynchronous:false,onSuccess:getProductLst,onFailure:function(c){alert("Oops, there's been an error."+c.responseText)}})}function getProductLst(c){xmlDocument=c.responseXML;var b="";var g=xmlDocument.getElementsByTagName("error").item(0).firstChild.data;if(parseInt(g)){var j=xmlDocument.getElementsByTagName("error_msg").item(0).firstChild.data;countstr="<h1><font color='red'>"+j+"</font></h1>"}else{var h=xmlDocument.getElementsByTagName("tot").item(0).firstChild.data;if(parseInt(h)>0){var a=xmlDocument.documentElement.childNodes;for(var e=0;e<a.length;e++){if(a[e].nodeType!=3&&a[e].nodeName=="details"){countstr="<h1>Displaying "+h+" items </h1>";for(var d=0;d<a[e].childNodes.length;d++){b+=a[e].childNodes[d].childNodes[0].nodeValue}}}}else{countstr="<h1>No items found.</h1>"}}document.getElementById("product-list").innerHTML=b;if(document.getElementById("categorymsg")){document.getElementById("categorymsg").style.display="none"}if(document.getElementById("tagmsg")){document.getElementById("tagmsg").style.display="none"}if(productsearchval!=""){document.getElementById("searchvalue").innerHTML=" Search results for: '"+document.getElementById("shop-search-field").value+"'"}else{document.getElementById("searchvalue").innerHTML=" All Products"}if(document.getElementById("product-detail")){document.getElementById("product-detail").style.display="none"}if($("navigation-container")){var f=document.getElementById("navigation-container").getElementsByTagName("li");for(var e=0;e<f.length;e++){f[e].className=""}}grayOut(false,"product-list","grayout_div")}function countryChanged(a){if(a){copyGeodropdowns(a,"bill","ship")}else{document.getElementById("lstShipCountryId").value="";document.getElementById("txtShipFirstName").value="";document.getElementById("txtShipLastName").value="";document.getElementById("txtShipAddress").value="";document.getElementById("txtShipZipCode").value="";document.getElementById("txtShipPhone").value="";document.getElementById("lstShipStateId").value="";document.getElementById("lstShipStateId").style.display="none";document.getElementById("shipping-state-label").style.display="none";document.getElementById("shipping-city-label").style.display="none";document.getElementById("lstShipCityId").value="";document.getElementById("lstShipCityId").style.display="none";ZUMBA.checkout.getShipping();ZUMBA.checkout.setShipping()}}function populateDropdown(a,c){objEle=document.getElementById(a);if(arguments.length>2){objEle.options.length=2}else{objEle.options.length=1}for(var b=0;b<c.length;b++){objEle.options[objEle.options.length]=new Option(c[b][0],c[b][0])}}function getSearch(obj,functionname){var code=obj.keyCode?obj.keyCode:obj.charCode;if(code==13){eval(functionname);return false}}function selectShippCountry(){var a="/us/shop/cart/action/getshipcountryform/";Lightview.show({href:a,rel:"iframe",options:{autosize:true,height:235,topclose:true}})}function checkCookie(){var a=new Cookies();if(a.get("countrySelected")){return true}return false}function redirectShippingCountry(b){var a=b.lstShippingCountryId.value;var c=new Cookies();c.set("countrySelected","yes",15);if(trim(a)!=""){window.open(a)}window.parent.Lightview.hide();return false}function getWsSearchData(e,a){grayOut(true,"search-results","grayout_div");var d="";var c=e.lstCountryId.value;var g=e.lstStateId.value;var f=e.lstWSTypeId.value;var b=e.lstWorkshopStatusId.value;d="countryId="+c+"&stateId="+g+"&workshopTypeId="+f+"&lstWorkshopStatusId="+b;new Ajax.Request(a,{parameters:d,asynchronous:false,onSuccess:function(j){var h=j.responseText;var k=h.split("|Total:");document.getElementById("search-results").innerHTML="";document.getElementById("search-results").innerHTML=k[0];if(document.getElementById("total-search-results")){if(parseInt(k[1])){document.getElementById("total-search-results").innerHTML=k[1]+" Workshop(s) Found"}else{document.getElementById("total-search-results").innerHTML=""}}},onFailure:function(h){alert("Oops, there's been an error."+h.responseText)}});grayOut(false,"search-results","grayout_div")}function getStatesByCountry(e,b){var a={states:[],workshoptype:[]};var c="fetch=states,workshoptype&countryId="+e;var d=0;if(arguments.length>2){c="fetch=workshoptype&countryId="+e;d=1}new Ajax.Request(b,{parameters:c,asynchronous:false,onSuccess:function(f){a=JSON.parse(f.responseText);if(!d){populateWsDropdown("lstStateId",a.states)}populateWsDropdown("lstWSTypeId",a.workshoptype,1)},onFailure:function(f){alert("Oops, there's been an error."+f.responseText)}})}function populateWsDropdown(a,c){objEle=document.getElementById(a);objEle.options.length=1;for(var b=0;b<c.length;b++){if(arguments.length>2){objEle.options[objEle.options.length]=new Option(c[b][1],c[b][0])}else{objEle.options[objEle.options.length]=new Option(c[b][0],c[b][0])}}}function funInstructorRegChkSame(a){if(a){document.frmNewUser.txtBillFirstName.value=document.frmNewUser.txtInstructorFirstName.value;document.frmNewUser.txtBillLastName.value=document.frmNewUser.txtInstructorLastName.value;document.frmNewUser.txtBillAddress.value=document.frmNewUser.txtHomeAddress.value;document.frmNewUser.txtBillZipCode.value=document.frmNewUser.txtHomeZipCode.value;copyGeodropdowns(a,"home","bill")}else{document.frmNewUser.txtBillFirstName.value="";document.frmNewUser.txtBillLastName.value="";document.frmNewUser.txtBillAddress.value="";document.frmNewUser.txtBillZipCode.value="";document.frmNewUser.lstBillCountryId.value="";document.frmNewUser.lstBillStateId.value="";document.frmNewUser.lstBillStateId.style.display="none";document.getElementById("billing-state-label").style.display="none";document.getElementById("billing-city-label").style.display="none";document.frmNewUser.lstBillCityId.value="";document.frmNewUser.lstBillCityId.style.display="none"}}function isPromoCodeExist(url,frmName,fieldName,fileId,fielIdInstructor,fielIdLicensee){var paramsExtra="";var requestParams="";var pcodeVal="";var instructorId="";var licenseeId="";var validFieldName="";pcodeVal=eval("document."+frmName+"."+fieldName+".value");if(fielIdInstructor!=""){instructorId=eval("document."+frmName+"."+fielIdInstructor+".value")}if(fielIdLicensee!=""){licenseeId=eval("document."+frmName+"."+fielIdLicensee+".value")}if(trim(fieldName)!=""){requestParams=fieldName+"="+eval("document."+frmName+"."+fieldName+".value")+"&"}requestParams+=fileId+"="+eval("document."+frmName+"."+fileId+".value");if(instructorId!=""){requestParams+="&instructorId="+instructorId}if(licenseeId!=""){requestParams+="&licensee="+licenseeId}requestParams+=paramsExtra;new Ajax.Request(url,{onSuccess:getPromoCodeValue,onFailure:function(resp){alert("Oops, there's been an error."+resp.responseText)},parameters:requestParams,method:"post",asynchronous:false})}function getPromoCodeValue(a){arrResponse=JSON.parse(a.responseText);if(!isNaN(arrResponse.workshopId)){document.getElementById("workshops-submit-order").style.display="block";document.getElementById("total_detail").innerHTML=arrResponse.totalFormatted;document.getElementById("subtotal_detail").innerHTML=arrResponse.actualpriceFormatted;document.getElementById("discount_detail").innerHTML=arrResponse.discountFormatted}}function submitWsForm(objForm,arrFormValidation){if(validateForm(objForm,arrFormValidation)){if(arguments.length>2){var urluser=arguments[2];var licenseeId=eval("document."+objForm.name+".lstLicensee.value");var user=isExists(urluser,objForm.name,"txtUserName","txtinId",licenseeId);if(user){alert(" UserName already Exists!!!");return false}var useremail=isExists(urlemail,objForm.name,"txtHomeEmail","txtinId",licenseeId);if(useremail){alert(" Email already exists!!!");return false}}displayProcessButton("workshop-submit","workshop-submit-process")}else{return false}}function validateForm(f,b){for(var e in b){for(var c=0;c<b[e].length;c++){objValue=document.getElementById(e);if(objValue==null){objValue=f[e]}if(objValue==null||objValue.disabled){continue}var d=b[e][c][0];var a=d.substr(d.search("=")+1);if((pos=a.search("ifchecked:"))==0){if(!document.getElementById(a.substr(10)).checked){continue}}if(validateData(f,objValue,d,b[e][c][1])==false){if(arguments.length>2&&arguments[3]=="tabbar"){tabbar.setTabActive(arguments[2])}if(objValue.type!="hidden"&&objValue.focus){objValue.focus()}return false}}}return true}function validateData(objForm,objValue,strValidateStr,strError){var epos=strValidateStr.search("=");var command="";var cmdvalue="";if(objValue==null||objValue.disabled){return true}if(epos>=0){command=strValidateStr.substring(0,epos);cmdvalue=val=strValidateStr.substr(epos+1);if((pos=cmdvalue.search("value:"))==0){cpos=cmdvalue.search(",");if(cpos==-1){val=document.getElementById(cmdvalue.substr(6)).value;if(val==null){val=eval("document."+objForm.name+"."+cmdvalue.substr(6)+".value")}}else{fld=cmdvalue.substr(6,cpos-6);fldval=cmdvalue.substr(cpos+1);val=document.getElementById(fld).value;if(val==null){val=eval("document."+objForm.name+"."+fld+".value")}if(fldval!=val){command=""}}cmdvalue=val}if((pos=cmdvalue.search("expr:"))==0){val=getExpr(cmdvalue.substr(5))}if((pos=cmdvalue.search("ifchecked:"))==0){if(!document.getElementById(cmdvalue.substr(10)).checked){command=""}}if((pos=cmdvalue.search("valueOf:"))==0){val=document.getElementById(cmdvalue.substr(8)).value;if(val==null){val=eval("document."+objForm.name+"."+cmdvalue.substr(8)+".value")}cmdvalue=val}}else{command=strValidateStr}cmdvalue=trim(cmdvalue);switch(command){case"url":if(objValue.value=="www"){alert(strError);return false}break;case"req":case"required":err=false;if(isRadio(objValue)){if(!isRadioChecked(objValue)){err=true}}else{if(eval(trim(objValue.value).length)==0){err=true}}if(err){if(!strError||strError.length==0){strError=objValue.name+" : Required Field"}alert(strError);return false}break;case"maxlength":case"maxlen":if(eval(trim(objValue.value).length)>eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : "+cmdvalue+" characters maximum "}alert(strError);return false}break;case"minlength":case"minlen":if(eval(trim(objValue.value).length)<eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : "+cmdvalue+" characters minimum  "}alert(strError);return false}break;case"alnum":case"alphanums":case"alphanumeric":var charpos=objValue.value.search("[^A-Za-z0-9]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alpha-numeric characters allowed "}alert(strError);return false}break;case"int":case"integer":var charpos=objValue.value.search("[^0-9]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only digits allowed "}alert(strError);return false}break;case"num":case"numeric":case"numericdot":if(isNaN(trim(objValue.value))){if(!strError||strError.length==0){strError=objValue.name+": Only a valid number is allowed "}alert(strError);return false}break;case"phone":var charpos=objValue.value.search("[^()0-9- ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only numeric,(,),- and space characters allowed "}alert(strError);return false}break;case"alphanumsphyphenPunctuations":var charpos=objValue.value.search("[^A-Za-z()0-9-,&:.!?';\" ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only numeric,(,),- and space characters allowed "}alert(strError);return false}break;case"alphabetic":case"alpha":var charpos=objValue.value.search("[^A-Za-z]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphabetic characters allowed "}alert(strError);return false}break;case"alphaspace":case"alphasp":var charpos=objValue.value.search("[^A-Za-z ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphabetic characters allowed "}alert(strError);return false}break;case"alphasphyphen":var charpos=objValue.value.search("[^A-Za-z-' ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphabetic,space and single quote characters allowed "}alert(strError);return false}break;case"alphanumsphyphen":var charpos=objValue.value.search("[^A-Za-z0-9-' ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphanumeric,space characters allowed "}alert(strError);return false}break;case"numsphyphen":var charpos=objValue.value.search("[^0-9-' ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only numeric,space and hyphen characters allowed "}alert(strError);return false}break;case"alphanumeric":var charpos=objValue.value.search("[^A-Za-z0-9]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alpha-numeric characters allowed "}alert(strError);return false}break;case"alphanumsp":var charpos=objValue.value.search("[^A-Za-z0-9 ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphanumeric,space characters allowed "}alert(strError);return false}break;case"alphanumhyphen":var charpos=objValue.value.search("[^A-Za-z0-9-]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphanumeric,hyphen characters allowed "}alert(strError);return false}break;case"alphanumspacehyphen":var charpos=objValue.value.search("[^A-Za-z0-9- ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphanumeric,hyphen characters allowed "}alert(strError);return false}break;case"email":if(!validateEmail(objValue.value)&&objValue.type!="hidden"){if(!strError||strError.length==0){strError=objValue.name+": Enter a valid Email address "}alert(strError);return false}break;case"lt":case"lessthan":if(isNaN(objValue.value)){alert(objValue.name+": Should be a number ");return false}if(eval(trim(objValue.value))>=eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : value should be less than "+cmdvalue}alert(strError);return false}break;case"gt":case"greaterthan":if(isNaN(objValue.value)){alert(objValue.name+": Should be a number ");return false}if(eval(trim(objValue.value))<=eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : value should be greater than "+cmdvalue}alert(strError);return false}break;case"dontselect":if(objValue.value*1==eval(cmdvalue)||(objValue.value=="")){if(!strError||strError.length==0){strError=objValue.name+": Please Select one option "}alert(strError);return false}break;case"eq":if(trim(objValue.value)!=cmdvalue){alert(strError);return false}break;case"checked":if(!document.getElementById(objValue.id).checked){alert(strError);return false}break;case"validusername":var charpos=objValue.value.search("[^A-Za-z0-9-@.]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphanumeric,hyphen,@ and dot(.) characters allowed "}alert(strError);return false}break;case"alphanumspquote":var charpos=objValue.value.search("[^A-Za-z0-9' ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphanumeric,space and single quote characters expected "}alert(strError);return false}break;case"alphanumsphyphenbracket":var charpos=objValue.value.search("[^A-Za-z()0-9- ]");if(trim(objValue.value).length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphanumerics,spaces,(, ) and hyphen characters allowed "}alert(strError);return false}break}return true}function getExpr(b){var a=null;switch(b){case"today":a=new Date()}return a}function validateEmail(b){var e=b.match("^(.+)@(.+)$");if(e==null){return false}if(e[1]!=null){var d=/^\"?[\w-_\.]*\"?$/;if(e[1].match(d)==null){return false}}if(e[2]!=null){var c=/^[\w-\.]*\.[A-Za-z]{2,4}$/;if(e[2].match(c)==null){var a=/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;if(e[2].match(a)==null){return false}}return true}return false}function onlyDigits(b){var a=b.keyCode?b.keyCode:b.charCode;if((a>=48&&a<=57)||a==8||a==9||a==13||a==39||a==37){return true}else{return false}}function GetXmlHttpObject(c){var a=null;if(navigator.userAgent.indexOf("MSIE")>=0){var b="Msxml2.XMLHTTP";if(navigator.appVersion.indexOf("MSIE 5.5")>=0){b="Microsoft.XMLHTTP"}try{a=new ActiveXObject(b);a.onreadystatechange=c;return a}catch(d){alert("Error. Scripting for ActiveX might be disabled");return}}else{a=new XMLHttpRequest();a.onload=c;a.onerror=c;return a}}function isExists(url,frmName,filedName,fileId){var requestParams;requestParams=filedName+"="+eval("document."+frmName+"."+filedName+".value")+"&"+fileId+"="+eval("document."+frmName+"."+fileId+".value");new Ajax.Request(url,{onSuccess:getResponse,onFailure:function(resp){alert("Oops, there's been an error."+resp.responseText)},parameters:requestParams,method:"post",asynchronous:false});return invalidUser}function getResponse(a){invalidUser=parseInt(a.responseText)}function checkValidform(f,d,g,c,e){if(!validateForm(f,d)){return false}var b=confirm("Are you sure you want to save changes");if(b){var a=isExists(url,f.name,g,c);if(a){alert(e+" is already exists!!!");return false}}else{return false}}function isRadio(a){return(a.type=="radio"||(a.length>0&&a[0].type=="radio"))}function isRadioChecked(a){if(!a){return""}var b=a.length;if(b==undefined){if(a.checked){return a.value}else{return""}}for(i=0;i<b;i++){if(a[i].checked){return a[i].value}}return false}function populateDropdown(a,c){objEle=document.getElementById(a);if(arguments.length>2&&arguments[2]=="multiple"){objEle.options.length=0}else{objEle.options.length=1}for(var b=0;b<c.length;b++){objEle.options[objEle.options.length]=new Option(c[b][1],c[b][0])}}function WindowPopup(b,a,c,d){new_window=window.open(b,a,"toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,top=50,left=100,scrollbars=yes,width="+c+",height="+d);new_window.focus()}function onlyDigits(b){if(typeof b=="undefined"){b=window.event}var a=b.keyCode?b.keyCode:b.charCode;if((a>=48&&a<=57)||a==8||a==9||a==13||a==39||a==37){return true}else{return false}}function allowFloatDigits(b){var a=b.keyCode?b.keyCode:b.charCode;if((a>=48&&a<=57)||a==8||a==9||a==13||a==39||a==37||a==46){return true}else{return false}}function checkboxValid(frmname,chkboxname){var frName=eval(frmname);var tot=frName.length;var chkflag=0;for(i=0;i<tot;i++){if(frName.elements[i].type=="checkbox"){if(frName.elements[i].name==chkboxname){if(frName.elements[i].checked){chkflag=1;break}}}}return chkflag}function disableReadonly(a,b){if(document.getElementById(a).checked){document.getElementById(b).disabled=false}else{document.getElementById(b).disabled=true}}function isExists(url,frmName,fieldName,fileId,licenseeId){var paramsExtra="";if(arguments.length>5){for(var k=5;k<arguments.length;k++){if(arguments[k]!=""){paramsExtra=arguments[k]}}}var requestParams="";var validFieldName="";if(trim(fieldName)!=""){requestParams=fieldName+"="+eval("document."+frmName+"."+fieldName+".value")+"&"}if(fileId!=""){requestParams+=fileId+"="+eval("document."+frmName+"."+fileId+".value")}if(licenseeId!=""){requestParams+="&licenseeId="+licenseeId}requestParams+=paramsExtra;new Ajax.Request(url,{onSuccess:getResponse,onFailure:function(resp){alert("Oops, there's been an error."+resp.responseText)},parameters:requestParams,method:"post",asynchronous:false});return invalidUser}function getResponse(c){var b=c.responseText;var a=b.split("|");if(a.length>1){invalidUser=b}else{invalidUser=parseInt(a[0])}}function checkValidform(frmObj,arrFormValidation,fieldName,fieldId,fieldMsg){var strExtra="";if(arguments.length>5){for(var k=5;k<arguments.length;k++){if(eval("document."+frmObj.name+"."+arguments[k])){strExtra+="&"+arguments[k]+"="+(eval("document."+frmObj.name+"."+arguments[k]+".value"))}}}var licenseeId="";if(eval("document."+frmObj.name+".lstLicenseeId")){licenseeId=eval("document."+frmObj.name+".lstLicenseeId.value")}if(!validateForm(frmObj,arrFormValidation)){return false}var ans=confirm("Are you sure you want to save changes");if(ans){if(eval("document."+frmObj.name+".txtAdminEmail")){var useremail=isExists(urlemail,frmObj.name,"txtAdminEmail",fieldId,licenseeId);if(useremail){alert(" Email already exists!!!");return false}}if(eval("document."+frmObj.name+".txtZESEmail")){var useremail=isExists(urlemail,frmObj.name,"txtZESEmail",fieldId,licenseeId);if(useremail){alert(" Email already exists!!!");return false}}if(eval("document."+frmObj.name+".txtHomeEmail")){var useremail=isExists(urlemail,frmObj.name,"txtHomeEmail",fieldId,licenseeId);if(useremail){alert(" Email already exists!!!");return false}}var user=isExists(url,frmObj.name,fieldName,fieldId,licenseeId,strExtra);if(user){alert(fieldMsg+" already exists!!!");return false}if(eval("document."+frmObj.name+".txtinstProfileEmail")){var useremail=isExists(urlemail,frmObj.name,"txtinstProfileEmail",fieldId,licenseeId);if(useremail){alert(" Email already exists!!!");return false}}return true}else{return false}}function restrictSpace(b){var a=b.keyCode?b.keyCode:b.charCode;if(a!=32){return true}else{return false}}function confirmSubmit(){var a=confirm("Are you sure you want to submit");if(a){return true}else{return false}}function confirmDelete(b){var a=confirm("Are you sure you want to Delete?");if(a){redirect(b)}else{return false}}function redirect(a){window.location.href=a;return true}function checkValid(){if(trim(document.frmstatus.txaComments.value)==""){alert("Please Enter Your Comments");return false}Changestatus();return true}function Changestatus(){var a;a="status="+document.frmstatus.optStatus.value+"&workshoprequestid="+document.frmstatus.workshoprequestid.value+"&comments="+document.frmstatus.txaComments.value+"&licenseeId="+document.frmstatus.licenseeId.value;new Ajax.Request(url,{onSuccess:newstateChanged,onFailure:function(b){alert("Oops, there's been an error."+b.responseText)},parameters:a})}function newstateChanged(b){var a=parseInt(b.responseText);if(a){alert("State was changed successfully")}else{alert("Oops, there was an error changing the state. Please try again!")}lytebox_close()}function getWorkshopCaption(f,b,c){functionclear();if(document.getElementById("newuser")){document.getElementById("newuser").style.display="none"}if(document.getElementById("exuser")){document.getElementById("exuser").style.display="none"}if(document.getElementById("ccDetails")){document.getElementById("ccDetails").style.display="none"}document.getElementById("optUserSel1").checked=false;document.getElementById("optUserSel2").checked=false;if(trim(f)==""){document.getElementById("caption").style.display="none";alert("Please Select Workshop");document.getElementById("optUserSel1").disabled=false;document.getElementById("optUserSel2").disabled=false}else{var k="workshopId="+f+"&memId="+c;new Ajax.Request(b,{onSuccess:funCaption,onFailure:function(l){alert("Oops, there's been an error."+l.responseText)},parameters:k})}var g=options.script.search("workshopId_");var a=options.script.substring(g);var h=a.search("/");var j=options.script.substring(0,g);var e="workshopId_"+f;var d=options.script.substring(g+h);options.script=j.concat(e,d)}function funCaption(c){if(c.responseText){var b=c.responseText.split("++");if(b[2]==1){document.getElementById("promotion").style.display="block"}else{if(b[2]==0){document.getElementById("promotion").style.display="none"}}if(b[1]!=0){var a="<label>"+b[0]+':</label><input type="text" name="txtwsCaption" value=\'\'>';if(document.getElementById("caption")!=null){document.getElementById("caption").style.display="block";document.getElementById("caption").innerHTML=a}if(document.getElementById("captionIs")!=null){document.getElementById("captionIs").value=b[1]}if(document.getElementById("lableIs")!=null){document.getElementById("lableIs").value=b[0]}}else{if(b[1]==0){if(document.getElementById("caption")!=null){document.getElementById("caption").style.display="none";document.getElementById("caption").innerHTML=""}if(document.getElementById("captionIs")!=null){document.getElementById("captionIs").value=""}if(document.getElementById("lableIs")!=null){document.getElementById("lableIs").value=""}}}document.getElementById("wsPrice").value=b[3];document.getElementById("price").value=b[3];document.getElementById("optUserSel1").disabled=false;if(b[3]==""){document.getElementById("optUserSel1").disabled=true}}else{document.getElementById("caption").style.display="none";document.getElementById("caption").innerHTML="";document.getElementById("captionIs").value="";document.getElementById("promotion").style.display="none";document.getElementById("lableIs").value="";document.getElementById("wsPrice").value="";document.getElementById("optUserSel1").disabled=true}}function isPromoCode(url,frmName,fieldName,fileId,fielIdInstructor,fielIdLicensee){var paramsExtra="";var requestParams="";var pcodeVal="";var instructorId="";var licenseeId="";var validFieldName="";pcodeVal=eval("document."+frmName+"."+fieldName+".value");if(fielIdInstructor!=""){instructorId=eval("document."+frmName+"."+fielIdInstructor+".value")}if(fielIdLicensee!=""){licenseeId=eval("document."+frmName+"."+fielIdLicensee+".value")}if(pcodeVal==""){document.getElementById("pcode").style.display="none";if(document.getElementById("Nextsubmit")){document.getElementById("Nextsubmit").style.display="none"}}else{if(trim(fieldName)!=""){requestParams=fieldName+"="+eval("document."+frmName+"."+fieldName+".value")+"&"}requestParams+=fileId+"="+eval("document."+frmName+"."+fileId+".value");if(instructorId!=""){requestParams+="&instructorId="+instructorId}if(licenseeId!=""){requestParams+="&licensee="+licenseeId}requestParams+=paramsExtra;new Ajax.Request(url,{onSuccess:getPromoCode,onFailure:function(resp){alert("Oops, there's been an error."+resp.responseText)},parameters:requestParams,method:"post",asynchronous:false})}}function getPromoCode(a){document.getElementById("pcode").innerHTML="";arrResponse=JSON.parse(a.responseText);document.getElementById("pcode").style.display="block";if(arrResponse.discount>0){if(document.getElementById("Nextsubmit")!=null){document.getElementById("Nextsubmit").style.display="none"}document.getElementById("discountamt").value=arrResponse.discount;document.getElementById("totalprice").value=arrResponse.total;document.getElementById("pcode").innerHTML="<strong>Discount Amount</strong>: "+arrResponse.discountFormatted;document.getElementById("pcode").innerHTML+="<br /><strong>Total Amount</strong>: "+arrResponse.totalFormatted}else{if(document.getElementById("Nextsubmit")!=null){document.getElementById("Nextsubmit").style.display="none"}document.getElementById("discountamt").value="";document.getElementById("totalprice").value="";if(document.getElementById("txtPromoDiscountCode")!=null){document.getElementById("txtPromoDiscountCode").value=""}if(document.getElementById("txtwsPromotion")!=null){document.getElementById("txtwsPromotion").value=""}document.getElementById("pcode").innerHTML="Invalid Promotional Code"}}function startLyteWindowFrame(b,c,d,a){myLightWindow.activateWindow({href:c,height:a,width:d,title:b,type:"external"})}function startLyteWindow(a,b){myLightWindow.activateWindow({href:b,caption:a})}function startLightWindow(a,d,c){var b="/viewimage.php?img="+d+"&path="+c;myLightWindow.activateWindow({href:b,caption:a,type:"image"})}function startLyteFrame(a,c){var b=this.document.createElement("a");b.setAttribute("title",a);b.setAttribute("href",c);b.setAttribute("rel","lytebox");myLytebox.start(b,false,false)}function startLyteboxFrame(b,c,d,a){myLightWindow.activateWindow({href:c,height:a,width:d,title:b})}function configureFrame(c,b,a){var d="";if(arguments.length>3){d="&module="+arguments[3]}var e="/components/imagecropper/cropimage.php?filFieldName="+c+"&width="+b+"&height="+a+d;startLyteWindowFrame("",e,920,900);return false}function deleteImage(f,d,c,e,a){var b=confirm("Are you sure you want to delete your photo?");if(b){if(trim(document.getElementById(a).value)!=""){document.getElementById(a).value="";alert("current uploaded image/material is Deleted")}else{new Ajax.Request(d,{parameters:"id="+f+"&fieldname="+c,asynchronous:false,onSuccess:function(k){var h=k.responseText;var g=h.split("|");var j=parseInt(g[0]);if(j){alert(g[1]+" Deleted Successfully");if(document.getElementById(e)){document.getElementById(e).style.display="none"}if(document.getElementById(e+"image")){document.getElementById(e+"image").style.display="none"}if(document.getElementById("showImage")){document.getElementById("showImage").style.display="none"}if(document.getElementById("txt"+a)){document.getElementById("txt"+a).value=""}if(document.getElementById("uploaded")){document.getElementById("uploaded").value=""}}else{alert("Error In "+g[1]+" Deletion");document.getElementById(e).style.display="block"}},onFailure:function(g){alert("Oops, there's been an error."+g.responseText)}})}}else{return false}}function urlParams(b){var a="";for(i=0;i<b.length;i+=2){if(i>1){a+="/"}a+=b[i]+"_"+b[i+1]}if(trim(a)!=""){a+="/"}return a}function getTabbarObj(){tabbar=new dhtmlXTabBar("a_tabbar","top");tabbar.setImagePath("/images/dhtmlxtabbar/");tabbar.setOnSelectHandler(getGridTab)}function limitLen(b,a){if(b.value.length>=a){b.value=b.value.substr(0,a);return false}return true}function subForm(e,a,c){var b=document.frmSearch.lstTypeOfSearch.value;if(typeof e=="undefined"){e=window.event}var d=e.keyCode?e.keyCode:e.charCode;if(b=="instructorStatusID"||b=="PaymentRequestId"||b=="instructorStatusID"){if((d>=48&&d<=57)||d==8||d==9||d==39||d==37){return true}else{if(d==13){if(arguments.length>3){dataSearchLoad(a,c,arguments[3])}else{dataSearchLoad(a,c)}return false}else{return false}}}else{if((d>=64&&d<=122)||d==8||d==32||(d>=48&&d<=57)||d==46){return true}else{if(d==13){if(arguments.length>3){dataSearchLoad(a,c,arguments[3])}else{dataSearchLoad(a,c)}return false}else{return false}}}}function SubmitComments(a){var b;new Ajax.Request(url,{asynchronous:false,method:"post",postBody:Form.serialize(a),onSuccess:getcomments,onFailure:function(c){alert("Oops, there's been an error."+c.responseText)}})}function getcomments(a){lightwindowresponse=(a.responseText);changeGridCell()}function tinymce_properties(a){tinyMCE.init({mode:"exact",theme:"advanced",plugins:"safari,table",theme_advanced_toolbar_align:"justify",submit_patch:false,theme_advanced_buttons1:"bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,fontselect,fontsizeselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|link,unlink,anchor,cleanup,code",theme_advanced_buttons3_add:"tablecontrols",elements:a,theme_advanced_resizing:true,theme_advanced_toolbar_location:"top"})}function displayProcessButton(b,a){document.getElementById(b).style.display="none";document.getElementById(a).style.display="block"}function trim(a){if(!a||typeof a!="string"){return""}return a.replace(/^[\s]+/,"").replace(/[\s]+$/,"").replace(/[\s]{2,}/," ")}function funChkSame(a){if(a){document.frm.txtbFirstName.value=trim(document.getElementById("fstName").innerHTML);document.frm.txtbLastName.value=trim(document.getElementById("lstName").innerHTML);document.frm.txtbAddress.value=trim(document.frm.txtAddress.value);document.frm.txtbZip.value=trim(document.frm.txtZip.value);copyGeodropdowns(a,"ship","bill")}else{document.frm.txtbFirstName.value="";document.frm.txtbLastName.value="";document.frm.txtbAddress.value="";document.frm.lstBillCountryId.value="";document.frm.lstBillStateId.value="";document.getElementById("billstates").style.display="none";document.frm.lstBillCityId.value="";document.getElementById("billcity").style.display="none";document.frm.txtbZip.value=""}}function validate(d,b,g,a){if(validateForm(d,b)){if(document.frm.txtinstructorEmail){var e=document.frm.licensee.value;var f=isExists(g,d.name,"txtinstructorEmail","instructorId",e);if(f){alert(" Email already exists!!!");return false}}var c;new Ajax.Request(a,{asynchronous:false,method:"post",postBody:Form.serialize(document.frm),onSuccess:getWorkshopStatusResponse,onFailure:function(h){alert("Oops, there's been an error."+h.responseText)}})}else{return false}}function getWorkshopStatusResponse(b){var a=parseInt(b.responseText);if(a){alert("Successfully updated.");window.parent.myLightWindow.deactivate();return false}else{alert("Error while updating details.")}}function ReplaceUrl(f,a){var h=f.search(/workshopId_/i);var e=f.substring(h);var c=e.search("/");var g=f.substring(0,h);var d="workshopId_"+a;var b=f.substring(h+c);f=g.concat(d,b);return f}function SubmitPostComments(a){if(trim(document.getElementById("txtWrkInstComments").value)!=""){SubmitComments(a)}else{alert("Please enter comments");document.getElementById("txtWrkInstComments").focus();return false}}function getSubTopics(b,a){if(b!=""){new Ajax.Request(a,{parameters:"topicName="+b,asynchronous:false,onSuccess:function(c){document.getElementById("trSubtopics").style.display="";document.getElementById("tdSubtopics").innerHTML=c.responseText},onFailure:function(c){alert("Oops, there's been an error."+c.responseText)}})}else{document.getElementById("trSubtopics").style.display="none";document.getElementById("contact-helper").style.display="none";alert("Select the Topic")}}function getSubTopicHelp(a,c,b){if(a!=""){new Ajax.Request(b,{parameters:"topicName="+c+"&subtopicName="+a,asynchronous:false,onSuccess:function(d){if(a=="Cancel My ZIN Membership"){document.getElementById("txaComments").style.display="none";document.getElementById("txaCommentsLabel").style.display="none"}else{document.getElementById("txaComments").style.display="block";document.getElementById("txaCommentsLabel").style.display="block"}if(d.responseText){document.getElementById("contact-helper").style.display="block";document.getElementById("contact-helper").innerHTML="<p>"+d.responseText+"</p>"}else{document.getElementById("contact-helper").style.display="none"}},onFailure:function(d){alert("Oops, there's been an error."+d.responseText)}})}else{document.getElementById("contact-helper").style.display="none";alert("Select the Sub Topic")}}function checkValidity(a){if(trim(document.frmmail.txaComments.value)==""){alert("Please Enter Comments");return false}event_sendmail(a);return true}function lytebox_close(){window.parent.location.reload(true)}function event_sendmail(a){var b="";new Ajax.Request(a,{onSuccess:getmail,onFailure:function(c){alert("Oops, there's been an error."+c.responseText)},parameters:b,method:"post",asynchronous:false})}function getmail(b){var a=parseInt(b.responseText);if(a){alert("Successfully Mail is Sent")}else{alert("Failure while sending mail!!Try again!!")}lytebox_close()}function getEndHrs(f,d,g){if(trim(d)!=""){if(g){var b='<select  name="lstEndHrs"  style="width:80px;"><option value=\'\'>Select Hour </option>';document.getElementById("endHrsId").innerHTML="";var a=["12am","1am","2am","3am","4am","5am","6am","7am","8am","9am","10am","11am","12pm","1pm","2pm","3pm","4pm","5pm","6pm","7pm","8pm","9pm","10pm","11pm"];finalval=0;for(var c=0;c<f;c++){var e=parseInt(d)+c;e=(e%24);if(e>12){if(!c){finalval=parseInt(a[e])}else{finalval=finalval+1}strval=finalval+"pm"}else{if(e==12){strval=e+"pm"}else{if(!e){intval=12}else{intval=e}strval=intval+"am"}}if(c==1){selected="selected"}else{selected=""}b+="<option value='"+e+"'"+selected+">"+strval+"</option>"}b+="</select";document.getElementById("endHrsId").innerHTML=b}else{document.getElementById("lstEndMins").value=d}}}function toggle_div(a){if(document.getElementById("lstWorkshopId").value!=""){if(a==1){document.getElementById("wsPrice").value=document.getElementById("price").value;document.getElementById("optUserSel1").checked=true;document.getElementById("optUserSel2").checked=false;document.getElementById("newuser").style.display="block";document.getElementById("ccDetails").style.display="block";document.getElementById("exuser").style.display="none";document.getElementById("pcode").style.display="none";document.getElementById("instructor").value="";document.getElementById("txtwsPromotion").value="";return false}else{if(a==2){document.getElementById("wsPrice").value="";document.getElementById("instructor").value="";document.getElementById("txtexFirstName").value="";document.getElementById("txtexLastName").value="";document.getElementById("txtexUsername").value="";document.getElementById("txtwsPromotion").value="";document.getElementById("txtexEmail").value="";document.getElementById("optUserSel1").checked=false;document.getElementById("optUserSel2").checked=true;document.getElementById("exuser").style.display="block";document.getElementById("newuser").style.display="none";document.getElementById("ccDetails").style.display="block";document.getElementById("pcode").style.display="none";document.getElementById("txtwsPromotion").value="";return false}}}else{alert("Please select Workshop");document.getElementById("optUserSel1").checked=false;document.getElementById("optUserSel2").checked=false;return false}}function submitZesWsForm(objForm,arrFormValidationnew,arrFormValidationex,urluser,urlemail){if(document.frmaddregister.lstWorkshopId.value==""){alert("Please select Workshop");return false}if(document.getElementById("optUserSel1").checked==false&&document.getElementById("optUserSel2").checked==false){alert("Please make User Selection");return false}if(document.getElementById("optUserSel1").checked==true){return checkvalid(objForm,arrFormValidationnew,urlemail)}else{if(validateForm(objForm,arrFormValidationex)){if(eval("document."+objForm.name+".instructor")){var licenseeId=eval("document."+objForm.name+".lstLicensee.value");var workshopId=eval("document."+objForm.name+".lstWorkshopId.value");workshopId+="&lstWorkshopId="+workshopId;var user=isExists(urluser,objForm.name,"instructor","workshopRegistrationId",licenseeId,workshopId);if(user){alert("User already Registered for this Workshop!!!");return false}}}else{return false}}}function checkvalid(objForm,arrFormValidationnew,urlemail){var res=checkValidform(objForm,arrFormValidationnew,"txtUserName","workshopRegistrationId","User Name");if(res){if(eval("document."+objForm.name+".txtEmail")){var licenseeId=eval("document."+objForm.name+".lstLicensee.value");var useremail=isExists(urlemail,objForm.name,"txtEmail","workshopRegistrationId",licenseeId);if(useremail){alert("User with this Email already exists!!!");return false}}}else{return false}}function populatebillinfo(){frm=document.frmaddregister;if(frm.chksame.checked){copyGeodropdowns(frm.chksame.checked,"home","bill");frm.txtbFirstName.value=frm.txtFirstName.value;frm.txtbLastName.value=frm.txtLastName.value;frm.txtBillAdd.value=frm.txtHomeAdd.value;frm.lstBillCountryId.value=frm.lstHomeCountryId.value;frm.txtBillZip.value=frm.txtHomeZip.value}else{frm.txtbFirstName.value="";frm.txtbLastName.value="";frm.txtBillAdd.value="";frm.lstBillCountryId.value="";frm.lstBillStateId.value="";frm.lstBillCityId.value="";frm.txtBillZip.value="";document.getElementById("billStates").style.display="block";document.getElementById("billcity").style.display="block"}}function functionclear(){document.getElementById("txtInstructor").value="";document.getElementById("instructor").value="";document.getElementById("txtexFirstName").value="";document.getElementById("txtexLastName").value="";document.getElementById("txtexUsername").value="";document.getElementById("txtwsPromotion").value="";document.getElementById("txtexEmail").value="";document.getElementById("wsPrice").value="";document.getElementById("pcode").style.display="none"}function validateComments(d,b,a){if(validateForm(d,b)){var c;new Ajax.Request(a,{asynchronous:false,method:"post",postBody:Form.serialize(d),onSuccess:function(g){var f=g.responseText;var e=f.split("|");alert(e[0]);if(e.length>1){if(parseInt(e[1])){lightwindowresponse=e[1];changeGridCell()}}},onFailure:function(e){alert("Oops, there's been an error."+e.responseText)}});return false}else{return false}}function getDataByWorkshopId(c,b){var a=c.split("|");workshopSelectedId=a[0];if(workshopSelectedId==""){document.getElementById("gridbox").style.display="none";document.getElementById("recdiv").style.display="none";document.getElementById("comments").style.display="none";document.getElementById("postedComments").style.display="none";document.getElementById("pcId").style.display="none";document.getElementById("vcId").style.display="none";document.getElementById("excel").style.display="none";document.getElementById("printall").style.display="none";document.getElementById("prereconcil").style.display="none";document.getElementById("finalreconcil").style.display="none";alert("please select workshop")}else{document.getElementById("pcId").style.display="block";document.getElementById("vcId").style.display="block";document.getElementById("excel").style.display="block";document.getElementById("printall").style.display="block";document.getElementById("excel").innerHTML=ReplaceUrl(document.getElementById("excel").innerHTML,workshopSelectedId);document.getElementById("printall").innerHTML=ReplaceUrl(document.getElementById("printall").innerHTML,workshopSelectedId);document.getElementById("pstcommt").innerHTML=ReplaceUrl(document.getElementById("pstcommt").innerHTML,workshopSelectedId);if(a[1]==prereconciled){document.getElementById("finalreconcil").style.display="block";document.getElementById("finalreconcil").innerHTML=ReplaceUrl(document.getElementById("finalreconcil").innerHTML,workshopSelectedId);document.getElementById("prereconcil").innerHTML=ReplaceUrl(document.getElementById("prereconcil").innerHTML,workshopSelectedId);document.getElementById("prereconcil").style.display="none"}else{document.getElementById("prereconcil").style.display="block";document.getElementById("prereconcil").innerHTML=ReplaceUrl(document.getElementById("prereconcil").innerHTML,workshopSelectedId);document.getElementById("finalreconcil").innerHTML=ReplaceUrl(document.getElementById("finalreconcil").innerHTML,workshopSelectedId);document.getElementById("finalreconcil").style.display="none"}getGrid(workshopSelectedId,b);document.getElementById("comments").style.display="none";document.getElementById("postedComments").style.display="none"}}function getGrid(a,b){var d=["workshopId",a];var c=b+urlParams(d)+"/";dataLoad("All",c)}function finalreconcil(a){var b=confirm("Please click OK to confirm you have Pre-reconciled your Workshop.Zumba Office will be notified to revise and process any eventual comments.If you are not sure, click CANCEL.For any questions, contact us at recon@zumba.com");if(b){new Ajax.Request(a,{onSuccess:function(c){if(parseInt(c.responseText)){alert("Workshop Finalized Successfuly.")}else{alert("Error while Workshop Finalizing.")}window.location.reload(true)},onFailure:function(c){alert("Oops, there's been an error."+c.responseText)},method:"post",asynchronous:false})}else{return false}}function prereconcil(a){var b=confirm("Please click OK to confirm you have finished your Workshop Pre-Reconciliation. You will NOT be able to perform ANY modifications (other than processing new ZIN members) once you click OK.  If you are not sure , click CANCEL. For any questions, contact us at recon@zumba.com");if(b){new Ajax.Request(a,{onSuccess:function(f){if(parseInt(f.responseText)){alert("Workshop pre-reconcilized.");var d=document.getElementById("lstWorkshopId").selectedIndex;var e=document.getElementById("lstWorkshopId").value;var c=e.split("|");document.getElementById("lstWorkshopId").options[d].value=c[0]+"|"+prereconciled;document.getElementById("finalreconcil").style.display="block";document.getElementById("prereconcil").style.display="none"}else{alert("Error while Workshop pre-reconcilizing.")}},onFailure:function(c){alert("Oops, there's been an error."+c.responseText)},method:"post",asynchronous:false})}else{return false}}function Comments(c,a,b){if(document.frmAdminPostCmt.txaComments.value!=""){SubmitPostedComments(c,a,b)}else{alert("please enter comments")}}function SubmitPostedComments(b,a,d){var c;new Ajax.Request(a,{asynchronous:false,method:"post",postBody:Form.serialize(b),onSuccess:function(e){if(parseInt(e.responseText)){alert("comments posted successfully");window.parent.PostComments(d);window.parent.myLightWindow.deactivate()}else{alert("Error while posting comments")}},onFailure:function(e){alert("Oops, there's been an error."+e.responseText)}})}function validateBusinessContact(d,b,a){if(validateForm(d,b)){var c;new Ajax.Request(a,{asynchronous:false,method:"post",postBody:Form.serialize(d),onSuccess:function(e){if(e.responseText==1){document.getElementById("frmContactInstructor").style.display="none";document.getElementById("profile").style.display="block"}else{alert("Oops, there was an error while sending your message.");document.getElementById("frmContactInstructor").style.display="block";document.getElementById("profile").style.display="none"}},onFailure:function(e){alert("Oops, there's been an error."+e.responseText);document.getElementById("frmContactInstructor").style.display="block";document.getElementById("profile").style.display="none"}});return false}else{return false}}function validateContactForm(c,b){if(validateForm(c,b)){var a=document.getElementById("lstSubTopicId").value;if(a!="Cancel My ZIN Membership"){if(trim(document.getElementById("txaComments").value)==""){alert("Please Enter Comments");return false}}return true}}var dropdownSet=Class.create();dropdownSet.prototype={initialize:function(){this.data={fields:[]}},newDD:function(b,a){this.data.fields.push({name:a,value:b,set:0})},get:function(b,a){el=this.data.fields.detect(function(c){return c.value==b});return el[a]},set:function(b,c,a){this.data.fields.each(function(e,d){if(e.value==b){e[c]=a}})},empty:function(){this.data={fields:[]}}};function fncAddDropDown(listDS,node,selected){eval(listDS).data.fields.each(function(el){if(selected==el.value){op=Builder.node("option",{value:el.value,selected:"selected"},el.name)}else{op=Builder.node("option",{value:el.value},el.name)}$(node).appendChild(op)});$(node).value=selected}var statesDS=new dropdownSet();var stateData=statesDS;var lststatelablId;var txtcitylablId;var imgload;var txt_CityId;var lstStateId;var selStateId;var countryId;var lstCountry;function getStateList(b,e,d,a){if(arguments.length>4){imgload=arguments[4];if(arguments.length>5){lststatelablId=arguments[5]}if(arguments.length>6){txtcitylablId=arguments[6]}if(arguments.length>7){lstCountry=arguments[7];if(document.getElementById(lstCountry)){document.getElementById(lstCountry).value=b}}}else{imgload="";lststatelablId="";txtcitylablId=""}document.getElementById(e).style.display="none";if(b==""){document.getElementById(e).value="";if(document.getElementById(lststatelablId)){document.getElementById(lststatelablId).style.display="none"}if(document.getElementById(txtcitylablId)){document.getElementById(txtcitylablId).style.display="none"}if(document.getElementById(a)){document.getElementById(a).style.display="none"}}countryId=b;lstStateId=e;selStateId=d;txt_CityId=a;if(document.getElementById(a)&&selStateId==""){if(document.getElementById(txtcitylablId)){document.getElementById(txtcitylablId).style.display="none"}document.getElementById(a).style.display="none";document.getElementById(a).value=""}if(countryId!=""){if(countryId!=-1){if(document.getElementById(imgload)){document.getElementById(imgload).style.display="block"}var c=new Ajax.Request("/json/"+countryId+"_stateslist.txt",{method:"get",onComplete:popStates,asynchronous:false})}}}function popStates(a){document.getElementById(lstStateId).options.length=1;stateData.initialize();var b=JSON.parse(a.responseText);if(b){b.each(function(d,c){stateData.newDD(d.name,d.name)})}fncAddDropDown(stateData,lstStateId,selStateId);if(document.getElementById(lststatelablId)){document.getElementById(lststatelablId).style.display="block"}if(document.getElementById(lstStateId)){document.getElementById(lstStateId).style.display="block"}if(document.getElementById(imgload)){document.getElementById(imgload).style.display="none"}if(document.getElementById(txt_CityId)&&selStateId!=""){if(document.getElementById(txtcitylablId)){document.getElementById(txtcitylablId).style.display="block"}document.getElementById(txt_CityId).style.display="block"}}var statesDS1=new dropdownSet();var stateData1=statesDS1;var lststatelablId1;var txtcitylablId1;var imgload1;var txtCityId1;var lstStateId1;var selStateId1;var countryId1;var lstCountry1;function getStateList1(c,f,e,a){if(arguments.length>4){imgload1=arguments[4];if(arguments.length>5){lststatelablId1=arguments[5]}if(arguments.length>6){txtcitylablId1=arguments[6]}if(arguments.length>7){lstCountry1=arguments[7];if(document.getElementById(lstCountry1)){document.getElementById(lstCountry1).value=c}}}else{imgload1="";lststatelablId1="";txtcitylablId1=""}countryId1=c;lstStateId1=f;selStateId1=e;txtCityId1=a;document.getElementById(lstStateId1).style.display="none";if(c==""){document.getElementById(lstStateId1).value="";if(document.getElementById(lststatelablId1)){document.getElementById(lststatelablId1).style.display="none"}if(document.getElementById(txtcitylablId1)){document.getElementById(txtcitylablId1).style.display="none"}if(document.getElementById(a)){document.getElementById(a).style.display="none"}}if(document.getElementById(txtCityId1)&&selStateId1==""){if(document.getElementById(txtcitylablId1)){document.getElementById(txtcitylablId1).style.display="none"}document.getElementById(txtCityId1).style.display="none";document.getElementById(txtCityId1).value=""}if(countryId1!=""){if(countryId1!=-1){if(document.getElementById(imgload1)){document.getElementById(imgload1).style.display="block"}var b="/json/"+countryId1+"_stateslist.txt";var d=new Ajax.Request(b,{method:"get",onComplete:popStates1,asynchronous:false})}}}function popStates1(a){document.getElementById(lstStateId1).options.length=1;stateData1.initialize();var b=JSON.parse(a.responseText);if(b){b.each(function(d,c){stateData1.newDD(d.name,d.name)})}fncAddDropDown(stateData1,lstStateId1,selStateId1);if(document.getElementById(lststatelablId1)){document.getElementById(lststatelablId1).style.display="block"}if(document.getElementById(lstStateId1)){document.getElementById(lstStateId1).style.display="block"}if(document.getElementById(imgload1)){document.getElementById(imgload1).style.display="none"}if(document.getElementById(txtCityId1)&&selStateId1!=""){if(document.getElementById(txtcitylablId1)){document.getElementById(txtcitylablId1).style.display="block"}document.getElementById(txtCityId1).style.display="block"}}var statesDS2=new dropdownSet();var stateData2=statesDS2;var lststatelablId2;var txtcitylablId2;var imgload2;var txtCityId2;var lstStateId2;var selStateId2;var countryId2;var lstCountry2;function getStateList2(c,f,e,a){if(arguments.length>4){imgload2=arguments[4];if(arguments.length>5){lststatelablId2=arguments[5]}if(arguments.length>6){txtcitylablId2=arguments[6]}if(arguments.length>7){lstCountry2=arguments[7];if(document.getElementById(lstCountry2)){document.getElementById(lstCountry2).value=c}}}else{imgload2="";lststatelablId2="";txtcitylablId2=""}countryId2=c;lstStateId2=f;selStateId2=e;txtCityId2=a;document.getElementById(lstStateId2).style.display="none";if(countryId2==""){document.getElementById(lstStateId2).value="";if(document.getElementById(lststatelablId2)){document.getElementById(lststatelablId2).style.display="none"}if(document.getElementById(txtcitylablId2)){document.getElementById(txtcitylablId2).style.display="none"}if(document.getElementById(txtCityId2)){document.getElementById(txtCityId2).style.display="none"}}if(document.getElementById(txtCityId2)&&selStateId2==""){if(document.getElementById(txtcitylablId2)){document.getElementById(txtcitylablId2).style.display="none"}document.getElementById(txtCityId2).style.display="none";document.getElementById(txtCityId2).value=""}if(countryId2!=""){if(countryId2!=-1){if(document.getElementById(imgload2)){document.getElementById(imgload2).style.display="block"}var b="/json/"+countryId2+"_stateslist.txt";var d=new Ajax.Request(b,{method:"get",onComplete:popStates2,asynchronous:false})}}}function popStates2(a){document.getElementById(lstStateId2).options.length=1;stateData2.initialize();var b=JSON.parse(a.responseText);if(b){b.each(function(d,c){stateData2.newDD(d.name,d.name)})}fncAddDropDown(stateData2,lstStateId2,selStateId2);if(document.getElementById(lststatelablId2)){document.getElementById(lststatelablId2).style.display="block"}if(document.getElementById(lstStateId2)){document.getElementById(lstStateId2).style.display="block"}if(document.getElementById(imgload2)){document.getElementById(imgload2).style.display="none"}if(document.getElementById(txtCityId2)&&selStateId2!=""){if(document.getElementById(txtcitylablId2)){document.getElementById(txtcitylablId2).style.display="block"}document.getElementById(txtCityId2).style.display="block"}}function functionclear_dropdown(b){if(trim(b)!=""){var a=b.split("|");document.getElementById(a[0]).value=document.getElementById(a[1]).value}}function callCity(f,a,b,h,g,d,k){if(typeof k=="undefined"){k=""}if(document.getElementById(d)){document.getElementById(d).value="";document.getElementById(d).style.display="block"}if(f==""){if(document.getElementById(h)){document.getElementById(h).style.display="none"}if(k!=""&&document.getElementById(k)){document.getElementById(k).style.display="none"}}else{if(document.getElementById(h)){document.getElementById(h).style.display="block"}if(k!=""&&document.getElementById(k)){document.getElementById(k).style.display="block"}var j="";if(document.getElementById(g)){j=document.getElementById(g).value}var c=new Array("json",true,"countryName",j,"stateName",f);var e=a+urlParams(c)+"/";b.script=e}}function copyGeodropdowns(isSame,srcgeodrop,destgeodrop){var bill=new Array("lstBillCountryId","lstBillStateId","lstBillCityId");var home=new Array("lstHomeCountryId","lstHomeStateId","lstHomeCityId");var ship=new Array("lstShipCountryId","lstShipStateId","lstShipCityId");var srcSelect=eval(srcgeodrop);var destSelect=eval(destgeodrop);if(isSame){document.getElementById(destSelect[0]).value=document.getElementById(srcSelect[0]).value;document.getElementById(destSelect[0]).onchange();document.getElementById(destSelect[1]).value=document.getElementById(srcSelect[1]).value;document.getElementById(destSelect[1]).onchange();document.getElementById(destSelect[2]).value=document.getElementById(srcSelect[2]).value}}if(!this.JSON){JSON=function(){function f(n){return n<10?"0"+n:n}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function stringify(value,whitelist){var a,i,k,l,r=/["\\\x00-\x1f\x7f-\x9f]/g,v;switch(typeof value){case"string":return r.test(value)?'"'+value.replace(r,function(a){var c=m[a];if(c){return c}c=a.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"':'"'+value+'"';case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}if(typeof value.toJSON==="function"){return stringify(value.toJSON())}a=[];if(typeof value.length==="number"&&!(value.propertyIsEnumerable("length"))){l=value.length;for(i=0;i<l;i+=1){a.push(stringify(value[i],whitelist)||"null")}return"["+a.join(",")+"]"}if(whitelist){l=whitelist.length;for(i=0;i<l;i+=1){k=whitelist[i];if(typeof k==="string"){v=stringify(value[k],whitelist);if(v){a.push(stringify(k)+":"+v)}}}}else{for(k in value){if(typeof k==="string"){v=stringify(value[k],whitelist);if(v){a.push(stringify(k)+":"+v)}}}}return"{"+a.join(",")+"}"}}return{stringify:stringify,parse:function(text,filter){var j;function walk(k,v){var i,n;if(v&&typeof v==="object"){for(i in v){if(Object.prototype.hasOwnProperty.apply(v,[i])){n=walk(i,v[i]);if(n!==undefined){v[i]=n}}}}return filter(k,v)}if(/^[\],:{}\s]*$/.test(text.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(:?[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof filter==="function"?walk("",j):j}throw new SyntaxError("parseJSON")}}}()}var Prototip={Version:"2.0.5"};var Tips={options:{images:"../img/prototip/",zIndex:6000}};Prototip.Styles={"default":{border:6,borderColor:"#c7c7c7",className:"default",closeButton:false,hideAfter:false,hideOn:"mouseleave",hook:false,radius:6,showOn:"mousemove",stem:{height:12,width:15}},protoblue:{className:"protoblue",border:6,borderColor:"#116497",radius:6,stem:{height:12,width:15}},darkgrey:{className:"darkgrey",border:6,borderColor:"#363636",radius:6,stem:{height:12,width:15}},creamy:{className:"creamy",border:6,borderColor:"#ebe4b4",radius:6,stem:{height:12,width:15}},protogrey:{className:"protogrey",border:6,borderColor:"#606060",radius:6,stem:{height:12,width:15}}};eval(function(h,b,j,d,g,f){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){f[g(j)]=d[j]||g(j)}d=[function(a){return f[a]}];g=function(){return"\\w+"};j=1}while(j--){if(d[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),d[j])}}return h}('P.11(X,{5V:"1.6.0.3",3U:c(){8.3C("25");b(/^(6x?:\\/\\/|\\/)/.6i(e.9.W)){e.W=e.9.W}13{h A=/1P(?:-[\\w\\d.]+)?\\.4G(.*)/;e.W=(($$("4C 4y[2b]").3t(c(B){O B.2b.2k(A)})||{}).2b||"").3j(A,"")+e.9.W}b(25.2r.3e&&!17.3X.v){17.3X.34("v","5L:5y-5r-5k:5d");17.1f("3G:32",c(){17.4P().4I("v\\\\:*","4H: 30(#2Z#4D);")})}e.2p();r.1f(2S,"2R",8.2R)},3C:c(A){b((4v 2S[A]=="4p")||(8.2P(2S[A].4l)<8.2P(8["4i"+A]))){4g("X 6p "+A+" >= "+8["4i"+A]);}},2P:c(A){h B=A.3j(/4c.*|\\./g,"");B=6h(B+"0".6e(4-B.3g));O A.66("4c")>-1?B-1:B},62:$w("43 60"),1U:c(A){b(25.2r.3e){O A}A=A.2s(c(E,D){h B=P.2A(8)?8:8.m,C=D.5J;5E(C&&C!=B){5x{C=C.5t}5q(F){C=B}}b(C==B){O}E(D)});O A},37:c(A){O(A>0)?(-1*A):(A).5g()},2R:c(){e.4j()}});P.11(e,{1D:[],1c:[],2p:c(){8.2G=8.1t},1p:(c(A){O{1k:(A?"29":"1k"),1a:(A?"1S":"1a"),29:(A?"29":"1k"),1S:(A?"1S":"1a")}})(25.2r.3e),3D:{1k:"1k",1a:"1a",29:"1k",1S:"1a"},2f:{k:"31",31:"k",i:"1s",1s:"i",1Y:"1Y",1e:"1h",1h:"1e"},3A:{q:"1e",p:"1h"},2U:c(A){O!!23[1]?8.2f[A]:A},1n:(c(B){h A=s 4x("4w ([\\\\d.]+)").4u(B);O A?(3u(A[1])<7):10})(4n.4m),2N:(25.2r.4k&&!17.6w),34:c(A){8.1D.2L(A)},1J:c(A){h B=8.1D.3t(c(C){O C.m==$(A)});b(B){B.4f();b(B.1b){B.o.1J();b(e.1n){B.1v.1J()}}8.1D=8.1D.4b(B)}A.1P=2a},4j:c(){8.1D.3m(c(A){8.1J(A.m)}.1j(8))},2J:c(C){b(C==8.49){O}b(8.1c.3g===0){8.2G=8.9.1t;3i(h B=0,A=8.1D.3g;B<A;B++){8.1D[B].o.f({1t:8.9.1t})}}C.o.f({1t:8.2G++});b(C.T){C.T.f({1t:8.2G})}8.49=C},47:c(A){8.3f(A);8.1c.2L(A)},3f:c(A){8.1c=8.1c.4b(A)},46:c(){e.1c.1Q("V")},Y:c(B,F){B=$(B),F=$(F);h K=P.11({1g:{x:0,y:0},R:10},23[2]||{});h D=K.1z||F.2t();D.k+=K.1g.x;D.i+=K.1g.y;h C=K.1z?[0,0]:F.3H(),A=17.1E.2D(),G=K.1z?"20":"15";D.k+=(-1*(C[0]-A[0]));D.i+=(-1*(C[1]-A[1]));b(K.1z){h E=[0,0];E.q=0;E.p=0}h I={m:B.21()},J={m:P.2c(D)};I[G]=K.1z?E:F.21();J[G]=P.2c(D);3i(h H 3Q J){3O(K[H]){U"5w":U"5u":J[H].k+=I[H].q;18;U"5s":J[H].k+=(I[H].q/2);18;U"5p":J[H].k+=I[H].q;J[H].i+=(I[H].p/2);18;U"5o":U"5m":J[H].i+=I[H].p;18;U"5l":U"5j":J[H].k+=I[H].q;J[H].i+=I[H].p;18;U"5h":J[H].k+=(I[H].q/2);J[H].i+=I[H].p;18;U"5f":J[H].i+=(I[H].p/2);18}}D.k+=-1*(J.m.k-J[G].k);D.i+=-1*(J.m.i-J[G].i);b(K.R){B.f({k:D.k+"j",i:D.i+"j"})}O D}});e.2p();h 5c=59.3J({2p:c(C,E){8.m=$(C);b(!8.m){4g("X: r 58 56, 55 3J a 1b.");O}e.1J(8.m);h A=(P.2F(E)||P.2A(E)),B=A?23[2]||[]:E;8.1u=A?E:2a;b(B.28){B=P.11(P.2c(X.33[B.28]),B)}8.9=P.11(P.11({1m:10,1i:0,3k:"#4R",1o:0,u:e.9.u,19:e.9.4L,1B:!(B.1d&&B.1d=="1Z")?0.14:10,1C:10,1x:"1S",3B:10,Y:B.Y,1g:B.Y?{x:0,y:0}:{x:16,y:16},1K:(B.Y&&!B.Y.1z)?1l:10,1d:"2q",n:10,28:"2Z",15:8.m,12:10,1E:(B.Y&&!B.Y.1z)?10:1l,q:10},X.33["2Z"]),B);8.15=$(8.9.15);8.1o=8.9.1o;8.1i=(8.1o>8.9.1i)?8.1o:8.9.1i;b(8.9.W){8.W=8.9.W.2Y("://")?8.9.W:e.W+8.9.W}13{8.W=e.W+"4F/"+(8.9.28||"")+"/"}b(!8.W.4E("/")){8.W+="/"}b(P.2F(8.9.n)){8.9.n={R:8.9.n}}b(8.9.n.R){8.9.n=P.11(P.2c(X.33[8.9.28].n)||{},8.9.n);8.9.n.R=[8.9.n.R.2k(/[a-z]+/)[0].2e(),8.9.n.R.2k(/[A-Z][a-z]+/)[0].2e()];8.9.n.1I=["k","31"].3z(8.9.n.R[0])?"1e":"1h";8.1r={1e:10,1h:10}}b(8.9.1m){8.9.1m.9=P.11({2V:25.4B},8.9.1m.9||{})}8.1p=$w("4A 43").3z(8.m.4z.2e())?e.3D:e.1p;b(8.9.Y.1z){h D=8.9.Y.1q.2k(/[a-z]+/)[0].2e();8.20=e.2f[D]+e.2f[8.9.Y.1q.2k(/[A-Z][a-z]+/)[0].2e()].2B()}8.3y=(e.2N&&8.1o);8.3x();e.34(8);8.3w();X.11(8)},3x:c(){8.o=s r("S",{u:"1P"}).f({1t:e.9.1t});b(8.3y){8.o.V=c(){8.f("k:-3v;i:-3v;1O:2o;");O 8};8.o.Q=c(){8.f("1O:1c");O 8};8.o.1c=c(){O(8.2Q("1O")=="1c"&&3u(8.2Q("i").3j("j",""))>-4t)}}8.o.V();b(e.1n){8.1v=s r("4s",{u:"1v",2b:"4r:10;",4q:0}).f({2m:"2i",1t:e.9.1t-1,4o:0})}b(8.9.1m){8.24=8.24.2s(8.2O)}8.1q=s r("S",{u:"1u"});8.12=s r("S",{u:"12"}).V();b(8.9.19||(8.9.1x.m&&8.9.1x.m=="19")){8.19=s r("S",{u:"2j"}).26(8.W+"2j.2l")}},2H:c(){b(17.32){8.3r();8.3s=1l;O 1l}13{b(!8.3s){17.1f("3G:32",8.3r);O 10}}},3r:c(){$(17.2M).N(8.o);b(e.1n){$(17.2M).N(8.1v)}b(8.9.1m){$(17.2M).N(8.T=s r("S",{u:"6v"}).26(8.W+"T.6t").V())}h G="o";b(8.9.n.R){8.n=s r("S",{u:"6r"}).f({p:8.9.n[8.9.n.1I=="1h"?"p":"q"]+"j"});h B=8.9.n.1I=="1e";8[G].N(8.3p=s r("S",{u:"6q 2K"}).N(8.4e=s r("S",{u:"6o 2K"})));8.n.N(8.1T=s r("S",{u:"6n"}).f({p:8.9.n[B?"q":"p"]+"j",q:8.9.n[B?"p":"q"]+"j"}));b(e.1n&&!8.9.n.R[1].4d().2Y("6m")){8.1T.f({2m:"6l"})}G="4e"}b(8.1i){h D=8.1i,F;8[G].N(8.1W=s r("6j",{u:"1W"}).N(8.1V=s r("3n",{u:"1V 3l"}).f("p: "+D+"j").N(s r("S",{u:"2n 6g"}).N(s r("S",{u:"1X"}))).N(F=s r("S",{u:"6f"}).f({p:D+"j"}).N(s r("S",{u:"4a"}).f({1w:"0 "+D+"j",p:D+"j"}))).N(s r("S",{u:"2n 6d"}).N(s r("S",{u:"1X"})))).N(8.2W=s r("3n",{u:"2W 3l"}).N(8.2T=s r("S",{u:"2T"}).f("2I: 0 "+D+"j"))).N(8.48=s r("3n",{u:"48 3l"}).f("p: "+D+"j").N(s r("S",{u:"2n 6c"}).N(s r("S",{u:"1X"}))).N(F.6b(1l)).N(s r("S",{u:"2n 69"}).N(s r("S",{u:"1X"})))));G="2T";h C=8.1W.2X(".1X");$w("68 67 65 63").3m(c(I,H){b(8.1o>0){X.45(C[H],I,{1L:8.9.3k,1i:D,1o:8.9.1o})}13{C[H].2E("44")}C[H].f({q:D+"j",p:D+"j"}).2E("1X"+I.2B())}.1j(8));8.1W.2X(".4a",".2W",".44").1Q("f",{1L:8.9.3k})}8[G].N(8.1b=s r("S",{u:"1b "+8.9.u}).N(8.27=s r("S",{u:"27"}).N(8.12)));b(8.9.q){h E=8.9.q;b(P.61(E)){E+="j"}8.1b.f("q:"+E)}b(8.n){h A={};A[8.9.n.1I=="1e"?"i":"1s"]=8.n;8.o.N(A);8.2g()}8.1b.N(8.1q);b(!8.9.1m){8.3d({12:8.9.12,1u:8.1u})}},3d:c(E){h A=8.o.2Q("1O");8.o.f("p:1M;q:1M;1O:2o").Q();b(8.1i){8.1V.f("p:0");8.1V.f("p:0")}b(E.12){8.12.Q().42(E.12);8.27.Q()}13{b(!8.19){8.12.V();8.27.V()}}b(P.2A(E.1u)){E.1u.Q()}b(P.2F(E.1u)||P.2A(E.1u)){8.1q.42(E.1u)}8.1b.f({q:8.1b.41()+"j"});8.o.f("1O:1c").Q();8.1b.Q();h C=8.1b.21(),B={q:C.q+"j"},D=[8.o];b(e.1n){D.2L(8.1v)}b(8.19){8.12.Q().N({i:8.19});8.27.Q()}b(E.12||8.19){8.27.f("q: 3c%")}B.p=2a;8.o.f({1O:A});8.1q.2E("2K");b(E.12||8.19){8.12.2E("2K")}b(8.1i){8.1V.f("p:"+8.1i+"j");8.1V.f("p:"+8.1i+"j");B="q: "+(C.q+2*8.1i)+"j";D.2L(8.1W)}D.1Q("f",B);b(8.n){8.2g();b(8.9.n.1I=="1e"){8.o.f({q:8.o.41()+8.9.n.p+"j"})}}8.o.V()},3w:c(){8.3b=8.24.1y(8);8.40=8.V.1y(8);b(8.9.1K&&8.9.1d=="2q"){8.9.1d="1k"}b(8.9.1d==8.9.1x){8.1R=8.3Z.1y(8);8.m.1f(8.9.1d,8.1R)}b(8.19){8.19.1f("1k",c(E){E.26(8.W+"5Y.2l")}.1j(8,8.19)).1f("1a",c(E){E.26(8.W+"2j.2l")}.1j(8,8.19))}h C={m:8.1R?[]:[8.m],15:8.1R?[]:[8.15],1q:8.1R?[]:[8.o],19:[],2i:[]},A=8.9.1x.m;8.39=A||(!8.9.1x?"2i":"m");8.1N=C[8.39];b(!8.1N&&A&&P.2F(A)){8.1N=8.1q.2X(A)}h D={29:"1k",1S:"1a"};$w("Q V").3m(c(H){h G=H.2B(),F=(8.9[H+"3Y"].38||8.9[H+"3Y"]);8[H+"3W"]=F;b(["29","1S","1k","1a"].2Y(F)){8[H+"3W"]=(8.1p[F]||F);8["38"+G]=X.1U(8["38"+G])}}.1j(8));b(!8.1R){8.m.1f(8.9.1d,8.3b)}b(8.1N){8.1N.1Q("1f",8.5X,8.40)}b(!8.9.1K&&8.9.1d=="1Z"){8.2u=8.R.1y(8);8.m.1f("2q",8.2u)}8.3V=8.V.2s(c(G,F){h E=F.5P(".2j");b(E){E.5N();F.5M();G(F)}}).1y(8);b(8.19||(8.9.1x&&(8.9.1x.m==".2j"))){8.o.1f("1Z",8.3V)}b(8.9.1d!="1Z"&&(8.39!="m")){8.2C=X.1U(c(){8.1G("Q")}).1y(8);8.m.1f(8.1p.1a,8.2C)}h B=[8.m,8.o];8.36=X.1U(c(){e.2J(8);8.2v()}).1y(8);8.35=X.1U(8.1C).1y(8);B.1Q("1f",8.1p.1k,8.36).1Q("1f",8.1p.1a,8.35);b(8.9.1m&&8.9.1d!="1Z"){8.2z=X.1U(8.3T).1y(8);8.m.1f(8.1p.1a,8.2z)}},4f:c(){b(8.9.1d==8.9.1x){8.m.1A(8.9.1d,8.1R)}13{8.m.1A(8.9.1d,8.3b);b(8.1N){8.1N.1Q("1A")}}b(8.2u){8.m.1A("2q",8.2u)}b(8.2C){8.m.1A("1a",8.2C)}8.o.1A();8.m.1A(8.1p.1k,8.36).1A(8.1p.1a,8.35);b(8.2z){8.m.1A(8.1p.1a,8.2z)}},2O:c(C,B){b(!8.1b){b(!8.2H()){O}}8.R(B);b(8.2y){O}13{b(8.3S){C(B);O}}8.2y=1l;h D={2h:{1F:22.1F(B),1H:22.1H(B)}};h A=P.2c(8.9.1m.9);A.2V=A.2V.2s(c(F,E){8.3d({12:8.9.12,1u:E.5I});8.R(D);(c(){F(E);h G=(8.T&&8.T.1c());b(8.T){8.1G("T");8.T.1J();8.T=2a}b(G){8.Q()}8.3S=1l;8.2y=2a}.1j(8)).1B(0.6)}.1j(8));8.5H=r.Q.1B(8.9.1B,8.T);8.o.V();8.2y=1l;8.T.Q();8.5F=(c(){s 5B.5A(8.9.1m.30,A)}.1j(8)).1B(8.9.1B);O 10},3T:c(){8.1G("T")},24:c(A){b(!8.1b){b(!8.2H()){O}}8.R(A);b(8.o.1c()){O}8.1G("Q");8.5z=8.Q.1j(8).1B(8.9.1B)},1G:c(A){b(8[A+"3N"]){5v(8[A+"3N"])}},Q:c(){b(8.o.1c()){O}b(e.1n){8.1v.Q()}b(8.9.3B){e.46()}e.47(8);8.1b.Q();8.o.Q();b(8.n){8.n.Q()}8.m.3M("1P:5C")},1C:c(A){b(8.9.1m){b(8.T&&8.9.1d!="1Z"){8.T.V()}}b(!8.9.1C){O}8.2v();8.5D=8.V.1j(8).1B(8.9.1C)},2v:c(){b(8.9.1C){8.1G("1C")}},V:c(){8.1G("Q");8.1G("T");b(!8.o.1c()){O}8.3L()},3L:c(){b(e.1n){8.1v.V()}b(8.T){8.T.V()}8.o.V();(8.1W||8.1b).Q();e.3f(8);8.m.3M("1P:2o")},3Z:c(A){b(8.o&&8.o.1c()){8.V(A)}13{8.24(A)}},2g:c(){h C=8.9.n,B=23[0]||8.1r,D=e.2U(C.R[0],B[C.1I]),F=e.2U(C.R[1],B[e.2f[C.1I]]),A=8.1o||0;8.1T.26(8.W+D+F+".2l");b(C.1I=="1e"){h E=(D=="k")?C.p:0;8.3p.f("k: "+E+"j;");8.1T.f({"2w":D});8.n.f({k:0,i:(F=="1s"?"3c%":F=="1Y"?"50%":0),5G:(F=="1s"?-1*C.q:F=="1Y"?-0.5*C.q:0)+(F=="1s"?-1*A:F=="i"?A:0)+"j"})}13{8.3p.f(D=="i"?"1w: 0; 2I: "+C.p+"j 0 0 0;":"2I: 0; 1w: 0 0 "+C.p+"j 0;");8.n.f(D=="i"?"i: 0; 1s: 1M;":"i: 1M; 1s: 0;");8.1T.f({1w:0,"2w":F!="1Y"?F:"2i"});b(F=="1Y"){8.1T.f("1w: 0 1M;")}13{8.1T.f("1w-"+F+": "+A+"j;")}b(e.2N){b(D=="1s"){8.n.f({R:"3P",5n:"5K",i:"1M",1s:"1M","2w":"k",q:"3c%",1w:(-1*C.p)+"j 0 0 0"});8.n.28.2m="3K"}13{8.n.f({R:"3R","2w":"2i",1w:0})}}}8.1r=B},R:c(B){b(!8.1b){b(!8.2H()){O}}e.2J(8);b(e.1n){h A=8.o.21();b(!8.2x||8.2x.p!=A.p||8.2x.q!=A.q){8.1v.f({q:A.q+"j",p:A.p+"j"})}8.2x=A}b(8.9.Y){h J,H;b(8.20){h K=17.1E.2D(),C=B.2h||{};h G,I=2;3O(8.20.4d()){U"5O":U"5i":G={x:0-I,y:0-I};18;U"5Q":G={x:0,y:0-I};18;U"5R":U"5S":G={x:I,y:0-I};18;U"5T":G={x:I,y:0};18;U"5U":U"5e":G={x:I,y:I};18;U"5W":G={x:0,y:I};18;U"5b":U"5a":G={x:0-I,y:I};18;U"5Z":G={x:0-I,y:0};18}G.x+=8.9.1g.x;G.y+=8.9.1g.y;J=P.11({1g:G},{m:8.9.Y.1q,20:8.20,1z:{i:C.1H||22.1H(B)-K.i,k:C.1F||22.1F(B)-K.k}});H=e.Y(8.o,8.15,J);b(8.9.1E){h M=8.3a(H),L=M.1r;H=M.R;H.k+=L.1h?2*X.37(G.x-8.9.1g.x):0;H.i+=L.1h?2*X.37(G.y-8.9.1g.y):0;b(8.n&&(8.1r.1e!=L.1e||8.1r.1h!=L.1h)){8.2g(L)}}H={k:H.k+"j",i:H.i+"j"};8.o.f(H)}13{J=P.11({1g:8.9.1g},{m:8.9.Y.1q,15:8.9.Y.15});H=e.Y(8.o,8.15,P.11({R:1l},J));H={k:H.k+"j",i:H.i+"j"}}b(8.T){h E=e.Y(8.T,8.15,P.11({R:1l},J))}b(e.1n){8.1v.f(H)}}13{h F=8.15.2t(),C=B.2h||{},H={k:((8.9.1K)?F[0]:C.1F||22.1F(B))+8.9.1g.x,i:((8.9.1K)?F[1]:C.1H||22.1H(B))+8.9.1g.y};b(!8.9.1K&&8.m!==8.15){h D=8.m.2t();H.k+=-1*(D[0]-F[0]);H.i+=-1*(D[1]-F[1])}b(!8.9.1K&&8.9.1E){h M=8.3a(H),L=M.1r;H=M.R;b(8.n&&(8.1r.1e!=L.1e||8.1r.1h!=L.1h)){8.2g(L)}}H={k:H.k+"j",i:H.i+"j"};8.o.f(H);b(8.T){8.T.f(H)}b(e.1n){8.1v.f(H)}}},3a:c(C){h E={1e:10,1h:10},D=8.o.21(),B=17.1E.2D(),A=17.1E.21(),G={k:"q",i:"p"};3i(h F 3Q G){b((C[F]+D[G[F]]-B[F])>A[G[F]]){C[F]=C[F]-(D[G[F]]+(2*8.9.1g[F=="k"?"x":"y"]));b(8.n){E[e.3A[G[F]]]=1l}}}O{R:C,1r:E}}});P.11(X,{45:c(G,H){h F=23[2]||8.9,B=F.1o,E=F.1i,D=s r("57",{u:"64"+H.2B(),q:E+"j",p:E+"j"}),A={i:(H.3I(0)=="t"),k:(H.3I(1)=="l")};b(D&&D.3h&&D.3h("2d")){G.N(D);h C=D.3h("2d");C.54=F.1L;C.53((A.k?B:E-B),(A.i?B:E-B),B,0,6a.52*2,1l);C.51();C.3F((A.k?B:0),0,E-B,E);C.3F(0,(A.i?B:0),E,E-B)}13{G.N(s r("S").f({q:E+"j",p:E+"j",1w:0,2I:0,2m:"3K",R:"3P",4Z:"2o"}).N(s r("v:4Y",{4X:F.1L,4W:"4V",4U:F.1L,4T:(B/E*0.5).4S(2)}).f({q:2*E-1+"j",p:2*E-1+"j",R:"3R",k:(A.k?0:(-1*E))+"j",i:(A.i?0:(-1*E))+"j"})))}}});r.6k({26:c(C,B){C=$(C);h A=P.11({3E:"i k",3q:"4Q-3q",3o:"4O",1L:""},23[2]||{});C.f(e.1n?{4N:"4M:6s.4K.6u(2b=\'"+B+"\'\', 3o=\'"+A.3o+"\')"}:{4J:A.1L+" 30("+B+") "+A.3E+" "+A.3q});O C}});X.4h={Q:c(){e.2J(8);8.2v();h D={};b(8.9.Y){D.2h={1F:0,1H:0}}13{h A=8.15.2t(),C=8.15.3H(),B=17.1E.2D();A.k+=(-1*(C[0]-B[0]));A.i+=(-1*(C[1]-B[1]));D.2h={1F:A.k,1H:A.i}}b(8.9.1m){8.2O(D)}13{8.24(D)}8.1C()}};X.11=c(A){A.m.1P={};P.11(A.m.1P,{Q:X.4h.Q.1j(A),V:A.V.1j(A),1J:e.1J.1j(e,A.m)})};X.3U();',62,406,"||||||||this|options||if|function||Tips|setStyle||var|top|px|left||element|stem|wrapper|height|width|Element|new||className|||||||||||||||||||insert|return|Object|show|position|div|loader|case|hide|images|Prototip|hook||false|extend|title|else||target||document|break|closeButton|mouseout|tooltip|visible|showOn|horizontal|observe|offset|vertical|border|bind|mouseover|true|ajax|fixIE|radius|useEvent|tip|stemInverse|bottom|zIndex|content|iframeShim|margin|hideOn|bindAsEventListener|mouse|stopObserving|delay|hideAfter|tips|viewport|pointerX|clearTimer|pointerY|orientation|remove|fixed|backgroundColor|auto|hideTargets|visibility|prototip|invoke|eventToggle|mouseleave|stemImage|capture|borderTop|borderFrame|prototip_Corner|middle|click|mouseHook|getDimensions|Event|arguments|showDelayed|Prototype|setPngBackground|toolbar|style|mouseenter|null|src|clone||toLowerCase|_inverse|positionStem|fakePointer|none|close|match|png|display|prototip_CornerWrapper|hidden|initialize|mousemove|Browser|wrap|cumulativeOffset|eventPosition|cancelHideAfter|float|iframeShimDimensions|ajaxContentLoading|ajaxHideEvent|isElement|capitalize|eventCheckDelay|getScrollOffsets|addClassName|isString|zIndexTop|build|padding|raise|clearfix|push|body|WebKit419|ajaxShow|convertVersionString|getStyle|unload|window|borderCenter|inverseStem|onComplete|borderMiddle|select|include|default|url|right|loaded|Styles|add|activityLeave|activityEnter|toggleInt|event|hideElement|getPositionWithinViewport|eventShow|100|_update|IE|removeVisible|length|getContext|for|replace|borderColor|borderRow|each|li|sizingMethod|stemWrapper|repeat|_build|_isBuilding|find|parseFloat|9500px|activate|setup|fixSafari2|member|_stemTranslation|hideOthers|require|specialEvent|align|fillRect|dom|cumulativeScrollOffset|charAt|create|block|afterHide|fire|Timer|switch|relative|in|absolute|ajaxContentLoaded|ajaxHide|start|buttonEvent|Action|namespaces|On|toggle|eventHide|getWidth|update|input|prototip_Fill|createCorner|hideAll|addVisibile|borderBottom|_highest|prototip_Between|without|_|toUpperCase|stemBox|deactivate|throw|Methods|REQUIRED_|removeAll|WebKit|Version|userAgent|navigator|opacity|undefined|frameBorder|javascript|iframe|9500|exec|typeof|MSIE|RegExp|script|tagName|area|emptyFunction|head|VML|endsWith|styles|js|behavior|addRule|background|Microsoft|closeButtons|progid|filter|scale|createStyleSheet|no|000000|toFixed|arcSize|strokeColor|1px|strokeWeight|fillcolor|roundrect|overflow||fill|PI|arc|fillStyle|cannot|available|canvas|not|Class|LEFTBOTTOM|BOTTOMLEFT|Tip|vml|BOTTOMRIGHT|leftMiddle|abs|bottomMiddle|TOPLEFT|rightBottom|com|bottomRight|leftBottom|clear|bottomLeft|rightMiddle|catch|microsoft|topMiddle|parentNode|rightTop|clearTimeout|topRight|try|schemas|showTimer|Request|Ajax|shown|hideAfterTimer|while|ajaxTimer|marginTop|loaderTimer|responseText|relatedTarget|both|urn|stop|blur|LEFTTOP|findElement|TOPMIDDLE|TOPRIGHT|RIGHTTOP|RIGHTMIDDLE|RIGHTBOTTOM|REQUIRED_Prototype|BOTTOMMIDDLE|hideAction|close_hover|LEFTMIDDLE|textarea|isNumber|_captureTroubleElements|br|cornerCanvas|bl|indexOf|tr|tl|prototip_CornerWrapperBottomRight|Math|cloneNode|prototip_CornerWrapperBottomLeft|prototip_CornerWrapperTopRight|times|prototip_BetweenCorners|prototip_CornerWrapperTopLeft|parseInt|test|ul|addMethods|inline|MIDDLE|prototip_StemImage|prototip_StemBox|requires|prototip_StemWrapper|prototip_Stem|DXImageTransform|gif|AlphaImageLoader|prototipLoader|evaluate|https".split("|"),0,{}));