(function(){
if(!WPSTARTED){ 
var WP = function(wname){ var t=this;
	if(!t.flatvtours){ t.flatvtours = [] };
	if(typeof(t.gvar)=='undefined'){
		t.wins = []; 
		t.gvar = { 
			skin:'skin-white', spath:'',
			vt : { path:'http://webpokaz.ru/media/krpano/', width:850, height:530, background:'#9da0a8' },
			vtlink:'wpz', imagelink:'isg',
			sbw:100, sbh:100, spw:36, sph:36, tth:21, bth:20,
			oldrsf:null, fvt:[], bg:'', bgop:0,
			th:0, runing:true, stid:false, visible:0 } 
	}

	if(t.wins){ 
		if(wname){ var obj=null; 
			for (var i=0; i<t.wins.length; i++ ){ if(t.wins[i].name==wname){ obj=t.wins[i]; };}; 
			if(obj!==null){ return obj; } else { t.name = wname; return this };
		} else { t.visible = 0; for (var i=0; i<t.wins.length; i++ ){ if(t.wins[i].visible){ t.visible++ }; };};
	};
   
	t.newwin = function(p){ var o = new win(t.name);
		if(t.name){ t.wins.push( o ); WP(t.name).param(p); } else { alert('Window ID not set') } 
		t.name = null;
		return o;
	};

	t.setgvar = function(obj){ if(obj){ for(var key in obj){ t.gvar[key] = obj[key];}}; return this; };

	t.init = function(){
		if(t.gvar.runing){
			var newElem = document.createElement('link'); 
			newElem.setAttribute('rel','stylesheet'); 
			newElem.setAttribute('type','text/css'); 
			newElem.setAttribute('media','all'); 
			newElem.setAttribute('href',t.gvar.spath+t.gvar.skin+'/skin.css'); 
			var head = document.getElementsByTagName('head')[0]; head.insertBefore(newElem, head.firstChild); //document.getElementsByTagName('head')[0].appendChild(newElem);
			
			var newElem = document.createElement('div'); newElem.setAttribute('id','WPGbg');
			document.body.appendChild(newElem);

			t.setBG($('body').css('background-color'),0.7); 
			t.gvar.runing - false;
		}
		return this;
	};

	t.plugin = function(lp){ 
		for (var i=0; i<lp.length; i++) {
			var js = document.createElement('script'); 
			js.setAttribute('type','text/javascript'); 
			js.setAttribute('src',t.gvar.spath+lp[i]); 
			var head = document.getElementsByTagName('head')[0]; head.insertBefore(js, head.firstChild); //document.getElementsByTagName('head')[0].appendChild(js);
			// callback on load plugin script //js.onreadystatechange = function () { if (js.readyState == 'loaded') { alert(this.src+'-ready'); } } //js.onload = function () { alert(this.src+'-onload');}
		} return this; 
	};

	t.vtour = function(o){ t.flatvtours.push(o); return this };
	
	t.setBG = function(b,o){ t.gvar.bg=b; t.gvar.bgop=o; $('#WPGbg').css({ background:b, opacity:o }); return this };

	t.gss = function(){
		var w=document.documentElement; var d=document.body;
		var tww = document.compatMode=='CSS1Compat' && !window.opera?w.clientWidth:d.clientWidth;
		var twh = document.compatMode=='CSS1Compat' && !window.opera?w.clientHeight:d.clientHeight;
		var sl = (window.scrollX)?window.scrollX:(w.scrollLeft)?w.scrollLeft:d.scrollLeft;
		var st = (window.scrollY)?window.scrollY:(w.scrollTop)?w.scrollTop:d.scrollTop;
		var wW1 = (window.innerHeight && window.scrollMaxY)?d.scrollWidth:(d.scrollHeight > d.offsetHeight)?d.scrollWidth:(w && w.scrollHeight > w.offsetHeight)?w.scrollWidth:d.offsetWidth;
		var wH1 = (window.innerHeight && window.scrollMaxY)?d.scrollHeight:(d.scrollHeight > d.offsetHeight)?d.scrollHeight:(w && w.scrollHeight > w.offsetHeight)?w.scrollHeight:d.offsetHeight;
		var wW2 = (self.innerHeight)?self.innerWidth:(w && w.clientHeight)?w.clientWidth:d.clientWidth; var pW = (wW1 < wW2)?wW2:wW1;
		var wH2 = (self.innerHeight)?self.innerHeight:(w && w.clientHeight)?w.clientHeight:d.clientHeight; var pH = (wH1 < wH2)?wH2:wH1;
		pW = ($.browser.msie)?pW:Math.max(w.scrollWidth, w.clientWidth, d.scrollWidth, d.offsetWidth);
		pH = ($.browser.msie)?pH:Math.max(w.scrollHeight, w.clientHeight, d.scrollHeight, d.offsetHeight);
		if (window.opera){ tww = (d.scrollWidth==d.clientWidth)?w.clientWidth:tww; twh = (d.scrollHeight==d.clientHeight)?w.clientHeight:twh;}
		return { ww: tww, wh: twh, wsl: sl, wst: st, dw: pW, dh: pH	} 
	};

	t.resizeall = function(){ 
		$('#WPGbg').css({ width:'0px', height:'0px', display:'none'});
		for (var i=0; i < t.wins.length; i++){ if(t.wins[i].visible ){ t.wins[i].resize();} }; t.bgshowhide('show'); 
	};
	
	t.setBgsize = function(){ var lp=t.gss(); $('#WPGbg').css({ left:'0px', top:'0px', width:lp.dw+'px', height:lp.dh+'px' });  return this };

	t.bgresize = function(){ 
		if($.browser.msie){ var tid=setTimeout( function(){ t.setBgsize(); clearTimeout(tid); } ,1); } else { t.setBgsize(); } 
	};

	t.bgshowhide = function(lp){ 
		if(lp=='show'){ 
			$('.tohide').css({ visibility:'hidden' }); 
			t.bgresize(); 
			$('#WPGbg').css({ display:'block', background:t.gvar.bg, opacity:t.gvar.bgop }); 
		}
		if(lp=='hide'){ 
			window.onresize=t.gvar.oldrsf; t.gvar.oldrsf=null; 
			$('#WPGbg').css({ left:'0px', top:'0px', width:'0px', height:'0px', display:'none', opacity:0 }); 
			$('.tohide').css({ visibility:'visible' }); 
		} 
	};
	
	t.proto = function(f1,f2){
		Window[f1] = f2;
	}

	return this;
};

window.WP = WP;

var Winfunc = function (){ var t=this;

	t.showparam=function(lp){ var q='';	var s=''; for(var key in t){ 
		if(typeof(t[key])!='function'){ q=(typeof(t[key])=='string')?'"':''; s += key+':'+q+t[key]+q+'    '; } } alert(s);
		return this;
	};
	
	t.settitle=function(lp){ var tt=$('.WPGWttitle',this.div); var bt=$('.WPGWbtitle',this.div);
		if(lp){ 
			if(typeof(lp)=='string'){ this.title.text=lp; } 
			if(lp.align){ this.title.align=lp.align } if(lp.text){ this.title.text=lp.text }
			if(this.title.align=='top'){ tt.html(this.title.text).css({display:'block'}); bt.html(this.title.text).css({display:'none'}); }	
			if(this.title.align=='bottom'){ bt.html(this.title.text).css({display:'block'}); tt.html(this.title.text).css({display:'none'}); }
		} if(!lp || lp.text=='' || lp=='none' ){ $('.WPGWttitle, .WPGWbtitle',this.div).css({ display:'none'}); this.title={align:'top', text:''} }
		return this;
	};

	t.param=function(lp){ var div = this.div; var rsz=false; var rdrw=false; var t = this;
		if(lp){
			if(lp.width){ t.width=lp.width; rsz=true; } 
			if(lp.height){ t.height=lp.height; rsz=true; } 
			if(lp.left){ t.left=lp.left; rsz=true; } 
			if(lp.top){ t.top=lp.top; rsz=true; } 
			if(lp.storedrag!=undefined){ t.storedrag=lp.storedrag; } 
			if(lp.background){ t.background=lp.background; $('.WPGWbg',div).css({ background:t.background }); } 
			if(lp.dragable!=undefined){ t.dragable=lp.dragable; t.makedrag(t);  } 
			if(lp.innercorner!=undefined){ t.innercorner=lp.innercorner; rdrw=true; } 
			if(lp.title){ t.title=lp.title; t.settitle(t.title); } 
			if(lp.animation){ t.animation=lp.animation } 
			if(lp.contentID){ t.contentID=lp.contentID; if(t.firstcreate==false){$('.WPGWcontent',div).html($('#'+t.contentID).html());} } 
			if(lp.html){ t.html=lp.html; t.contentID=''; if(t.firstcreate==false){$('.WPGWcontent',div).html( t.html );} } 
			if(lp.naopacity){ t.naopacity=lp.naopacity } 
			if(lp.hideopacity){ t.hideopacity=lp.hideopacity }
			if(lp.autoresize!=undefined){ t.autoresize=lp.autoresize } 
			if(lp.removesource!=undefined){ t.removesource=lp.removesource; } 
			if(lp.navtab!=undefined){ t.navtab=lp.navtab; } 
			if(lp.closebtn!=undefined){ t.closebtn=lp.closebtn } 
		} else { rsz=rdrw=true; }
		if(rdrw){ t.redraw(); } if(t.firstcreate){ t.redraw(); t.resize(); t.firstcreate=false }
		if(rsz){ t.resize(); }
		var tobj=$('.WPGWlt, .WPGWlb, .WPGWrb, .WPGWl, .WPGWr, .WPGWt, .WPGWb, .WPGWttitle, .WPGWbtitle, .WPGWnavcenter',div);
		if(t.dragable){ tobj.css({ cursor:'move'}); }	else { tobj.css({ cursor:'default'});}
		if($.browser.msie  || $.browser.opera){ t.animation=0; } // off slow animation
		if(t.navtab){ $('.WPGWnav',div).css({ display:'block'}) } else { $('.WPGWnav',div).css({ display:'none'}); }
		if(typeof(t.width)=='string' || typeof(t.height)=='string'){ t.autoresize=false };
		return this;
	};
	
	t.redraw=function(){ var ic1=ic2=tt=bt=nt=''; var div=this.div; var t = this;
		if(t.innercorner){ ic1='<div class="WPGWrclt"><div class="WPGWrcrt"><div class="WPGWrclb">'; ic2='</div></div></div>'; }
		if(t.navtab){nt='<table class="WPGWnav" cellpadding="0" cellspacing="0" style="cursor:pointer; position:absolute;" border="0">'
			+'<tr><td class="WPGWnavleft"></td><td valign="middle" align="center" class="WPGWnavcenter drag">'
			+'<div class="WPGWloading"></div></td><td class="WPGWnavright"></td></tr></table>' } else { nt='' }
		$(div).html('<table cellpadding="0" cellspacing="0" class="WPGWlayout" width="0" height="0">'
			+'<tr height="36" valign="top"><td width="36" class="WPGWlt drag"><div class="WPGWspacer"></div></td><td class="WPGWt drag"></td>'
			+'<td width="36" class="WPGWrt"><div class="WPGWcbt">X<div class="WPGWcb"></div></div></td></tr>'
			+'<tr height="auto" valign="middle"><td class="WPGWl drag"><div class="WPGWtl"></div></td><td class="WPGWc">'
			+'<div class="WPGWttitle drag">'+t.title.text+'</div>'
			+'<div class="WPGWbg">'+ic1+'<div class="WPGWcontainer">' + nt
			+'<div class="WPGWcontent"></div></div>'+ic2+'</div>'
			+'<div class="WPGWbtitle drag">'+t.title.text+'</div>'
			+'</td><td class="WPGWr drag"><div class="WPGWtr"></div></td></tr>'
			+'<tr height="36"><td class="WPGWlb drag"></td><td class="WPGWb drag"></td>'
			+'<td class="WPGWrb drag"><div class="WPGWspacer"></div></td></tr></table>');
		if(t.innercorner){ $('.WPGWcontainer',div).addClass("WPGWrcrb"); }
		if(t.title=='none'){ $('.WPGWttitle .WPGWbtitle',div).css({display:'none'}); t.title={ align:'top', text:'' } } 
		if(t.title.text!=''){ if(t.title.align=='top'){ $('.WPGWttitle',div).css({display:'block'}); }
		if(t.title.align=='bottom'){ $('.WPGWbtitle',div).css({display:'block'}); } }
		$(div).css({ position:'absolute', border:'0px', background:'', opacity:t.hideopacity }); 
		$('.WPGWbg, .WPGWcontainer',div).css({ position:'', border:'0px' });
		$('.WPGWbg',div).css({ background:t.background }); 
		if(typeof(t.width)!='string'){$('.WPGWcontainer',div).css({ width:parseInt(t.width)+'px' });}
		if(typeof(t.height)!='string'){$('.WPGWcontainer',div).css({ height:parseInt(t.height)+'px' });}

		if(t.contentID!=''){ t.html=$('#'+t.contentID).html() }
		$('.WPGWcontent',div).html( t.html ); 
		if(t.removesource){ $('#'+t.contentID).remove() }
		
		if(!$.browser.msie){$(".WPGWcb").hover(function(){ $(this).css({ background:"url("+WP().gvar.spath+WP().gvar.skin+"/cb.png) 0px -36px no-repeat" });},
			function(){ $(this).css({ background:"url("+WP().gvar.spath+WP().gvar.skin+"/cb.png) 0px 0px no-repeat" });	});}

		var tobj=this; $('.WPGWcbt',div).click(function(event){ tobj.hide(); event.preventDefault(); }); $('.WPGWcbt',div).hide();
		div.onmousedown=function(e){ tobj.show() };
		t.makedrag(this); 
		iePNG();
		return this;
	};
	
	t.resize=function(){ var hp=true; var vp=true; var ss=WP().gss(); gv = WP().gvar; var div=this.div; var t = this;
		
		function shs(d){ if (d.style.display == 'none'){ d.style.visibility = 'hidden'; d.style.display = '';};};
		function shh(d){ if (d.style.visibility == 'hidden'){ d.style.visibility = 'visible'; d.style.display = 'none'; };};
		
		if(t.title.text != ''){ if(t.title.align=='top'){ var tth=gv.tth } if(t.title.align=='bottom'){ var tth=gv.bth }} else { var tth=0 }
		if(typeof(t.width)=='string' || typeof(t.height)=='string'){ shs(div)};
		var tw = (t.width=='page')?ss.dw-gv.spw*2:(t.width=='window')?ss.ww-gv.spw*2:(t.width=='content')?parseInt($('.WPGWcontent',div)[0].offsetWidth):parseInt(t.width);
		var th = (t.height=='page')?ss.dh-gv.sph*2-tth:(t.height=='window')?ss.wh-gv.sph*2-tth:(t.height=='content')?parseInt($('.WPGWcontent',div)[0].offsetHeight):parseInt(t.height);
		if(typeof(t.width)=='string' || typeof(t.height)=='string'){ shh(div)};
		var tcw=tw;  var tch=th; 

		var mcw=ss.ww-gv.sbw; var mch=ss.wh-gv.sbh; 
		if(t.autoresize){ if(tcw > mcw){ tch=(mcw*(th/tw)); tcw=mcw; };  if(tch > mch){ tcw=(mch*(tw/th)); tch=mch;}; }
		
		if(t.left=='wincenter'){ var wl=ss.wsl + (ss.ww - tcw - gv.spw*2)/2; hp=false }
		if(t.top=='wincenter'){ var wt=ss.wst + (ss.wh - tch - gv.sph*2 - tth)/3; vp=false }
		if(t.left=='winleft'){ var wl=ss.wsl; hp=false }
		if(t.left=='winright'){ var wl=ss.ww - tcw - gv.spw*2 + ss.wsl; hp=false }
		if(t.top=='wintop'){ var wt=ss.wst; vp=false }
		if(t.top=='winbottom'){ var wt=ss.wh - tch - gv.sph*2 - tth + ss.wst; vp=false }

		if(t.left=='pagecenter'){ var wl=(ss.dw - tcw - gv.spw*2)/2; hp=false; }
		if(t.top=='pagecenter'){ var wt=(ss.dbh - tch - gv.sph*2 - tth)/2; vp=false; }
		if(t.left=='pageleft'){ var wl=0; hp=false; }
		if(t.left=='pageright'){ var wl=ss.dw - tcw - gv.spw*2; hp=false; }
		if(t.top=='pagetop'){ var wt=0; vp=false; }
		if(t.top=='pagebottom'){ var wt=ss.dbh - tch - gv.sph*2 - tth; vp=false; }
		
		if(hp){ var wl=parseInt(t.left); } if(wl<0){wl=0}
		if(vp){ var wt=parseInt(t.top); } if(wt<0){wt=0}
			
		$(div).css({ left: wl + 'px', top: wt + 'px' });

		if(t.width!='content' ){ $('.WPGWcontainer, .WPGWnav',div).css({ width: tcw + 'px' }) }; 
		if(t.height!='content' ){ $('.WPGWcontainer, .WPGWnav',div).css({ height: tch + 'px' }) }; 
		t.curwidth = tcw; t.curheight = tch;
		
		$('.WPGWnavleft, .WPGWnavright, .WPGWnavcenter, .WPGWloading',div).css({ width: tcw/3 + 'px', height: tch + 'px' });
		t.onresize();
		return this;
	};
	
	t.setfocus=function(){ var tobj=null; var div = this.div; var t=this; div.style.zIndex=100000; if (t.active==false) {t.onfocus()};
		t.active=true; if(t.closebtn){ $('.WPGWcbt',div).show(); }
		for (var i=0; i<WP().wins.length; i++){ 
			if(WP().wins[i].visible && WP().wins[i].name != t.name ){ 
				tobj=document.getElementById(WP().wins[i].name); 
				tobj.style.zIndex--; $(tobj).stop();
				$(tobj).animate({ opacity:WP().wins[i].naopacity }, WP().wins[i].animation ); 
				if (WP().wins[i].active!=false) {WP().wins[i].onlostfocus()};
				WP().wins[i].active=false; $('.WPGWcbt',tobj).hide(); 
			} 
		} 
		return this;
	};
	
	t.setfocuspev=function(){ this.active=false; var tzi= czi=ti=0; var tobj=null; 
		for (var i=0; i<WP().wins.length; i++){ tobj=document.getElementById(WP().wins[i].name); czi=tobj.style.zIndex; 
			if(czi>tzi && czi<100000 && WP().wins[i].visible==true ){ tzi=czi, ti=i } } 
		if(WP().wins[ti].visible==true){ WP().wins[ti].show(); }
		return this;
	};
	
	t.show=function(){ var t=this; 
		t.onbeforeshow();
		if(WP().visible==0){ WP().gvar.oldrsf=window.onresize; window.onresize=function(){ WP().resizeall(); }; WP().bgshowhide('show');}
		if(t.visible==false){ t.resize(); t.visible=true; t.div.style.display='' } var tobj=this; var tid=t.div; 
		$(t.div).animate({ opacity: 1 },t.animation, function(){ if(WP().visible==0){ WP().bgshowhide('show'); }; tobj.onshow(); }); t.setfocus();
	};
	
	t.onshow=function(){ };
	t.onbeforeshow=function(){ };

	t.onhide=function(){ };
	t.onbeforehide=function(){ };

	t.onfocus=function(){ };
	t.onlostfocus=function(){ };
	
	t.onresize=function(){ };

	t.hide=function(){ var t=this; t.onbeforehide();
		var tobj=this; var tid=t.div; tobj.visible=false; $(t.div).stop(); $(t.div).animate( { opacity:t.hideopacity },t.animation,
			function(){ tid.style.display='none'; if(WP().visible==0){ WP().bgshowhide('hide'); } tobj.setfocuspev().onhide(); });
	};
	
	t.bind=function(objfunc,func){ var old=this[objfunc]; this[objfunc]=function(){ old(); func(); }; return this; };

	t.remove=function(){};
	
	t.makedrag=function(w){
			var draging=false; var offset=null; var dow=0; var doh=0; var ss=null; var div = this.div;
			var oldonmousemove=oldondragstart=oldonselectstart=oldonmouseup=null;
		function fixev(ev){	ev=ev || window.event; if(ev.pageX || ev.pageY){ return {x:ev.pageX, y:ev.pageY, targ:ev.target || ev.srcElement }; }
			return { x:ev.clientX + document.body.scrollLeft - document.body.clientLeft, 
			y:ev.clientY + document.body.scrollTop  - document.body.clientTop,
			targ:ev.target || ev.srcElement }; }

		function setoffset(c){	return { x:c.x-parseInt(div.style.left), y:c.y-parseInt(div.style.top) } }
		function mouseMove(mousePos){
			if(div==null){anbindmove(); return false}	mousePos=fixev(mousePos); 
			if(!draging){ draging=true;	offset=setoffset(mousePos); }
			var pw=mousePos.x-offset.x+'px'; var ph=mousePos.y-offset.y+'px';
			if( mousePos.x - offset.x<0){ div.style.left=0 
			} else if( mousePos.x-offset.x < ss.dw - dow ){ div.style.left=mousePos.x-offset.x + 'px' } else { ss.dw - dow + 'px' }
			if( mousePos.y - offset.y<0){ div.style.top=0 
			} else if( mousePos.y-offset.y < ss.dh - doh ){ div.style.top=mousePos.y-offset.y + 'px' } else { ss.dh - doh + 'px' } }
		function bindmove(ev){ anbindmove(); ss=WP().gss(); dow=div.offsetWidth; doh=div.offsetHeight;
			oldonmousemove=document.onmousemove; oldondragstart=document.ondragstart; 
			oldonselectstart=document.body.onselectstart; oldonmouseup=document.onmouseup;
			document.onmousemove=mouseMove; document.ondragstart=function(){ return false }; 
			document.body.onselectstart=function(){return false}  
			document.onmouseup=function (mousePos){ mousePos=fixev(mousePos); if(mousePos.targ.className!='WPGwindow'){ anbindmove()} };
			return false }
		function anbindmove(){ document.onmousemove=oldonmousemove; document.ondragstart=oldondragstart; 
			document.body.onselectstart=oldonselectstart; document.onmouseup=oldonmouseup; draging=false; 
			if(w.storedrag){w.left=parseInt(div.style.left); w.top=parseInt(div.style.top);} }
		var objarray=$('.drag',div); var elem=null;
		for (var i=0; i<objarray.length; i++){ elem=objarray[i]; 
			if(this.dragable){ elem.onmousedown=bindmove; elem.onmouseup =anbindmove; } else { elem.onmousedown=null }
		}
		return this;
	};
};

var Window = new Winfunc();

var win = function(n){ 
	this.name=n; this.width ='content'; this.height='content'; this.curwidth =380; this.curheight=250; 
	this.left='wincenter'; this.top='wincenter'; this.storedrag=true; this.navtab=false; this.removesource=false; 
	this.background='#FFFFFF'; this.dragable=true; this.innercorner=true; this.zindex=100000; 
	this.animation=0; this.naopacity=0.55; this.hideopacity=0.3; this.closebtn=true;
	if($.browser.msie  || $.browser.opera){ this.animation=0; } // off slow animation
	this.title={ align:'top', text:'' } ; this.contentID=''; this.html=''; this.active=false; this.visible=false; this.autoresize=false;
	
	var newElem = document.createElement('div'); newElem.id = this.name; document.body.appendChild(newElem);
	$('#'+this.name).css({ display:'none', 'z-index':100000, left:'-2000px' });

	var div=document.getElementById(n); this.div=div; this.firstcreate=true;
}

win.prototype = Window;

function ieAIL(obj, src, met){$(obj).css({ background : "none" , filter : "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='"+met+"');" });};

function iePNG(){ if($.browser.msie){ var url=WP().gvar.spath+WP().gvar.skin;
		ieAIL($('.WPGWlt'),url+'/lt.png','scale');
		ieAIL($('.WPGWt'),url+'/t.png','scale');
		ieAIL($('.WPGWrt'),url+'/rt.png','scale');
		ieAIL($('.WPGWl'),url+'/l.png','scale');
		ieAIL($('.WPGWr'),url+'/r.png','scale');
		ieAIL($('.WPGWlb'),url+'/lb.png','scale');
		ieAIL($('.WPGWb'),url+'/b.png','scale');
		ieAIL($('.WPGWrb'),url+'/rb.png','scale');
		ieAIL($('.WPGWcb'),url+'/cb.png','crop');
		ieAIL($('.WPGWtl'),url+'/tl.png','scale');
		ieAIL($('.WPGWtr'),url+'/tr.png','scale');
		ieAIL($('.WPGWttl'),url+'/ttl.png','scale');
		ieAIL($('.WPGWttbg'),url+'/tt.png','scale');
		ieAIL($('.WPGWttr'),url+'/ttr.png','scale'); }; };
/* DRUG ###############################################################################################################################*/

WP().setgvar({ skin:'skin-white', spath:'http://www.webpokaz.ru/media/scripts/' }).plugin([ 'wpz-images.js','krpano.js','wpz-vtours.js' ]);

$(document).ready(function(){ WP().init(); $('.'+WP().gvar.vtlink+', .'+WP().gvar.imagelink).css({ visibility:'hidden'}); WP('WPmessage').newwin(); });

} //else { alert('WP exist!'); }
})();
var WPSTARTED=true; 
