function ajax_item(e){if(typeof e=='string')e=document.getElementById(e);return e};function collect(a,f){var n=[];for(var i=0;i<a.length;i++){var v=f(a[i]);if(v!=null)n.push(v)}return n};ajax={};ajax.x=function(){try{return new ActiveXObject('Msxml2.XMLHTTP')}catch(e){try{return new ActiveXObject('Microsoft.XMLHTTP')}catch(e){return new XMLHttpRequest()}}};ajax.serialize=function(f)
{var g=function(n)
{return f.getElementsByTagName(n)};var nv=function(e)
{if(e.name)
{return encodeURIComponent(e.name)+'='+encodeURIComponent(e.value);}else{return'';}};var i=collect(g('input'),function(i){if((i.type!='radio'&&i.type!='checkbox')||i.checked)return nv(i)});var s=collect(g('select'),nv);var t=collect(g('textarea'),nv);return i.concat(s).concat(t).join('&');};ajax.send=function(u,f,m,a){var x=ajax.x();x.open(m,u,true);x.onreadystatechange=function(){if(x.readyState==4)f(x.responseText)};if(m=='POST')x.setRequestHeader('Content-type','application/x-www-form-urlencoded');x.send(a)};ajax.get=function(url,func){ajax.send(url,func,'GET')};ajax.gets=function(url){var x=ajax.x();x.open('GET',url,false);x.send(null);return x.responseText};ajax.post=function(url,func,args){ajax.send(url,func,'POST',args)};ajax.update=function(url,elm){var e=ajax_item(elm);var f=function(r){e.innerHTML=r};ajax.get(url,f)};ajax.submit=function(url,elm,frm){var e=ajax_item(elm);var f=function(r){e.innerHTML=r};ajax.post(url,f,ajax.serialize(frm))};;eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.Q.b=5(E,16){4 1={E:E,A:\'29\',F:\'F\',i:\'Y\',g:\'X\',k:\'X\',z:\'12\',O:\'l\',1j:\'28\',1k:\'26...\',D:\'25 24 23\',s:{},n:{}};3(16){$.N(1,16)}4 13=$.b.f[1.i].13||5(){};4 a=$.b.f[1.i].a||5(){};4 L=$.b.f[1.i].L||$.b.f[\'C\'].L;4 x=$.b.f[1.i].x||$.b.f[\'C\'].x;4 u=$.b.f[1.i].u||$.b.f[\'C\'].u;4 h=$.b.f[1.i].h||$.b.f[\'C\'].h;4 U=1.U||5(){};3(!$.y($(7)[1.z])){$.Q[1.z]=5(Q){q Q?7.22(1.z,Q):7.21(1.z)}}$(7).j(\'20\',1.1Z);1.1s=\'X\'==1.g;1.1r=\'X\'==1.k;q 7.17(5(){4 2=7;4 1u=$(2).g();4 1t=$(2).k();3(!$.T($(7).9())){$(7).9(1.D)}$(7)[1.z](5(e){3(2.M){q}3(0==$(2).g()){1.g=1u;1.k=1t}c{3(1.g!=\'S\'){1.g=1.1s?$(2).g():1.g}3(1.k!=\'S\'){1.k=1.1r?$(2).k():1.k}}3($(7).9().1q().1p(/;/,\'\')==1.D.1q().1p(/;/,\'\')){$(7).9(\'\')}2.M=1l;2.w=$(2).9();$(2).9(\'\');4 8=$(\'<8/>\');3(1.14){3(\'1o\'==1.14){8.j(\'15\',$(2).j(\'15\'))}c{8.j(\'15\',1.14)}}3(1.H){3(\'1o\'==1.H){8.j(\'H\',$(2).j(\'H\'));8.1n(\'1m\',$(2).1n(\'1m\'))}c{8.j(\'H\',1.H)}}4 6=u.d(8,[1,2]);4 G;3(1.1i){4 t=1f(5(){6.1g=1l;x.d(8,[1.1k,1,2])},1Y);4 s={};s[1.F]=2.F;3($.y(1.s)){$.N(s,1.s.d(2,[2.w,1]))}c{$.N(s,1.s)}$.1X({i:1.1j,1W:1.1i,P:s,1V:v,1U:5(1h){1T.1e(t);G=1h;6.1g=v}})}c 3(1.P){G=1.P;3($.y(1.P)){G=1.P.d(2,[2.w,1])}}c{G=2.w}x.d(8,[G,1,2]);6.j(\'A\',1.A);L.d(8,[1,2]);$(2).p(8);13.d(8,[1,2]);$(\':6:1S:1R:1b\',8).1Q();3(1.o){6.o()}6.1P(5(e){3(e.1O==27){e.1d();h.d(8,[1,2])}});4 t;3(\'l\'==1.O){6.W(5(e){t=1f(5(){h.d(8,[1,2])},1N)})}c 3(\'a\'==1.O){6.W(5(e){8.a()})}c 3($.y(1.O)){6.W(5(e){1.O.d(2,[6.B(),1])})}c{6.W(5(e){})}8.a(5(e){3(t){1e(t)}e.1d();3(v!==a.d(8,[1,2])){3($.y(1.E)){4 V=1.E.d(2,[6.B(),1]);$(2).9(V);2.M=v;U.d(2,[2.1c,1]);3(!$.T($(2).9())){$(2).9(1.D)}}c{4 n={};n[1.A]=6.B();n[1.F]=2.F;3($.y(1.n)){$.N(n,1.n.d(2,[2.w,1]))}c{$.N(n,1.n)}3(\'1M\'==1.1L){n[\'1K\']=\'1J\'}$(2).9(1.1I);$.1H(1.E,n,5(V){$(2).9(V);2.M=v;U.d(2,[2.1c,1]);3(!$.T($(2).9())){$(2).9(1.D)}})}}q v})});7.h=5(){$(2).9(2.w);2.M=v;3(!$.T($(2).9())){$(2).9(1.D)}}})};$.b={f:{C:{u:5(1,m){4 6=$(\'<6 i="1G">\');$(7).p(6);q(6)},x:5(K,1,m){$(\':6:1b\',7).B(K)},h:5(1,m){m.h()},L:5(1,m){4 8=7;3(1.a){3(1.a.1a(/>$/)){4 a=$(1.a).12(5(){3(a.j("i")!="a"){8.a()}});}c{4 a=$(\'<19 i="a">\');a.9(1.a)}$(7).p(a)}3(1.l){3(1.l.1a(/>$/)){4 l=$(1.l);}c{4 l=$(\'<19 i="l">\');l.9(1.l)}$(7).p(l);$(l).12(5(z){3($.y($.b.f[1.i].h)){4 h=$.b.f[1.i].h}c{4 h=$.b.f[\'C\'].h}h.d(8,[1,m]);q v})}}},Y:{u:5(1,m){4 6=$(\'<6>\');3(1.g!=\'S\'){6.g(1.g)}3(1.k!=\'S\'){6.k(1.k)}6.j(\'1F\',\'1E\');$(7).p(6);q(6)}},r:{u:5(1,m){4 r=$(\'<r>\');3(1.11){r.j(\'11\',1.11)}c{r.k(1.k)}3(1.10){r.j(\'10\',1.10)}c{r.g(1.g)}$(7).p(r);q(r)}},o:{u:5(1,m){4 o=$(\'<o>\');$(7).p(o);q(o)},x:5(K,1,m){3(1D==K.1C){1B(\'4 I = \'+K);1A(4 J 1z I){3(!I.1y(J)){18}3(\'R\'==J){18}4 Z=$(\'<Z>\').B(J).p(I[J]);$(\'o\',7).p(Z)}}$(\'o\',7).1x().17(5(){3($(7).B()==I[\'R\']||$(7).Y()==m.w){$(7).j(\'R\',\'R\')}})}}},1w:5(A,6){$.b.f[A]=6}}})(1v);',62,134,'|settings|self|if|var|function|input|this|form|html|submit|editable|else|apply||types|width|reset|type|attr|height|cancel|original|submitdata|select|append|return|textarea|loaddata||element|false|revert|content|isFunction|event|name|val|defaults|placeholder|target|id|input_content|style|json|key|string|buttons|editing|extend|onblur|data|fn|selected|none|trim|callback|str|blur|auto|text|option|cols|rows|click|plugin|cssclass|class|options|each|continue|button|match|first|innerHTML|preventDefault|clearTimeout|setTimeout|disabled|result|loadurl|loadtype|loadtext|true|display|css|inherit|replace|toLowerCase|autoheight|autowidth|savedheight|savedwidth|jQuery|addInputType|children|hasOwnProperty|in|for|eval|constructor|String|off|autocomplete|hidden|post|indicator|put|_method|method|PUT|500|keyCode|keydown|focus|enabled|visible|window|success|async|url|ajax|100|tooltip|title|trigger|bind|edit|to|Click|Loading||GET|value'.split('|'),0,{}));var testsuccess=0;var lnid=new Array();function categorylist(url)
{self.location=url;}
var noresults=function(results)
{return true;}
function roundNumber(num,dec){var result=Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);return result;}
var getresults=function(results)
{eval(results);if(window.drag_and_drop_cart_updater)
{drag_and_drop_cart_updater();}
if(document.getElementById('loadingimage')!=null)
{document.getElementById('loadingindicator').style.visibility='hidden';}
else if(document.getElementById('alt_loadingimage')!=null)
{document.getElementById('alt_loadingindicator').style.visibility='hidden';}
if((document.getElementById('sliding_cart')!=null)&&(document.getElementById('sliding_cart').style.display=='none'))
{jQuery("#fancy_collapser").attr("src",(WPSC_URL+"/images/minus.png"));jQuery("#sliding_cart").show("fast",function(){ajax.post("index.php",noresults,"ajax=true&set_slider=true&state=1");});}
if(document.getElementById('fancy_notification')!=null)
{jQuery('#loading_animation').css("display",'none');}}
function set_billing_country(html_form_id,form_id){var billing_region='';country=jQuery(("div#"+html_form_id+" select[@class=current_country]")).val();region=jQuery(("div#"+html_form_id+" select[@class=current_region]")).val();if(/[\d]{1,6}/.test(region)){billing_region="&billing_region="+region;}
ajax.post("index.php",getresults,("ajax=true&changetax=true&form_id="+form_id+"&billing_country="+country+billing_region));}
function submitform(frm,show_notification)
{if(show_notification!=false)
{show_notification=true;}
ajax.post("index.php?ajax=true&user=true",getresults,ajax.serialize(frm));if(document.getElementById('loadingimage')!=null)
{document.getElementById('loadingimage').src=WPSC_URL+'/images/indicator.gif';document.getElementById('loadingindicator').style.visibility='visible';}
else if(document.getElementById('alt_loadingimage')!=null)
{document.getElementById('alt_loadingimage').src=WPSC_URL+'/images/indicator.gif';document.getElementById('alt_loadingindicator').style.visibility='visible';}
if((show_notification==true)&&(document.getElementById('fancy_notification')!=null))
{var options={margin:1,border:1,padding:1,scroll:1};form_button_id=frm.id+"_submit_button";var container_offset={};new_container_offset=jQuery('#products_page_container').offset(options,container_offset);if(container_offset['left']==null){container_offset['left']=new_container_offset.left;container_offset['top']=new_container_offset.top;}
var button_offset={};new_button_offset=jQuery('#'+form_button_id).offset(options,button_offset)
if(button_offset['left']==null){button_offset['left']=new_button_offset.left;button_offset['top']=new_button_offset.top;}
jQuery('#fancy_notification').css("left",(button_offset['left']-container_offset['left']+10)+'px');jQuery('#fancy_notification').css("top",((button_offset['top']-container_offset['top'])-60)+'px');jQuery('#fancy_notification').css("display",'block');jQuery('#loading_animation').css("display",'block');jQuery('#fancy_notification_content').css("display",'none');}
return false;}
function emptycart(){ajax.post("index.php",getresults,"ajax=true&user=true&emptycart=true&current_page="+window.location+"");if(document.getElementById('loadingimage')!=null){document.getElementById('loadingimage').src=WPSC_URL+'/images/indicator.gif';document.getElementById('loadingindicator').style.visibility='visible';}else if(document.getElementById('alt_loadingimage')!=null){document.getElementById('alt_loadingimage').src=WPSC_URL+'/images/indicator.gif';document.getElementById('alt_loadingindicator').style.visibility='visible';}}
function show_additional_description(id,image_id)
{currentstate=document.getElementById(id).style.display;if(currentstate!='inline')
{document.getElementById(id).style.display='inline';document.getElementById(image_id).src=WPSC_URL+'/images/icon_window_collapse.gif';}
else
{document.getElementById(id).style.display='none';document.getElementById(image_id).src=WPSC_URL+'/images/icon_window_expand.gif';}
return false;}
function prodgroupswitch(state)
{if(state=='brands')
{jQuery('.categorydisplay').css("display",'none');jQuery('.branddisplay').css("display",'block');}
else if(state=='categories')
{jQuery('.categorydisplay').css("display",'block');jQuery('.branddisplay').css("display",'none');}
return false;}
var previous_rating;function ie_rating_rollover(id,state)
{target_element=document.getElementById(id);switch(state)
{case 1:previous_rating=target_element.style.background;target_element.style.background="url("+WPSC_URL+"/images/blue-star.gif)";break;default:if(target_element.style.background!="url("+WPSC_URL+"/images/gold-star.gif)")
{target_element.style.background=previous_rating;}
break;}}
var apply_rating=function(results)
{outarr=results.split(",");for(i=1;i<=outarr[1];i++)
{id="star"+outarr[0]+"and"+i+"_link";document.getElementById(id).style.background="url("+WPSC_URL+"/images/gold-star.gif)";}
for(i=5;i>outarr[1];i--)
{id="star"+outarr[0]+"and"+i+"_link";document.getElementById(id).style.background="#c4c4b8";}
lnid[outarr[0]]=1;rating_id='rating_'+outarr[0]+'_text';if(document.getElementById(rating_id).innerHTML!="Your Rating:")
{document.getElementById(rating_id).innerHTML="Your Rating:";}
saved_id='saved_'+outarr[0]+'_text';document.getElementById(saved_id).style.display="inline";update_vote_count(outarr[0]);}
function hide_save_indicator(id)
{document.getElementById(id).style.display="none";}
function rate_item(prodid,rating)
{ajax.post("index.php",apply_rating,"ajax=true&rate_item=true&product_id="+prodid+"&rating="+rating);}
function update_vote_count(prodid)
{var update_vote_count=function(results)
{outarr=results.split(",");vote_count=outarr[0];prodid=outarr[1];vote_count_id='vote_total_'+prodid;document.getElementById(vote_count_id).innerHTML=vote_count;}
ajax.post("index.php",update_vote_count,"ajax=true&get_rating_count=true&product_id="+prodid);}
function submit_change_country()
{document.forms.change_country.submit();}
function update_preview_url(prodid)
{image_height=document.getElementById("image_height").value;image_width=document.getElementById("image_width").value;if(((image_height>0)&&(image_height<=1024))&&((image_width>0)&&(image_width<=1024)))
{new_url="index.php?productid="+prodid+"&height="+image_height+"&width="+image_width+"";document.getElementById("preview_link").setAttribute('href',new_url);}
else
{new_url="index.php?productid="+prodid+"";document.getElementById("preview_link").setAttribute('href',new_url);}
return false;}
function change_variation(product_id,variation_ids,special){value_ids='';special_prefix="";if(special==true){form_id="specials_"+product_id;}else{form_id="product_"+product_id;}
for(var i in variation_ids){if(!isNaN(parseInt(i))){variation_name="variation["+variation_ids[i]+"]";value_ids+="&variation[]="+document.getElementById(form_id).elements[variation_name].value;}}
if(special==true){var return_price=function(results){eval(results);if(product_id!=null){target_id="special_product_price_"+product_id;buynow_id="BB_BuyButtonForm"+product_id;document.getElementById(target_id).firstChild.innerHTML=price;if(price.substring(27,price.indexOf("&"))!='')
document.getElementById(buynow_id).item_price_1.value=price.substring(27,price.indexOf("&"));}}}else{var return_price=function(results){eval(results);if(product_id!=null){target_id="product_price_"+product_id;buynow_id="BB_BuyButtonForm"+product_id;if(jQuery("input#"+target_id).attr('type')=='text'){jQuery("input#"+target_id).val(numeric_price);}else{jQuery("#"+target_id+" span.pricedisplay").html(price);}}}}
ajax.post("index.php",return_price,"ajax=true&get_updated_price=true&product_id="+product_id+value_ids);}
function shopping_cart_collapser(){switch(jQuery("#sliding_cart").css("display")){case'none':jQuery("#sliding_cart").slideToggle("fast",function(){ajax.post("index.php",noresults,"ajax=true&set_slider=true&state=1");jQuery("#fancy_collapser").attr("src",(WPSC_URL+"/images/minus.png"));});break;default:jQuery("#sliding_cart").slideToggle("fast",function(){ajax.post("index.php",noresults,"ajax=true&set_slider=true&state=0");jQuery("#fancy_collapser").attr("src",(WPSC_URL+"/images/plus.png"));});break;}
return false;}
function show_details_box(id,image_id){state=document.getElementById(id).style.display;if(state!='block'){document.getElementById(id).style.display='block';document.getElementById(image_id).src=WPSC_URL+"/images/icon_window_collapse.gif";}else{document.getElementById(id).style.display='none';document.getElementById(image_id).src=WPSC_URL+"/images/icon_window_expand.gif";}
return false;}
var register_results=function(results){jQuery("div#TB_ajaxContent").html(results);jQuery('div#checkout_login_box').css("border",'1px solid #339933');jQuery('div#checkout_login_box').css("background-color",'#e8fcea');}
function submit_register_form(frm)
{jQuery('img#register_loading_img').css("display",'inline');ajax.post("index.php?ajax=true&action=register",register_results,ajax.serialize(frm));return false;}
var fadeInSuggestion=function(suggestionBox,suggestionIframe){$(suggestionBox).fadeTo(300,1);};var fadeOutSuggestion=function(suggestionBox,suggestionIframe){$(suggestionBox).fadeTo(300,0);};function change_pics(command){location1=window.location.href;if(command==1){document.getElementById('out_view_type').innerHTML="<input type='hidden' id='view_type' name='view_type' value='default'>";document.getElementById('out_default_pic').innerHTML="<img id='default_pic' src='"+WPSC_URL+"/images/default-on.gif'>";document.getElementById('out_grid_pic').innerHTML="<img id='grid_pic' style='cursor:pointer;' onclick='change_pics(0)' src='"+WPSC_URL+"/images/grid-off.gif'>";if(location1.search(/view_type/)!=-1){$new_location=location1.replace("grid","default");}else{if(location1.search(/\?/)!=-1){$new_location=location1+"&view_type=default";}else{$new_location=location1+"?view_type=default";}}
window.location=$new_location;}else{document.getElementById('out_view_type').innerHTML="<input type='hidden' id='view_type' name='view_type' value='grid'>";document.getElementById('out_default_pic').innerHTML="<img id='default_pic'  style='cursor:pointer;' onclick='change_pics(1)' src='"+WPSC_URL+"/images/default-off.gif'>";document.getElementById('out_grid_pic').innerHTML="<img id='grid_pic' src='"+WPSC_URL+"/images/grid-on.gif'>";if(location1.search(/view_type/)!=-1){$new_location=location1.replace("default","grid");}else{if(location1.search(/\?/)!=-1){$new_location=location1+"&view_type=grid";}else{$new_location=location1+"?view_type=grid";}}
window.location=$new_location;}}
function log_buynow(form){id=form.product_id.value;price=form.item_price_1.value;ajax.post("index.php",noresults,"ajax=true&buynow=true&product_id="+id+"price="+price);}
function gotoexternallink(link){window.location=link;}
function manage_extras(product_id,extras_id,special){value_ids='';special_prefix="";extra_idss='';document.getElementById('extras_indicator'+product_id+extras_id).style.display='block';if(special==true){form_id="specials_"+product_id;}else{form_id="product_"+product_id;}
jQuery(document).ready(function(){extra_ids=jQuery("input.extras_"+product_id+":checked");});jQuery.each(extra_ids,function(key,value){extra_idss+="&extra[]="+extra_ids[key].value;});pm='stay';if(special==true){var return_price=function(results){eval(results);if(product_id!=null){target_id="special_product_price_"+product_id;buynow_id="BB_BuyButtonForm"+product_id;document.getElementById(target_id).firstChild.innerHTML=price;if(price.substring(27,price.indexOf("&"))!='')
document.getElementById(buynow_id).item_price_1.value=price.substring(27,price.indexOf("&"));}
document.getElementById('extras_indicator'+product_id+extras_id).style.display='none';}}else{var return_price=function(results){eval(results);if(product_id!=null){target_id="product_price_"+product_id;buynow_id="BB_BuyButtonForm"+product_id;document.getElementById(target_id).firstChild.innerHTML=price;if(price.substring(27,price.indexOf("&"))!='')
document.getElementById(form_id).item_price_1.value=price.substring(27,price.indexOf("&"));}
document.getElementById('extras_indicator'+product_id+extras_id).style.display='none';}}
ajax.post("index.php",return_price,"ajax=true&get_updated_price=true&pm="+pm+"&product_id="+product_id+extra_idss);}
function store_list(){address=document.getElementById('user_address').value;city=document.getElementById('user_city').value;if((address!='')&&(city!='')){document.getElementById('gloc_loading').style.display='block';ajax.post("index.php",return_store_list,"ajax=true&store_list=true&addr="+address+"&city="+city);}}
var return_store_list=function(results){document.getElementById('gloc_storelist').innerHTML=results;document.getElementById('gloc_loading').style.display='none';return true;}
function autocomplete(event){if(!event){event=window.event;}
if(event.keyCode){keyPressed=event.keyCode;}else if(event.which){keyPressed=event.which;}
str=document.getElementById('wpsc_search_autocomplete').value;if(str!=''){ajax.post("index.php",autocomplete_results,"wpsc_live_search=true&keyword="+str);}else{jQuery('#blind_down').slideUp(100);}}
var autocomplete_results=function(results){document.getElementById('blind_down').innerHTML=results;if(document.getElementById('blind_down').style.display!='block'){jQuery('#blind_down').slideDown(200);}
return true;}
function statusTextKeyPress(event){if(!event){event=window.event;}
if(event.keyCode){keyPressed=event.keyCode;}else if(event.which){keyPressed=event.which;}
if(keyPressed==9){return false;}
if(keyPressed==13){newstatus=document.getElementById('status_change_text').value;ajax.post("index.php",submit_user_status,"ajax=true&submitstatus=true&status="+newstatus);return false;}
if(keyPressed==27){document.getElementById('edit_status_select').style.display='none';return false;}
return true;}
function switchmethod(key,key1){total=document.getElementById("shopping_cart_total_price").value;ajax.post("index.php",usps_method_switch,"ajax=true&uspsswitch=true&key1="+key1+"&key="+key+"&total="+total);}
var usps_method_switch=function(results){shipping=results.split('---');shipping1=shipping[1];jQuery("#checkout_total").html(shipping[0]);jQuery('.total > .pricedisplay').remove();jQuery('.total > .totalhead').after(shipping[0]);jQuery('.postage > .pricedisplay').remove();jQuery('.postage > .postagehead').after(shipping1);}
function add_meta_box(results){jQuery(".wpsc_buy_button").before(results);jQuery('.time_requested').datepicker({dateFormat:'yy-mm-dd'});}
function submit_purchase(){document.forms.ideal_form.submit();}
function do_nothing(){return;}
jQuery(document).ready(function(){if(jQuery("#openair").val()==1){var max_height=0;var min_offset=9999;var max_left_offset=0;var top_offset=0;jQuery("div.product_grid_item").each(function(){jQuery(this).css('margin','0');if(jQuery(this).height()>max_height){max_height=jQuery(this).height();}
var offset=jQuery(this).offset();if(offset.left<=min_offset){min_offset=offset.left;}
if(offset.top>top_offset){top_offset=offset.top;}
if(offset.left>max_left_offset){max_left_offset=offset.left;}});jQuery("div.product_grid_item:last").each(function(){var offset=jQuery(this).offset();if(offset.left!=max_left_offset){jQuery(this).css('border-right','1px solid #ddd');}});jQuery("div.product_grid_item").each(function(){var offset=jQuery(this).offset();if(offset.left==min_offset){setTimeout('do_nothing',200);jQuery(this).css('border-left','0px solid #ddd');}
if(offset.top==top_offset){jQuery(this).css('border-bottom','0px solid #ddd');}
jQuery(this).height(max_height+30);});}
jQuery("div.custom_gateway table").each(function(){if(jQuery(this).css('display')=='none'){jQuery('input',this).attr('disabled',true);}});jQuery("input.custom_gateway").change(function(){if(jQuery(this).attr('checked')==true){parent_div=jQuery(this).parents("div.custom_gateway");jQuery('table input',parent_div).attr('disabled',false);jQuery('table',parent_div).css('display','block');jQuery("div.custom_gateway table").not(jQuery('table',parent_div)).css('display','none');jQuery("div.custom_gateway table input").not(jQuery('table input',parent_div)).attr('disabled',true);}});});
