var status=true;var odd_types=new Array('1','2','x','u','o');function expandAll(SubMenuToShow,Arrow){obj=document.getElementById(SubMenuToShow);arr=document.getElementById(Arrow);visible=(obj.style.display!="none");if(visible){obj.style.display="none";arr.style.background='url(img/interface/arrow_down.png)';arr.style.backgroundRepeat='no-repeat';arr.style.backgroundPosition='0 3px';}
else{obj.style.display="block";arr.style.background='url(img/interface/arrow_up.png)';arr.style.backgroundRepeat='no-repeat';arr.style.backgroundPosition='0 3px';}}
function changeValue(element,element_value){obj=document.getElementById(element);if(obj.value=element_value){obj.value='';}
else{obj.value=document.getElementById(element).value;}}
function changeValue2(element,element_value){obj=document.getElementById(element);if(obj.value==''){obj.value=element_value;}}
function Uc(lang){agent.call('','Uc','Ucr',lang);}
function Ucr(src){document.getElementById('coupon_container').innerHTML=src;}
function ca(lang,a,p1,p2){if(a=='add_odd'||a=='clear_odd'){for(ind in odd_types){if(d=document.getElementById('o'+odd_types[ind]+'_'+p1)){d.firstChild.style.fontWeight='normal';d.firstChild.style.color='';d.style.backgroundColor='';}}
if(d=document.getElementById('o'+p2+'_'+p1)){if(a=='add_odd'){d.firstChild.style.fontWeight='bold';d.firstChild.style.color='#fff';d.style.backgroundColor='#4b7a24';}}}
agent.call('','Ca','Ucr',lang,a,p1,p2);}
function cl(lang,b){$(".BoxItem").find("*").css("font-weight","normal");$(".BoxItem").find("*").css("color","");$(".BoxItem").find("*").css("background-color","");agent.call('','Cl','Ucr',lang,b);}
