var OP=(navigator.userAgent.indexOf("Opera")!=-1);var IE=(navigator.userAgent.indexOf("MSIE")!=-1&&!OP);var GK=(navigator.userAgent.indexOf("Gecko")!=-1);var SA=(navigator.userAgent.indexOf("Safari")!=-1);var DOM=document.getElementById;var tooltip=null;function TOOLTIP(){this.width=40;this.bgColor="#FFFFFF";this.textFont="Verdana";this.textSize=10;this.textColor="#000000";this.border="1px solid #394956";this.opacity=90;this.cursorDistance=16;this.text="";this.height=0;this.obj=null;this.active=false;this.create=function(){if(!this.obj){this.init()}var b=(this.textFont?"font-family:"+this.textFont+"; ":"")+(this.textSize?"font-size:"+this.textSize+"px; ":"")+(this.border?"border:"+this.border+"; ":"")+(this.textColor?"color:"+this.textColor+"; ":"");var a="<table border=0 cellspacing=0 cellpadding=4 width="+this.width+"><tr><td align=left"+(b?' style="'+b+'"':"")+">"+this.text+"</td></tr></table>";if(DOM||IE){this.obj.innerHTML=a}if(DOM){this.height=this.obj.offsetHeight}else{if(IE){this.height=this.obj.style.pixelHeight}}if(this.bgColor){this.obj.style.backgroundColor=this.bgColor}this.setOpacity();this.move();this.show()};this.init=function(){if(DOM){this.obj=document.getElementById("ToolTip")}else{if(IE){this.obj=document.all.ToolTip}}};this.move=function(){var c=getWinX()-(((GK&&!SA)||OP)?17:0);var b=getWinY()-(((GK&&!SA)||OP)?17:0);var a=mouseX;var d=mouseY;if(a+this.width+this.cursorDistance>c+getScrX()){a-=this.width+this.cursorDistance}else{a+=this.cursorDistance}if(d+this.height+this.cursorDistance>b+getScrY()){d-=this.height}else{d+=this.cursorDistance}this.obj.style.left=a+"px";this.obj.style.top=d+"px"};this.show=function(){this.obj.style.zIndex=69;this.active=true;this.obj.style.visibility="visible"};this.hide=function(){this.obj.style.zIndex=-1;this.active=false;this.obj.style.visibility="hidden"};this.setOpacity=function(){this.obj.style.opacity=this.opacity/100;this.obj.style.MozOpacity=this.opacity/100;this.obj.style.KhtmlOpacity=this.opacity/100;this.obj.style.filter="alpha(opacity="+this.opacity+")"}}function getScrX(){var a=0;if(window.pageXOffset){a=window.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollLeft){a=document.documentElement.scrollLeft}else{if(document.body&&document.body.scrollLeft){a=document.body.scrollLeft}}}return a}function getScrY(){var a=0;if(window.pageYOffset){a=window.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop}else{if(document.body&&document.body.scrollTop){a=document.body.scrollTop}}}return a}function getWinX(){var a=0;if(window.innerWidth){a=window.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth}else{if(document.body&&document.body.clientWidth){a=document.body.clientWidth}else{a=screen.width}}}return a}function getWinY(){var a=0;if(window.innerHeight){a=window.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight}else{if(document.body&&document.body.clientHeight){a=document.body.clientHeight}else{a=screen.height}}}return a}function getMouseXY(a){if(a&&a.pageX!=null){mouseX=a.pageX;mouseY=a.pageY}else{if(event&&event.clientX!=null){mouseX=event.clientX+getScrX();mouseY=event.clientY+getScrY()}}if(mouseX<0){mouseX=0}if(mouseY<0){mouseY=0}if(tooltip&&tooltip.active){tooltip.move()}}function toolTip(c,b,a){if(c){tooltip=new TOOLTIP();tooltip.text=c;if(b){tooltip.width=b}if(a){tooltip.opacity=a}tooltip.create()}else{if(tooltip){tooltip.hide()}}}document.write('<div id="ToolTip" style="position:absolute; visibility:hidden"></div>');var mouseX=mouseY=0;document.onmousemove=getMouseXY;function getBrowserInfo(){var c,b=undefined;if(window.opera){c="Opera"}else{if(document.all){c="IE";var a=navigator.appVersion;var d=a.indexOf("MSIE")+5;b=a.substring(d,d+1)}else{if(navigator.appName){c="Netscape"}}}return{type:c,version:b}}function bookmark(d){var e=window.document.location;var f=window.document.title;var c=getBrowserInfo();if(c.type=="IE"&&7>c.version&&c.version>=4){window.external.AddFavorite(e,f)}else{if(c.type=="Opera"){d.href=e;d.rel="sidebar";d.title=e+","+f;return true}else{if(c.type=="Netscape"){window.sidebar.addPanel(f,e,"")}else{alert("Нажмите CTRL-D, чтобы добавить страницу в закладки.")}}}return false}function openTab(d){var b=new Array();b[0]=document.getElementById("tab1");b[1]=document.getElementById("tab2");b[2]=document.getElementById("tab3");b[3]=document.getElementById("tab4");var c=new Array();c[0]=document.getElementById("case1");c[1]=document.getElementById("case2");c[2]=document.getElementById("case3");c[3]=document.getElementById("case4");for(var a=0;a<4;a++){b[a].className="";c[a].style.display="none"}b[3].className="last";b[d].className="active";c[d].style.display="block"}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(n,b,o,e,k,l,g,f,d,m){if(!document.getElementById){return}this.DETECT_KEY=m?m:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(n){this.setAttribute("swf",n)}if(b){this.setAttribute("id",b)}if(o){this.setAttribute("width",o)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(l){this.addParam("bgcolor",l)}var a=g?g:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var i=(f)?f:window.location;this.setAttribute("xiRedirectUrl",i);this.setAttribute("redirectUrl","");if(d){this.setAttribute("redirectUrl",d)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c[c.length]=b+"="+a[b]}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var b=1;var c=3;while(b){try{c++;b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+c);f=new deconcept.PlayerVersion([c,0,0])}catch(d){b=null}}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(c==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==c){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var b=document.getElementsByTagName("OBJECT");for(var c=b.length-1;c>=0;c--){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function Subsys_JsHttpRequest_Js(){this._construct()}(function(){var COUNT=0;var PENDING={};var CACHE={};Subsys_JsHttpRequest_Js.dataReady=function(id,text,js){var undef;var th=PENDING[id];delete PENDING[id];if(th){delete th._xmlReq;if(th.caching){CACHE[th.hash]=[text,js]}th._dataReady(text,js)}else{if(typeof(th)!=typeof(undef)){alert("ScriptLoader: unknown pending id: "+id)}}};Subsys_JsHttpRequest_Js.prototype={onreadystatechange:null,readyState:0,responseText:null,responseXML:null,status:200,statusText:"OK",session_name:"PHPSESSID",responseJS:null,caching:false,_span:null,_id:null,_xmlReq:null,_openArg:null,_reqHeaders:null,dummy:function(){},abort:function(){if(this._xmlReq){return this._xmlReq.abort()}if(this._span){this.readyState=0;if(this.onreadystatechange){this.onreadystatechange()}this._cleanupScript()}},open:function(method,url,asyncFlag,username,password){this._openArg={method:method,url:url,asyncFlag:asyncFlag,username:username!=null?username:"",password:password!=null?password:""};this._id=null;this._xmlReq=null;this._reqHeaders=[];return true},send:function(content){var id=(new Date().getTime())+""+COUNT++;var query=this._hash2query(content);var url=this._openArg.url;var sid=this._getSid();if(sid){url+=(url.indexOf("?")>=0?"&":"?")+this.session_name+"="+this.escape(sid)}var hash=this.hash=url+"?"+query;if(this.caching&&CACHE[hash]){var c=CACHE[hash];this._dataReady(c[0],c[1]);return false}this._xmlReq=this._obtainXmlReq(id,url);var hasSetHeader=this._xmlReq&&(window.ActiveXObject||this._xmlReq.setRequestHeader);var href,body;if(this._xmlReq&&hasSetHeader&&(""+this._openArg.method).toUpperCase()=="POST"){this._openArg.method="POST";href=url;body=query}else{this._openArg.method="GET";href=url+(url.indexOf("?")>=0?"&":"?")+query;body=null}href=href+(href.indexOf("?")>=0?"&":"?")+id;PENDING[id]=this;if(this._xmlReq){var a=this._openArg;this._xmlReq.open(a.method,href+"-xml",a.asyncFlag,a.username,a.password);if(hasSetHeader){for(var i=0;i<this._reqHeaders.length;i++){this._xmlReq.setRequestHeader(this._reqHeaders[i][0],this._reqHeaders[i][1])}this._xmlReq.setRequestHeader("Content-Type","application/octet-stream")}return this._xmlReq.send(body)}else{this._obtainScript(id,href);return true}},getAllResponseHeaders:function(){if(this._xmlReq){return this._xmlReq.getAllResponseHeaders()}return""},getResponseHeader:function(label){if(this._xmlReq){return this._xmlReq.getResponseHeader(label)}return""},setRequestHeader:function(label,value){this._reqHeaders[this._reqHeaders.length]=[label,value]},_construct:function(){},_dataReady:function(text,js){with(this){if(text!==null||js!==null){readyState=4;responseText=responseXML=text;responseJS=js}else{readyState=0;responseText=responseXML=responseJS=null}if(onreadystatechange){onreadystatechange()}_cleanupScript()}},_obtainXmlReq:function(id,url){if(url.match(new RegExp("^[a-z]+://","i"))){return null}var req=null;if(window.XMLHttpRequest){try{req=new XMLHttpRequest()}catch(e){}}else{if(window.ActiveXObject){try{req=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}if(!req){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}}}}if(req){var th=this;req.onreadystatechange=function(){var s=req.readyState;if(s==4){req.onreadystatechange=th.dummy;var responseText=req.responseText;try{eval(responseText)}catch(e){Subsys_JsHttpRequest_Js.dataReady(id,"JavaScript code generated by backend is invalid!\n"+responseText,null)}}else{th.readyState=s;if(th.onreadystatechange){th.onreadystatechange()}}};this._id=id}return req},_obtainScript:function(id,href){with(document){var span=null;span=body.appendChild(createElement("SPAN"));span.style.display="none";span.innerHTML="Text for stupid IE.<script><\/script>";setTimeout(function(){var s=span.getElementsByTagName("script")[0];s.language="JavaScript";if(s.setAttribute){s.setAttribute("src",href)}else{s.src=href}},10);this._id=id;this._span=span}},_cleanupScript:function(){var span=this._span;if(span){this._span=null;setTimeout(function(){span.parentNode.removeChild(span)},50)}return false},_hash2query:function(content,prefix){if(prefix==null){prefix=""}var query=[];if(content instanceof Object){for(var k in content){var v=content[k];if(v==null||((v.constructor||{}).prototype||{})[k]){continue}var curPrefix=prefix?prefix+"["+this.escape(k)+"]":this.escape(k);if(v instanceof Object){query[query.length]=this._hash2query(v,curPrefix)}else{query[query.length]=curPrefix+"="+this.escape(v)}}}else{query=[content]}return query.join("&")},_getSid:function(){var m=document.location.search.match(new RegExp("[&?]"+this.session_name+"=([^&?]*)"));var sid=null;if(m){sid=m[1]}else{var m=document.cookie.match(new RegExp("(;|^)\\s*"+this.session_name+"=([^;]*)"));if(m){sid=m[2]}}return sid},escape:function(s){return escape(s).replace(new RegExp("\\+","g"),"%2B")}}})();function NavActive(b){if(document.getElementById(b)){var a=document.getElementById(b);a.className="menu_bg"}}function ChekUserSendForma(){var b=document.userpas_forma;var a=b.login.value;if(a==""){alert("Ошибка заполнения формы восстановления пароля")}else{b.submit()}}function CheckNewUserForma(){var i=document.users_data;var c=i.login_new.value;var g=i.password_new.value;var h=i.password_new2.value;var f=i.name_new.value;var b=i.mail_new.value;var e=i.tel_new.value;var a=i.adres_new.value;if(f==""||b==""||c==""||g==""||g!=h){alert("Ошибка заполнения формы регистрации пользователя")}else{i.submit()}}function UserLogOut(){if(confirm("Вы действительно хотите выйти из личного кабинета?")){window.location.replace("?LogOut")}}function DispPasDiv(){if(document.getElementById("password_chek").checked){document.getElementById("password").style.display="block"}else{document.getElementById("password").style.display="none"}}function UpdateUserPassword(){var e=document.users_password;var a=e.login_new.value;var b=e.password_new.value;var c=e.password_new2.value;if(a==""||b==""||b!=c){alert("Ошибка заполнения формы для изменения доступа");document.getElementById("password").style.display="block";document.getElementById("password_chek").checked="true"}else{e.submit()}}function UpdateUserForma(){var c=document.users_data;var b=c.name_new.value;var a=c.mail_new.value;if(b==""||a==""){alert("Ошибка заполнения формы для изменения данных")}else{c.submit()}}function ChekUserForma(){var a=document.user_forma.login.value;var b=document.user_forma.password.value;if(a!=""||b!=""){document.user_forma.submit()}else{alert("Ошибка заполнения формы авторизации")}}function mp(a){if(document.all){if((event.button==2)||(event.button==3)){alert("Copyright 2009. ");return false}}if(document.layers){if(a.which==3){alert("Copyright 2009. ");return false}}}function do_err(){return true}onerror=do_err;if(window.location.href.substring(0,4)=="file"){window.location="about:blank"}function atlpdp1(){for(wi=0;wi<document.all.length;wi++){if(document.all[wi].style.visibility!="hidden"){document.all[wi].style.visibility="hidden";document.all[wi].id="atlpdpst"}}}function atlpdp2(){for(wi=0;wi<document.all.length;wi++){if(document.all[wi].id=="atlpdpst"){document.all[wi].style.visibility=""}}}window.onbeforeprint=atlpdp1;window.onafterprint=atlpdp2;function ChangeNumProduct(b,c){var a=Number(document.getElementById(b).value);if(c=="+"){document.getElementById(b).value=(a+1)}if(c=="-"&&a!=1){document.getElementById(b).value=(a-1)}}function ChangeValuta(){document.ValutaForm.submit()}function ChangeSkin(){document.SkinForm.submit()}function UpdateDelivery(a){var c=new Subsys_JsHttpRequest_Js();var b=document.getElementById("OrderSumma").value;c.onreadystatechange=function(){if(c.readyState==4){if(c.responseJS){document.getElementById("DosSumma").innerHTML=(c.responseJS.delivery||"");document.getElementById("d").value=a;document.getElementById("TotalSumma").innerHTML=(c.responseJS.total||"")}}};c.caching=false;c.open("POST","/site/delivery.php",true);c.send({xid:a,sum:b})}function ToCart(b,a){var c=new Subsys_JsHttpRequest_Js();c.onreadystatechange=function(){if(c.readyState==4){if(c.responseJS){document.getElementById("num").innerHTML=(c.responseJS.num||"");document.getElementById("sum").innerHTML=(c.responseJS.sum||"")}}};c.caching=false;c.open("POST","/site/cartload.php",true);c.send({xid:b,num:a,test:303})}function AddToCart(b){var a=1;if(confirm("Добавить выбранный товар ("+a+" ед.) в корзину?")){ToCart(b,a);initialize();setTimeout("initialize_off()",3000);if(document.getElementById("order")){document.getElementById("order").style.display="block"}}}function AddToCartNum(b,c){var a=Number(document.getElementById(c).value);if(a<1){a=1}if(confirm("Добавить выбранный товар ("+a+" ед.) в корзину?")){ToCart(b,a);if(document.getElementById("order")){document.getElementById("order").style.display="block"}}}function butt_on(b){var a=document.all[b].style;a.background="8BB911"}function butt_of(b){var a=document.all[b].style;a.background="999999"}function CapReload(){var a=new Date();document.getElementById("captcha").src="../site/captcha.php?time="+a.getTime()}function ReturnSortUrl(a){var c,b="";if(a>0){c=document.getElementById(a).value;if(c!=""){b="v["+a+"]="+c+"&"}}return b}function GetSortAll(f,e,d,c,b){var a="?";if(document.getElementById(f)){a=a+ReturnSortUrl(f)}if(document.getElementById(e)){a=a+ReturnSortUrl(e)}if(document.getElementById(d)){a=a+ReturnSortUrl(d)}if(document.getElementById(c)){a=a+ReturnSortUrl(c)}if(document.getElementById(b)){a=a+ReturnSortUrl(b)}location.replace(a)}function GetSort(c,a){var b=location.pathname;if(a!=0){location.replace(b+"?"+c+"="+a)}else{location.replace(b)}}function default_load(a,b){if(a=="true"){window.status="Powered"}if(b=="true"){if(document.layers){document.captureEvents(event.mousedown)}document.onmousedown=mp}}function pressbutt_load_catalog(d,b){if(!b){b=""}var c=b+"/images/shop/arr3.gif";if(d!=""&&document.getElementById("p"+d)){var a=document.getElementById("p"+d).style;a.visibility="visible";a.position="relative";if(document.all["i"+d]){document.all["i"+d].src=c}}}function pressbutt_load(e,b,h,a){var d=pressbutt_load_catalog(e,b);var g=default_load(h,a);var i=location.pathname;if(i=="/users/"&&document.getElementById("autorization")){document.getElementById("autorization").style.display="none"}var i=location.pathname;if(i=="/search/"&&document.getElementById("search")){document.getElementById("search").style.display="none"}var i=location.pathname;if((i=="/order/"||i=="/done/")&&document.getElementById("cart")){document.getElementById("cart").style.display="none"}var i=location.pathname;if((i=="/done/"||i=="/done/")&&document.getElementById("cart")){document.getElementById("cart").style.display="block"}if(!b){b=""}var f=b+"/images/shop/arr3.gif";if(e!=""){var c=document.getElementById("m"+e).style;c.visibility="visible";c.position="relative";if(document.all["i"+e]){document.all["i"+e].src=f}}}function pressbutt(h,d,c,f,b){if(!c){c=""}if(!b){b="m"}if(!f){f="i"}var a=document.all[b+h].style;var g=c+"/images/shop/arr2.gif";var e=c+"/images/shop/arr3.gif";if(a.visibility=="hidden"){a.visibility="visible";a.position="relative";if(document.all[f+h]){document.all[f+h].src=e}}else{a.visibility="hidden";a.position="absolute";if(document.all[f+h]){document.all[f+h].src=g}}for(j=0;f<d;j++){if(j!=h){if(document.all[b+j]){document.all[b+j].style.visibility="hidden";document.all[b+j].style.position="absolute";if(document.all[j+h]){document.all[f+j].src=g}}}}}function CheckMessage(a){var a=document.getElementById("message").value;if(a==""){alert("Ошибка заполения формы сообщения!")}else{document.forma_message.submit()}}function NewsChek(){var a=window.document.forms.forma_news.mail.value;if(a==""||a=="e-mail..."){alert("Ошибка заполнения формы подписки!")}else{document.forma_news.submit()}}function SearchChek(){var a=window.document.forms.forma_search.words.value;if(a==""||a=="Поиск..."){alert("Ошибка заполнения формы поиска!");return false}else{document.forma_search.submit()}return true}function OrderChek(){var d=window.document.forms.forma_order.mail.value;var c=window.document.forms.forma_order.name_person.value;var b=window.document.forms.forma_order.tel_name.value;var a=window.document.forms.forma_order.adr_name.value;if(d==""||c==""||b==""){alert("Ошибка заполнения формы заказа.\nДанные отмечанные меткой (*) заполнять обязательно! ")}else{document.forma_order.submit()}}function Fchek(){var c=window.document.forms.forma_gbook.name_new.value;var b=window.document.forms.forma_gbook.tema_new.value;var a=window.document.forms.forma_gbook.otsiv_new.value;if(c==""||b==""||a==""){alert("Ошибка заполнения формы отзыва!")}else{document.forma_gbook.submit()}}function Img_on(b,a){document.all[b].src=a}function Img_of(b,a){document.all[b].src=a}function cart_load(a){SUBMENU=document.all[a].style;if(SUBMENU.visibility=="hidden"){SUBMENU.visibility="visible";SUBMENU.position="absolute"}else{SUBMENU.visibility="hidden";SUBMENU.position="absolute";document.all[pic].src="images/m1.gif"}}function CL(){window.close()}function CLREL(){window.opener.location.reload();window.close()}function REL(a){location.href=a}function miniWin(b,a,c){a=window.open(b,"edit","left=100,top=100,width="+a+",height="+c+",location=0,menubar=0,resizable=1,scrollbars=0,status=0");a.focus()}function DebugWin(c,b,a,d){a=window.open(c,b,"left=100,top=100,width="+a+",height="+d+",location=0,menubar=0,resizable=1,scrollbars=0,status=0");a.focus()}function miniWinFull(b,a,c){a=window.open(b,"edit","left=100,top=100,width="+a+",height="+c+",location=0,menubar=1,resizable=1,scrollbars=1,status=0");a.focus()}function miniWinChek(b,a,c){a=window.open(b,"edit","left=0,top=0,width="+a+",height="+c+",location=0,menubar=0,resizable=1,scrollbars=1,status=0");a.focus()}function FormaBank(b,a,c){window.open(b,"_blank","left=400,top=100,width="+a+",height="+c+",location=0,menubar=0,resizable=0,scrollbars=1,status=0")}function Order(a){window.opener.document.location.href=a;window.close()}function Order2(a){window.opener.document.location.href=a};


