
function infosShow(){$('#infos div').fadeIn();$('#infos').animate({height:114},{duration:500}).addClass('o');infosCont();}
function infosHide(h){if(!isset(h)){h=20;}
$('#infos .cart').fadeOut();if($.trim($('#infos .improtantNotice').html())==''){$('#infos .improtantNotice').remove();}
$('#infos').animate({height:h},{duration:500}).removeClass('o').removeClass('loading');;}
function infosCont(){var o=$('#infos');if(o.html()==''){o.addClass('loading');var infosCont_r
$.get($('#ROOT').val()+'ajax.php',{'ajax':'1','act':'getHeaderInfos','URL':$('#URL').val(),'lang':$('#LANG').val()},function(infosCont_r){o.html(infosCont_r).removeClass('loading');});}else{o=$('#infos .cart .cont');if(o.hasClass('reload')){o.html('').addClass('loading');var infosCont_json;var infosCont_r;$.getJSON($('#ROOT').val()+'ajax.php',{'ajax':'1','act':'refresh_shipping_cart','lang':$('#LANG').val()},function(infosCont_json){infosCont_r='';if(infosCont_json.r=='OK!'){$.each(infosCont_json.cont,function(k,v){infosCont_r+='<li><a href="'+v.href+'">'+v.name+' X '+v.qty+'</a></li>';});}else{infosCont_r=infosCont_json.cont;}
o.html(infosCont_r).removeClass('loading').removeClass('reload');});}}}
function isset(o){if(typeof(o)!='undefined'){return true;}else{return false;}}
jQuery.fn.HTML=function(s){return(s)?this.before(s).remove():jQuery("<p>").append(this.eq(0).clone()).html();}


