
var Sn=new Date();var Ss=Sn.getSeconds();var Sms=Sn.getMilliseconds();Ss=String(Ss);Sms=String(Sms);var sT=Ss+'.'+Sms;function endTIME(){var En=new Date();var Es=En.getSeconds();var Ems=En.getMilliseconds();Es=String(Es);Ems=String(Ems);var eT=Es+'.'+Ems;var tT=eT-sT;var iSTR='';iSTR='Время загрузки страницы: '+tT+' секунд';top.status=iSTR;}
function BrowserDetectLite(){var ua=navigator.userAgent.toLowerCase();this.ua=ua;this.isGecko=(ua.indexOf('gecko')!=-1);this.isMozilla=(this.isGecko&&ua.indexOf("gecko/")+14==ua.length);this.isNS=((this.isGecko)?(ua.indexOf('netscape')!=-1):((ua.indexOf('mozilla')!=-1)&&(ua.indexOf('spoofer')==-1)&&(ua.indexOf('compatible')==-1)&&(ua.indexOf('opera')==-1)&&(ua.indexOf('webtv')==-1)&&(ua.indexOf('hotjava')==-1)));this.isIE=((ua.indexOf("msie")!=-1)&&(ua.indexOf("opera")==-1)&&(ua.indexOf("webtv")==-1));this.isOpera=(ua.indexOf("opera")!=-1);this.isKonqueror=(ua.indexOf("konqueror")!=-1);this.isIcab=(ua.indexOf("icab")!=-1);this.isAol=(ua.indexOf("aol")!=-1);this.isWebtv=(ua.indexOf("webtv")!=-1);this.isOmniweb=(ua.indexOf("omniweb")!=-1);this.isDreamcast=(ua.indexOf("dreamcast")!=-1);this.isIECompatible=((ua.indexOf("msie")!=-1)&&!this.isIE);this.isNSCompatible=((ua.indexOf("mozilla")!=-1)&&!this.isNS&&!this.isMozilla);this.versionMinor=parseFloat(navigator.appVersion);if(this.isNS&&this.isGecko){this.versionMinor=parseFloat(ua.substring(ua.lastIndexOf('/')+1));}
else if(this.isIE&&this.versionMinor>=4){this.versionMinor=parseFloat(ua.substring(ua.indexOf('msie ')+5));}
else if(this.isOpera){if(ua.indexOf('opera/')!=-1){this.versionMinor=parseFloat(ua.substring(ua.indexOf('opera/')+5));}
else{this.versionMinor=parseFloat(ua.substring(ua.indexOf('opera ')+5));}}
else if(this.isKonqueror){this.versionMinor=parseFloat(ua.substring(ua.indexOf('konqueror/')+10));}
else if(this.isIcab){if(ua.indexOf('icab/')!=-1){this.versionMinor=parseFloat(ua.substring(ua.indexOf('icab/')+6));}
else{this.versionMinor=parseFloat(ua.substring(ua.indexOf('icab ')+6));}}
else if(this.isWebtv){this.versionMinor=parseFloat(ua.substring(ua.indexOf('webtv/')+6));}
this.versionMajor=parseInt(this.versionMinor);this.geckoVersion=((this.isGecko)?ua.substring((ua.lastIndexOf('gecko/')+6),(ua.lastIndexOf('gecko/')+14)):-1);this.isWin=(ua.indexOf('win')!=-1);this.isWin32=(this.isWin&&(ua.indexOf('95')!=-1||ua.indexOf('98')!=-1||ua.indexOf('nt')!=-1||ua.indexOf('win32')!=-1||ua.indexOf('32bit')!=-1));this.isMac=(ua.indexOf('mac')!=-1);this.isUnix=(ua.indexOf('unix')!=-1||ua.indexOf('linux')!=-1||ua.indexOf('sunos')!=-1||ua.indexOf('bsd')!=-1||ua.indexOf('x11')!=-1)
this.isNS4x=(this.isNS&&this.versionMajor==4);this.isNS40x=(this.isNS4x&&this.versionMinor<4.5);this.isNS47x=(this.isNS4x&&this.versionMinor>=4.7);this.isNS4up=(this.isNS&&this.versionMinor>=4);this.isNS6x=(this.isNS&&this.versionMajor==6);this.isNS6up=(this.isNS&&this.versionMajor>=6);this.isIE4x=(this.isIE&&this.versionMajor==4);this.isIE4up=(this.isIE&&this.versionMajor>=4);this.isIE5x=(this.isIE&&this.versionMajor==5);this.isIE55=(this.isIE&&this.versionMinor==5.5);this.isIE5up=(this.isIE&&this.versionMajor>=5);this.isIE6x=(this.isIE&&this.versionMajor==6);this.isIE6up=(this.isIE&&this.versionMajor>=6);this.isIE4xMac=(this.isIE4x&&this.isMac);}
var browser=new BrowserDetectLite();function initKLayers(){isDOM=document.getElementById?true:false
isOpera=isOpera5=window.opera&&isDOM
isOpera6=isOpera&&window.print
isOpera7=isOpera&&document.readyState
isMSIE=isIE=document.all&&document.all.item&&!isOpera
isStrict=document.compatMode=='CSS1Compat'
isNN=isNC=navigator.appName=="Netscape"
isNN4=isNC4=isNN&&!isDOM
isMozilla=isNN6=isNN&&isDOM
if(!isDOM&&!isNC&&!isMSIE&&!isOpera){KLayers=false
return false}
pageLeft=0
pageTop=0
KL_imgCount=0
KL_imgArray=new Array()
KL_imageRef="document.images[\""
KL_imagePostfix="\"]"
KL_styleSwitch=".style"
KL_layerPostfix="\"]"
if(isNN4){KL_layerRef="document.layers[\""
KL_styleSwitch=""}
if(isMSIE){KL_layerRef="document.all[\""}
if(isDOM){KL_layerRef="document.getElementById(\""
KL_layerPostfix="\")"}
KLayers=true
return true}
initKLayers()
function KL_getBody(w){if(!w)w=window
if(isStrict){return w.document.documentElement}else{return w.document.body}}
function getWindowLeft(w){if(!w)w=window
if(isMSIE||isOpera7)return w.screenLeft
if(isNN||isOpera)return w.screenX}
function getWindowTop(w){if(!w)w=window
if(isMSIE||isOpera7)return w.screenTop
if(isNN||isOpera)return w.screenY}
function getWindowWidth(w){if(!w)w=window
if(isMSIE)return KL_getBody(w).clientWidth
if(isNN||isOpera)return w.innerWidth}
function getWindowHeight(w){if(!w)w=window
if(isMSIE)return KL_getBody(w).clientHeight
if(isNN||isOpera)return w.innerHeight}
function getDocumentWidth(w){if(!w)w=window
if(isMSIE||isOpera7)return KL_getBody(w).scrollWidth
if(isNN)return w.document.width
if(isOpera)return w.document.body.style.pixelWidth}
function getDocumentHeight(w){if(!w)w=window
if(isMSIE||isOpera7)return KL_getBody(w).scrollHeight
if(isNN)return w.document.height
if(isOpera)return w.document.body.style.pixelHeight}
function getScrollX(w){if(!w)w=window
if(isMSIE||isOpera7)return KL_getBody(w).scrollLeft
if(isNN||isOpera)return w.pageXOffset}
function getScrollY(w){if(!w)w=window
if(isMSIE||isOpera7)return KL_getBody(w).scrollTop
if(isNN||isOpera)return w.pageYOffset}
function preloadImage(imageFile){KL_imgArray[KL_imgCount]=new Image()
KL_imgArray[KL_imgCount++].src=imageFile}
var KL_LAYER=0
var KL_IMAGE=1
function KL_findObject(what,where,type){var i,j,l,s
var len=eval(where+".length")
for(j=0;j<len;j++){s=where+"["+j+"].document.layers"
if(type==KL_LAYER){l=s+"[\""+what+"\"]"}
if(type==KL_IMAGE){i=where+"["+j+"].document.images"
l=i+"[\""+what+"\"]"}
if(eval(l))return l
l=KL_findObject(what,s,type)
if(l!="null")return l}
return"null"}
function KL_getObjectPath(name,parent,type){var l=((parent&&isNN4)?(parent+"."):(""))+((type==KL_LAYER)?KL_layerRef:KL_imageRef)+name+((type==KL_LAYER)?KL_layerPostfix:KL_imagePostfix)
if(eval(l))return l
if(!isNN4){return l}else{return KL_findObject(name,"document.layers",type)}}
function layer(name){return new KLayer(name,null)}
function layerFrom(name,parent){if(parent.indexOf("document.")<0)parent=layer(parent).path
return new KLayer(name,parent)}
function image(name){return new KImage(name,null)}
function imageFrom(name,parent){if(parent.indexOf("document.")<0)parent=layer(parent).path
return new KImage(name,parent)}
function KLayer(name,parent){this.path=KL_getObjectPath(name,parent,KL_LAYER)
this.object=eval(this.path)
if(!this.object)return
this.style=this.css=eval(this.path+KL_styleSwitch)}
KLP=KLayer.prototype
KLP.isExist=KLP.exists=function(){return(this.object)?true:false}
function KL_getPageOffset(o){var KL_left=0
var KL_top=0
do{KL_left+=o.offsetLeft
KL_top+=o.offsetTop}while(o=o.offsetParent)
return[KL_left,KL_top]}
KLP.getLeft=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return o.offsetLeft-pageLeft
if(isNN4)return o.x-pageLeft}
KLP.getTop=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return o.offsetTop-pageTop
if(isNN4)return o.y-pageTop}
KLP.getAbsoluteLeft=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return KL_getPageOffset(o)[0]-pageLeft
if(isNN4)return o.pageX-pageLeft}
KLP.getAbsoluteTop=function(){var o=this.object
if(isMSIE||isMozilla||isOpera)return KL_getPageOffset(o)[1]-pageTop
if(isNN4)return o.pageY-pageTop}
KLP.getWidth=function(){var o=this.object
if(isMSIE||isMozilla||isOpera7)return o.offsetWidth
if(isOpera)return this.css.pixelWidth
if(isNN4)return o.document.width}
KLP.getHeight=function(){var o=this.object
if(isMSIE||isMozilla||isOpera7)return o.offsetHeight
if(isOpera)return this.css.pixelHeight
if(isNN4)return o.document.height}
KLP.setHeight=function(h){if(isOpera){this.css.pixelHeight=h}else if(isNN4){this.object.height=h}else{this.css.height=h+"px"}}
KLP.getZIndex=function(){return this.css.zIndex}
KLP.setLeft=KLP.moveX=function(x){x+=pageLeft
if(isOpera){this.css.pixelLeft=x}else if(isNN4){this.object.x=x}else{this.css.left=x+"px"}}
KLP.setTop=KLP.moveY=function(y){y+=pageTop
if(isOpera){this.css.pixelTop=y}else if(isNN4){this.object.y=y}else{this.css.top=y+"px"}}
KLP.moveTo=KLP.move=function(x,y){this.setLeft(x)
this.setTop(y)}
KLP.moveBy=function(x,y){this.moveTo(this.getLeft()+x,this.getTop()+y)}
KLP.setZIndex=KLP.moveZ=function(z){this.css.zIndex=z}
KLP.setVisibility=function(v){if(this.css){this.css.visibility=(v)?(isNN4?"show":"visible"):(isNN4?"hide":"hidden")}else{this.style.visibility=(v)?(isNN4?"show":"visible"):(isNN4?"hide":"hidden")}}
KLP.show=function(){this.setVisibility(true)}
KLP.hide=function(){this.setVisibility(false)}
KLP.isVisible=KLP.getVisibility=function(){return(this.css.visibility.toLowerCase().charAt(0)=='h')?false:true}
KLP.setBgColor=function(c){if(isMSIE||isMozilla||isOpera7){this.css.backgroundColor=c}else if(isOpera){this.css.background=c}else if(isNN4){this.css.bgColor=c}}
KLP.getBgColor=function(){var o=this.object
if(isMSIE||isMozilla||isOpera7)return o.style.backgroundColor
if(isOpera)return o.style.background
if(isNN4)return o.style.bgColor}
KLP.getDisplay=function(){var o=this.object
if(isMSIE||isMozilla||isOpera7)return o.style.display
if(isOpera)return o.style.display
if(isNN4)return o.style.display}
KLP.appear=function(){var o=this.object
if(isMSIE||isMozilla||isOpera7){o.style.display=''}else if(isOpera){o.style.display=''}else if(isNN4){o.style.display=''}}
KLP.disappear=function(){var o=this.object
if(isMSIE||isMozilla||isOpera7){o.style.display='none'}else if(isOpera){o.style.display='none'}else if(isNN4){o.style.display='none'}}
KLP.setBgImage=function(url){if(isMSIE||isMozilla||isOpera6){this.css.backgroundImage="url("+url+")"}else if(isNN4){this.css.background.src=url}}
KLP.setClip=KLP.clip=function(top,right,bottom,left){if(isMSIE||isMozilla||isOpera7){this.css.clip="rect("+top+"px "+right+"px "+bottom+"px "+left+"px)"}else if(isNN4){var c=this.css.clip
c.top=top
c.right=right
c.bottom=bottom
c.left=left}}
KLP.scrollTo=KLP.scroll=function(windowLeft,windowTop,windowWidth,windowHeight,scrollX,scrollY){if(scrollX>this.getWidth()-windowWidth)scrollX=this.getWidth()-windowWidth
if(scrollY>this.getHeight()-windowHeight)scrollY=this.getHeight()-windowHeight
if(scrollX<0)scrollX=0
if(scrollY<0)scrollY=0
var top=0
var right=windowWidth
var bottom=windowHeight
var left=0
left=left+scrollX
right=right+scrollX
top=top+scrollY
bottom=bottom+scrollY
this.moveTo(windowLeft-scrollX,windowTop-scrollY)
this.setClip(top,right,bottom,left)}
KLP.scrollBy=KLP.scrollByOffset=function(windowLeft,windowTop,windowWidth,windowHeight,scrollX,scrollY){var X=-parseInt(this.css.left)+windowLeft+scrollX
var Y=-parseInt(this.css.top)+windowTop+scrollY
this.scroll(windowLeft,windowTop,windowWidth,windowHeight,X,Y)}
KLP.scrollByPercentage=function(windowLeft,windowTop,windowWidth,windowHeight,scrollX,scrollY){var X=(this.getWidth()-windowWidth)*scrollX/100
var Y=(this.getHeight()-windowHeight)*scrollY/100
this.scroll(windowLeft,windowTop,windowWidth,windowHeight,X,Y)}
KLP.write=function(str){var o=this.object
if(isNN4){var d=o.document
d.open()
d.write(str)
d.close()}else{o.innerHTML=str}}
KLP.add=function(str){var o=this.object
if(isNN4){o.document.write(str)}else{o.innerHTML+=str}}
KIP=KImage.prototype
function KImage(name){this.path=KL_getObjectPath(name,false,KL_IMAGE)
this.object=eval(this.path)}
KIP.isExist=KIP.exists=function(){return(this.object)?true:false}
KIP.getSrc=KIP.src=function(){return this.object.src}
KIP.setSrc=KIP.load=function(url){this.object.src=url}
function addHandler(object,event,handler)
{if(typeof object.addEventListener!='undefined')
{object.addEventListener(event,handler,false);}else if(typeof object.attachEvent!='undefined')
{object.attachEvent('on'+event,handler);}else{var handlersProp='_handlerStack_'+event;var eventProp='on'+event;if(typeof object[handlersProp]=='undefined')
{object[handlersProp]=[];if(typeof object[eventProp]!='undefined')
{object[handlersProp].push(object[eventProp]);}
object[eventProp]=function(e)
{var ret=true;for(var i=0;ret!=false&&i<object[handlersProp].length;i++)
{ret=object[handlersProp][i](e);}
return ret;}}
object[handlersProp].push(handler);}}
function removeHandler(object,event,handler)
{if(typeof object.removeEventListener!='undefined')
{object.removeEventListener(event,handler,false);}else if(typeof object.detachEvent!='undefined')
{object.detachEvent('on'+event,handler);}else{var handlersProp='_handlerStack_'+event;if(typeof object[handlersProp]!='undefined')
{for(var i=0;i<object[handlersProp].length;i++)
{if(object[handlersProp][i]==handler)
{object[handlersProp].splice(i,1);return;}}}}}
function handler(e)
{e=e||window.event;if(typeof e.preventDefault!='undefined'){e.preventDefault();}
return false;}
function setGlobalOnLoad(f){var root=window.addEventListener||window.attachEvent?window:document.addEventListener?document:null
if(root){if(root.addEventListener)root.addEventListener("load",f,false)
else if(root.attachEvent)root.attachEvent("onload",f)}else{if(typeof window.onload=='function'){var existing=window.onload
window.onload=function(){existing()
f()}}else{window.onload=f}}}
function wpopup(url,h,w,features,center,n)
{if(center==1)
{ytop=Math.floor((screen.height-h)/2);ftop="top="+ytop;left=Math.floor((screen.width-w)/2);fleft="left="+left;}
feat="";if(ftop||fleft)
{feat=ftop+","+fleft+",";}
feat+="height="+h+",width="+w;feat+=(features!="")?(","+features):"";window.open(url,(!n)?"newwin":n,feat);}
function checkform(f)
{var errMSG="";for(var i=0;i<f.elements.length;i++)
{if(null!=f.elements[i].getAttribute("required"))
{if(isEmpty(f.elements[i].value))
{errMSG+="  "+f.elements[i].id+"\n";if(""!=errMSG)
{alert("Не заполнены обязательные поля:\n"+errMSG);return false;}}}}}
function isEmpty(str)
{for(var i=0;i<str.length;i++)
if(" "!=str.charAt(i))
{return false;}
else
{return true;}}
function show(id)
{if(document.getElementById('block_'+id).style.display=="")
{document.getElementById('block_'+id).style.display="none";document.getElementById('img_'+id).src="img/btn_down.gif";setCookie('block_'+id,'close');}else{document.getElementById('block_'+id).style.display="";document.getElementById('img_'+id).src="img/btn_up.gif";setCookie('block_'+id,'open');}}
function checkBlock(id)
{var open=getCookie('block_'+id);if(!open){return;}
if(open=='open'){document.getElementById('block_'+id).style.display="";document.getElementById('img_'+id).src="img/btn_up.gif";}else{document.getElementById('block_'+id).style.display="none";document.getElementById('img_'+id).src="img/btn_down.gif";}}
function mailto(name,domain)
{document.write('<a href="mailto:'+name+'@'+domain+'" class="link1">'+name+'@'+domain+'</a>');}
function rsize(){for(i=1;i<=maxid;i++){var menu=layer('popupmenu_'+i);if(menu.exists()){var mainmenu=layer('mainmenu_'+i);if(mainmenu.exists()){if(mainmenu.getWidth()+5>menu.getWidth()){if(isMozilla){menu.style.width=mainmenu.getWidth()-5+'px';}else{menu.style.width=mainmenu.getWidth()-5;}}
if(getDocumentWidth()>(mainmenu.getAbsoluteLeft()+menu.getWidth())){menu.setLeft(mainmenu.getAbsoluteLeft());}else{menu.setLeft(getDocumentWidth()-menu.getWidth());}}}}
hideAll();}
function show(id){hideAll();var menu=layer('popupmenu_'+id);if(menu.exists()){menu.show();}}
function hideAll(){for(i=1;i<=maxid;i++){var menu=layer('popupmenu_'+i);if(menu.exists()){menu.hide();}}}
var px='';if(isMozilla){px='px';}
function res(){var obj=layer('tb_td');document.getElementById('menu').style.left=obj.getAbsoluteLeft()+px;document.getElementById('searchblock').style.left=obj.getAbsoluteLeft()+obj.getWidth()-255+px;document.getElementById('map').style.left=obj.getAbsoluteLeft()+obj.getWidth()-125+px;if(getWindowWidth()<900)
{document.getElementById('window_right').style.width='330px';}else{document.getElementById('window_right').style.width='391px';}
document.body.style.visibility="visible";endTIME();}
function pict(e){var tb=document.getElementById('tb').style.backgroundImage;if(browser.isOpera)
{var bg='url(\"'+tb.substr(5,tb.length-11)+".jpg\")";}else{var bg='url(\"'+tb.substr(4,tb.length-9)+".jpg\")";}
document.getElementById('tb').style.backgroundImage=bg;}
function time(e){window.setTimeout('res()',300);}
addHandler(window,'load',time);addHandler(window,'load',pict);addHandler(window,'resize',time);function photo1(text){var preview=window.open('','popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=690,height=530,screenX=150,screenY=150,top=150,left=150')
preview.document.clear();preview.document.writeln("<html><head></head><body style='margin: 0;'>");preview.document.writeln("<img src='img/trans.gif' border='0' id='phpt' style='z-index: 100; border: 1px solid black; cursor: pointer; cursor: hand; width: 670px; height: 510px;' onclick='window.close();' alt='Закрыть фото' title='Закрыть фото'/>");preview.document.writeln("</body></html>");var obj=preview.document.getElementById('phpt');obj.style.background='url(\''+text+'\') 50% 50% no-repeat white';preview.focus();preview.document.close();}
function obj_flash(width,height,path,page,id)
{var obj='<div id="'+id+'">'+'<object type="application/x-shockwave-flash" data="'+path+'" width="'+width+'" height="'+height+'">'+'<param name="movie" value="'+path+'" />'+'<param name="wmode" value="transparent" />'+'<param name="FlashVars" value="page='+page+'" />'+'<param name="scale" value="noborder" />'+'</object>'+'</div>';document.write(obj);}
function obj_img(id,alt,dop,err)
{{obj='<div id="'+id+'" style="background: url(\''+js_HTTPPATH+'img/'+id+'.png\');"><img src="'+js_HTTPPATH+'img/'+id+'.gif" border="0" alt="'+alt+'" class="png"'+dop+' /></div>';document.write(obj);if(err)
{alert(obj);}}}
var js_HTTPPATH="http://www.albioncom.ru/";var js_PHPEX="html";var js_PAGE="0";var js_LANG="";