function MM_jumpMenu(targ,selObj,restore,perfix){if(!perfix){perfix='catalog/nokia-'}eval(targ+".location='/"+perfix+selObj.options[selObj.selectedIndex].value+"/'");if(restore)selObj.selectedIndex=0}function choice_selected(form_name,el_name,val){var sel=document.forms[form_name].elements[el_name];for(i=0;i<sel.options.length;i++){if(sel.options[i].value==val){sel.options[i].selected=true}}}var ul=0;function AddFavorite(){if(/MSIE/.test(navigator.userAgent)){window.external.AddFavorite(document.location.href,document.title);return false}else if(/Mozilla/.test(navigator.userAgent)){if(typeof window.sidebar=="object")window.sidebar.addPanel(document.title,document.location.href,"");return false}else if(/Opera/.test(navigator.userAgent)){var a=document.createElement('A');if(!a)return false;a.setAttribute('rel','sidebar');a.setAttribute('href',document.location.href);a.setAttribute('title',document.title);a.click();return true}return false}function ajax(go_,for_,to_){var today=new Date();var script=document.createElement('script');with(script){setAttribute("type","text/javascript",0);setAttribute("charset","windows-1251",0);setAttribute("src",GLOBAL_DIR+go_+'.php?'+for_+'='+to_+'&time='+today.getTime(),0)}var head=document.getElementsByTagName("head")[0]||document.documentElement;head.insertBefore(script,head.firstChild);script.onload=function(){head.removeChild(script)}}function toggle_block(id){if(document.getElementById(id)){var object=document.getElementById(id);if(object.style.display=='none'){object.style.display=''}else{object.style.display='none'}}}function show_hidden_block(id){if(document.getElementById(id)){var object=document.getElementById(id);if(object.style.visibility=='visible'){object.style.visibility='hidden'}else{object.style.visibility='visible'}}}function newForm(a,b,c,d,f){try{var g=(screen.availWidth-c)/2;var h=(screen.availHeight-d)/2;f+='width='+c+',height='+d+',top='+h+',left='+g+', toolbar=no, status=no, menubar=no';var newwindow=window.open(a,b,f);if(window.focus){newwindow.focus()}return newwindow}catch(e){alert(e)}}function ishow(title,text,w,h){try{w=(!w)?350:w;h=(!h)?200:h;var obj=document.getElementById('infobox');dscroll=self.pageYOffset||(document.documentElement&&document.documentElement.scrollTop)||(document.body&&document.body.scrollTop);l=parseInt(screen.availWidth-w)/2;hh=(document.compatMode=='CSS1Compat')?document.documentElement.clientHeight:document.body.clientHeight;t=Math.round((hh-h)/2)+dscroll;text=(text)?text:'<center><img src="/img/wait.66.gif" style="margin-top:'+(h/2-66)+'px;" alt="Пожалуйста подождите ..." /></center>';obj.innerHTML='<div id="ib-close" align="right" onclick="iclose()">&times;</div><div id="ib-titile">'+title+'</div><br /><br /><br /><div id="ib-text">'+text+'</div>';obj.className='ibox';with(obj.style){width=w+'px';height=h+'px';top=t+'px';left=l+'px';display='block';visibility='visible'}}catch(e){alert(e)}}function iclose(){try{var i=document.getElementById('infobox').style;i.display='none';i.visibility='hidden'}catch(e){alert(e)}}function show_login(o){if(ul!=1){var go2=(o.href)?'<input name="go" type="hidden" value="'+encodeURIComponent(o.href.replace(/\#(.*)?$/,''))+'" />':'';ishow('Авторизация','<form method="post" target="login" action="/members/?act=login" style="padding:5px;overflow:visible;z-index:255;"><span style="color:red;" id="l-err" class="more"></span><table align="center" cellpadding="5" cellspacing="5"><tr><td align="right"><label for="auth-name" style="font:bold 16px arial,tahoma;color:#777;">Логин</label></td><td><input id="auth-name" type="text" name="uname" style="font:bold 15px arial,tahoma;color:#777;width:190px" tabindex="1"/></td></tr><tr><td align="right" valign="top"><label for="auth-pass" style="font:bold 16px arial,tahoma;color:#777;">Пароль</label></td><td><input id="auth-pass" name="upass" style="font-size:15px;width:190px" type="password" tabindex="2"/><br /><input id="auth-save" name="save" type="checkbox" value="1" tabindex="3" checked/><label for="auth-save">Запомнить меня</label></td></tr><tr><td colspan="2">'+go2+'<input type="submit" value="Войти" style="float:right;" tabindex="4"/><a href="http://profile.allnokia.ru/new/">Зарегистрироваться</a><br /><a href="http://profile.allnokia.ru/login/lost.php">Напомнить пароль</a></td></tr></table></form>');return false}else{return true}}var fieldValues={'uname':'Ваш логин','upass':'пароль'};var curField;function login_form(){for(var i=0;i<2;i++){var field=window.document.flogin.elements[i];if(fieldValues[field.name]&&(field.value==''||field.value==fieldValues[field.name])){field.value=fieldValues[field.name]}if(field.addEventListener){field.addEventListener("focus",login_focus,false);field.addEventListener("blur",login_blur,false)}else if(field.attachEvent){field.attachEvent("onfocus",login_focus);field.attachEvent("onblur",login_blur)}}}function login_focus(e){var obj;if(window.event)obj=window.event.srcElement;else obj=e.currentTarget;if(fieldValues[obj.name]&&fieldValues[obj.name]==obj.value){obj.value=''}curField=obj;obj.focus()}function login_blur(){if(fieldValues[curField.name]&&curField.value==''){curField.value=fieldValues[curField.name]}}function login_check(o){for(var i=0;i<2;i++){var field=o.elements[i];if(fieldValues[field.name]&&(field.value==''||field.value==fieldValues[field.name])){return false}}return true}function wheel(event){var delta=0;if(!event)event=window.event;if(event.wheelDelta){delta=event.wheelDelta/120}else if(event.detail){delta=-event.detail/3}if(delta&&typeof handle=='function'){handle(this,delta);if(event.preventDefault)event.preventDefault();event.returnValue=false}}function iWheel(o,callback){if(o.addEventListener){o.addEventListener('DOMMouseScroll',wheel,false)}o.onmousewheel=wheel;o.onmouseover=function(){handle=callback};o.onmouseout=function(){handle=null}}function up_rating(id){var o=document.getElementById(id);iv=parseInt(o.innerHTML);o.innerHTML=(isNaN(iv))?'+1':'+'+(iv+1);var color=o.style.color;var bg=o.style.backgroundColor;o.style.color='#fff';o.style.backgroundColor=color;setTimeout(function(){o.style.color=color;o.style.backgroundColor=bg},100)}