function clear_cookie(){cookieSet("checked[model]","");cookieSet("checked[ninc]","");cookieSet("checked[numbers]","");cookieSet("checked[einc]","");cookieSet("checked[equipment]","");cookieSet("checked[tarifs]","");cookieSet("checked[tinc]","")}clear_cookie();$(window).bind("load",function(){$("div#basic").slideViewerPro()});function checkbox_disabled(){var b=0;var c=0;$("input").each(function(i){if(this.type=="checkbox"&&this.id=="tarifs"){if(this.checked==""){b++}if(this.checked!=""){c++}}});$("input").each(function(i){if(this.type=="checkbox"&&this.id=="tarifs"){if(c!="0"&&this.checked==""){a="input[name="+this.id+"_"+this.value+"]";$(a).attr("disabled",true)}if(c=="0"){a="input[name="+this.id+"_"+this.value+"]";$(a).attr("disabled",false)}}})}function button_cart(b){clear_cookie();var c=$("#reload").serialize();$.post("/print/?page=/cart/"+b,c,function(a){$("#reload").html(a)})}function button_type(a,b,c){cookieSet("checked["+b+"]",a);cookieSet("unchecked["+b+"]","");load_page("/cart_fly/update.htm","#cart")}function button_numbers(){var a=new Array();var b=new Array();$("input:checked").each(function(i){if(this.type=="checkbox"&&this.name=="n_id[]"){a.push(this.value)}});$("input").each(function(i){if(this.type=="checkbox"&&this.checked==""&&this.name=="n_id[]"){b.push(this.value)}});cookieSet("checked[numbers]",a);cookieSet("unchecked[numbers]",b);load_page("/cart_fly/update.htm","#cart")}function cookieSet(a,b){$.cookie(a,b,{expires:null,path:"/"})}function cookieDel(a,b){$.cookie(a,null,{expires:null,path:"/"})}var zlastShow=-1;function ztoggle(a){tbl=document.getElementById("tbl"+a);if(tbl.style.display=="none"){try{tbl.style.display="table"}catch(e){tbl.style.display="inline"}zlastShow=a}else{tbl.style.display="none";zlastShow=-1}}function load(b,c,d){$("#load_pic").show();$("#hide_"+c).hide();var e=$("#go_"+c).serialize();$.post("/print/?page="+b,e,function(a){$("#go_"+c).html(a);$("#load_pic").hide()})}function load_page(b,c){var d=$(c).serialize();$.post("/print/?page="+b,d,function(a){$(c).html(a);fly_fancybox();decoGreyboxLinks()})}function set_checked(b){a="input[name="+b+"]";$(a).attr("checked",false);clear_cookie()}function load_page_unchecked(b,c,d){set_checked(d);clear_cookie();var e=$(c).serialize();$.post("/print/?page="+b,e,function(a){$(c).html(a)})}function fly_block(a){$.blockUI({message:$("#"+a),showOverlay:false,centerY:false,css:{width:"200px",top:"105px",right:"10px",left:"",border:"none",padding:"5px",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:0.8,color:"#fff"}})}function button(c,d,e){var f=new Array();var g=new Array();if(e!=""){$("input").each(function(i){if(this.type=="checkbox"&&this.id==e&&this.checked!=""){f.push(parseInt(this.value))}});$("input").each(function(i){if(this.type=="checkbox"&&this.checked==""&&this.id==e){g.push(parseInt(this.value));checkbox_disabled()}});if(c!=""&&d!=""){a="checked["+e+"]["+d+"]["+c+"]";b="unchecked["+e+"]["+d+"]["+c+"]";cookieSet(a,f);cookieSet(b,g);load_page("/numbers/sale/update."+c+"."+e+".."+d+".htm","#sale")}if(c==""&&d==""){a="checked["+e+"]";b="unchecked["+e+"]";cookieSet(a,f);cookieSet(b,g);load_page("/numbers/sale/update.htm","#sale")}}}
function Form_Click(){var s=$("#show_block").serialize();$.post("/print/?page=/travel-cards-left-js/index.htm",s,function(a){$("#tour_cards_new").html(a)})}function Form_Click_Full(){var s=$("#show_country").serialize();$.post("/print/?page=/travel-cards-main-js/index.htm",s,function(a){$("#tour_cards_full").html(a)})}