var tx=""; var hide_all_cats; function show_combo(combo_type,combo_condition,combo_place){ sR("doop.php?op=show_combo&combo_type="+combo_type+"&combo_condition="+combo_condition,"","",combo_place); } var thespeed=50; var out=1; var product=new Array(); var req=new Array(); var The_ID=new Array(); var vmid; var xMousePos=0,yMousePos=0,xMousePosMax=0,yMousePosMax = 0; function toggle(OBJECT,img_ID){if(img_ID && getobjbyid(img_ID)){var img_source=getobjbyid(img_ID).src.toString();}var obj=getobjbyid(OBJECT);if (obj.style.display=="" || obj.style.display=="block"){hide_now(OBJECT);if(img_ID && getobjbyid(img_ID))getobjbyid(img_ID).src=img_source.replace("up","down");}else{show_now(OBJECT);if(img_ID && getobjbyid(img_ID))getobjbyid(img_ID).src=img_source.replace("down","up");}} function alertSize() { if( typeof( window.innerWidth ) == 'number' ) { myWidth = window.innerWidth;myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight)) { myWidth = document.documentElement.clientWidth;myHeight = document.documentElement.clientHeight; } else if(document.body &&( document.body.clientWidth || document.body.clientHeight)) { myWidth = document.body.clientWidth;myHeight = document.body.clientHeight; } return (parseInt(myWidth)/2); } function hide(layer_id){ getobjbyid(layer_id).style.visibility='hidden'; } function poplayer(prod_id){ the_layer=getobjbyid('product_layer'); the_layer.style.visibility='visible'; var final_html=product[prod_id]; while(final_html.indexOf("<")!=-1) { final_html=final_html.replace("<","<"); } the_layer.innerHTML=final_html; } function get_mouse_pos(e) { getScrollXY(); if (document.layers) { xMousePos = e.pageX; yMousePos = e.pageY; xMousePosMax = window.innerWidth+window.pageXOffset; yMousePosMax = window.innerHeight+window.pageYOffset; } else if (document.all) { xMousePos = window.event.x+scrOfX; yMousePos = window.event.y+scrOfY; xMousePosMax = document.body.clientWidth+document.body.scrollLeft; yMousePosMax = document.body.clientHeight+document.body.scrollTop; } else if (document.getElementById) { xMousePos = e.pageX; yMousePos = e.pageY; xMousePosMax = window.innerWidth+window.pageXOffset; yMousePosMax = window.innerHeight+window.pageYOffset; } } function $(id){var obj = null;if(document.getElementById){obj = document.getElementById(id);} else if(document.all){obj = document.all[id];}return obj;} function getobjbyid(id){ var obj = null; if(document.getElementById){ obj = document.getElementById(id); }else if(document.all){ obj = document.all[id]; } return obj; } var current_property=""; var the_man=0; var M_TIMER=0; function returnPos(target){ var x = 0;var y = 0;var tempObj = new Object();var obj = (typeof target == "object" ? target : getobjbyid(target));while (obj.offsetParent != null) {x += obj.offsetLeft;y += obj.offsetTop;obj = obj.offsetParent;}x += obj.offsetLeft;y += obj.offsetTop;tempObj.x = x;tempObj.y = y;return tempObj;} document.onmousedown=function(){ if(out==1){ if (getobjbyid('product_layer2')) hide('product_layer2'); if (getobjbyid('ob')) getobjbyid('ob').style.visibility='visible'; } } var z=new Array(); var thespeed=50; function hide_now(obj_here) { x=getobjbyid(obj_here); ht=x.offsetHeight; thespeed=parseInt(parseInt(ht)/10)+1; getobjbyid(obj_here).style.height=parseInt(ht)+"px"; decrease(obj_here); } function show_now(obj_here) { x=getobjbyid(obj_here); x.style.display=""; x.style.overflow="visible"; x.style.visibility="visible"; x.style.height=""; ht=x.offsetHeight; thespeed=parseInt(parseInt(ht)/10)+2; x.style.overflow="hidden"; x.style.height="0px"; x.style.display=""; increase(ht,obj_here); } function decrease(obj_here,IndexOFz){ x.style.overflow='hidden'; x=getobjbyid(obj_here); ht=x.style.height; if (parseInt(ht)>(thespeed-1)) { ht=parseInt(ht)-thespeed; x.style.height=parseInt(ht)+"px"; if(!IndexOFz){ var IndexOFz=z.length; } z[IndexOFz]=setTimeout("decrease('"+obj_here+"',"+IndexOFz+")",30); } else { x.style.height=0+"px"; x.style.display="none"; x.style.visibility="hidden"; clearTimeout(z[IndexOFz]); } } function increase(hx,obj_here,IndexOFz){ x.style.overflow='hidden'; x=getobjbyid(obj_here); ht=x.style.height; if (parseInt(ht)<(parseInt(hx)-(thespeed-1))) { ht=parseInt(ht)+thespeed; x.style.height=parseInt(ht)+"px"; z[IndexOFz]=setTimeout("increase("+hx+",'"+obj_here+"',"+IndexOFz+")",30); } else { x.style.height=""; x.style.overflow='visible'; clearTimeout(z[IndexOFz]); } } var state=new Array(); function do_request(){ var FORM=getobjbyid("req_form"); var final_url=""; for(o=0;o < FORM.elements.length;o++){ if(FORM.elements[o].name!="") final_url=final_url+"&"+FORM.elements[o].name+"="+FORM.elements[o].value; } sR("doop.php?op=request_property",final_url,"POST","request_form"); return false; }