function drawBorder(c,a,b){$("#td1"+b+c).className="borderTopTD"}function Email2Phone(){if($("#divsubCellnumber").css("display")=="none"){$("#divsubCellnumber").css("display","");$("#divsubEmail").css("display","none");$("#aEorM").html("Subscribe to get mail on your e-Mail");$("#EorM").html("Your Cellphone:");$("#sendType").val("M")}else{$("#divsubCellnumber").css("display","none");$("#divsubEmail").css("display","");$("#aEorM").html("Subscribe to get SMS on your phone");$("#EorM").html("Your Email:");$("#sendType").val("E")}}function navsort(a){if($("#categores")){ajax.call("content",a,$("#categores").val())}else{ajax.call("content",a)}}function hover(a,b){if(a==1){$("#tdl"+b).css("background","url(/i/frontend/lt_h.png) no-repeat");$("#tdm"+b).css("background","url(/i/frontend/mt_h.gif) repeat-x");$("#tdr"+b).css("background","url(/i/frontend/rt_h.png) no-repeat")}else{$("#tdl"+b).css("background","url(/i/frontend/lt.png) no-repeat");$("#tdm"+b).css("background","url(/i/frontend/mt.gif) repeat-x");$("#tdr"+b).css("background","url(/i/frontend/rt.png) no-repeat")}}function setClass(b,a){for(i=1;i<=$("#"+a).val();i++){if(b.substring(b.indexOf("_",0)+1,b.length)==i){$("#mb_"+i).className="bottom_menu_li_cur"}else{$("#mb_"+i).className="bottom_menu_li"}}}function moreRelated(b,a){for(i=b;i<=a;i++){if($("#a"+i)){$("#a"+i).css("display","")}}}function showMessageJS(a,c,b){if(a=="show"){$("#"+c).html(b)}else{$("#"+c).html("")}}function hideSubMenu(a,b){for(i=0;i<=a;i++){if(i==b){continue}if($("#sm"+i)){$("#sm"+i).addClass("hidden")}}}function setMainImageBorder(a){if(!$("#BoxDUserImage")){return}if(a==0){$("#BoxDUserImage").css("borderStyle","none");$("#BoxDUserImage").css("borderWidth","0px")}if(a==1){$("#BoxDUserImage").css("borderStyle","solid");$("#BoxDUserImage").css("borderWidth","1px")}if(a==2){$("#BoxDUserImage").css("borderStyle","solid");$("#BoxDUserImage").css("borderWidth","2px")}if(a==3){$("#BoxDUserImage").css("borderStyle","outset");$("#BoxDUserImage").css("borderWidth","2px")}if(a==4){$("#BoxDUserImage").css("borderStyle","dashed");$("#BoxDUserImage").css("borderWidth","2px")}if(a==5){$("#BoxDUserImage").css("borderStyle","dotted");$("#BoxDUserImage").css("borderWidth","1px")}if(a==6){$("#BoxDUserImage").css("borderStyle","dotted");$("#BoxDUserImage").css("borderWidth","2px")}}function setMinWidth(a,c){if(!$(a)||!$(c)){return}sWidth=$(a).offsetWidth;$(c).removeClass("hidden");tWidth=$(c).offsetWidth;var b=navigator.userAgent.toLowerCase();if(tWidth<sWidth){if(b.indexOf("msie")!=-1&&b.indexOf("opera")==-1&&b.indexOf("webtv")==-1){$("#"+c).css("width",sWidth+50+"px")}else{$("#"+c).css("min-width",sWidth+50+"px")}}else{if(b.indexOf("msie")!=-1&&b.indexOf("opera")==-1&&b.indexOf("webtv")==-1){$("div#"+c+" a.forIE").each(function(d){$("#"+d).css("width",tWidth+"px")})}}$("#"+c).addClass("hidden")}function getHeadZonesMaxHeight(){adv12Height=($("#headerAdvZones1")?$("#headerAdvZones1").offsetHeight:0);adv13Height=($("#headerAdvZones2")?$("#headerAdvZones2").offsetHeight:0);adv14Height=($("#headerAdvZones3")?$("#headerAdvZones3").offsetHeight:0);topLogoAboveHeight=($("#topLogoAbove")?$("#topLogoAbove").offsetHeight:0);max=adv12Height+topLogoAboveHeight;if(adv13Height>max&&adv13Height>adv14Height){max=adv13Height}if(adv14Height>max&&adv14Height>adv13Height){max=adv14Height}return max}function setHeaderHeight(a){advHeight=getHeadZonesMaxHeight();maxHeight=(a?a:120);if($("#headerSubContainer")&&(maxHeight<advHeight)){maxHeight=advHeight}if($("#headerSubContainer")){$("#headerSubContainer").css("height",maxHeight+"px")}if($("#headerAdvZones1")&&$("#td1")){$("#td1").css("height",maxHeight+"px")}if($("#headerAdvZones2")&&$("#td2")){$("#td2").css("height",maxHeight+"px")}if($("#headerAdvZones3")&&$("#td3")){$("#td3").css("height",maxHeight+"px")}};
