function popupitem(adr, wd, hg) { winpopup=window.open(adr,"itempopup",config="toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,status=no,width="+wd+",height="+hg); winpopup.focus(); } var Zoom = new Zoom_System(); function Zoom_System(){ Zoom_System.prototype.findobj = function(obj){ this.parent = window.document; if(this.parent.getElementById && this.parent.getElementById(obj)){return this.parent.getElementById(obj);} return null; } Zoom_System.prototype.fontsize = function(obj,gui){ var fontcont = this.findobj(obj); if(gui<0){var fsize=-1;} else {var fsize=1;} var resize = parseInt(fontcont.style.fontSize) + fsize; if(resize >= 8 && resize < 30){ fontcont.style.fontSize = resize + 'px'; } //return false; }} $(function(){ // lightBox $('.gallery a').lightBox({ overlayBgColor: '#000', overlayOpacity: 0.6, imageBlank: '/images/px.gif', imageLoading: '/images/lightbox/loading.gif', imageBtnClose: '/images/lightbox/close.gif', imageBtnPrev: '/images/lightbox/prev.gif', imageBtnNext: '/images/lightbox/next.gif', containerResizeSpeed: 350, txtImage: 'Фото', txtOf: 'из' }); }) /* carousel */ $(document).ready(function(){ $("#carousel").carousel({ dispItems: 1, autoSlide: true, animSpeed: "slow", autoSlideInterval: 5000, loop: true, pagination: true }); }); // SWFObject 2.1 var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("