// Garden Gnome Software - Skin
// Pano2VR 4.5.3/10717
// Filename: 0000001_holo_new_testyskorki_h5.ggsk
// Generated Pt 15. kwi 22:49:58 2016

function pano2vrSkin(player,base) {
	var me=this;
	var flag=false;
	var nodeMarker=new Array();
	var activeNodeMarker=new Array();
	this.player=player;
	this.player.skinObj=this;
	this.divSkin=player.divSkin;
	var basePath="";
	// auto detect base path
	if (base=='?') {
		var scripts = document.getElementsByTagName('script');
		for(var i=0;i<scripts.length;i++) {
			var src=scripts[i].src;
			if (src.indexOf('skin.js')>=0) {
				var p=src.lastIndexOf('/');
				if (p>=0) {
					basePath=src.substr(0,p+1);
				}
			}
		}
	} else
	if (base) {
		basePath=base;
	}
	this.elementMouseDown=new Array();
	this.elementMouseOver=new Array();
	var cssPrefix='';
	var domTransition='transition';
	var domTransform='transform';
	var prefixes='Webkit,Moz,O,ms,Ms'.split(',');
	var i;
	for(i=0;i<prefixes.length;i++) {
		if (typeof document.body.style[prefixes[i] + 'Transform'] !== 'undefined') {
			cssPrefix='-' + prefixes[i].toLowerCase() + '-';
			domTransition=prefixes[i] + 'Transition';
			domTransform=prefixes[i] + 'Transform';
		}
	}
	
	this.player.setMargins(0,0,0,0);
	
	this.updateSize=function(startElement) {
		var stack=new Array();
		stack.push(startElement);
		while(stack.length>0) {
			e=stack.pop();
			if (e.ggUpdatePosition) {
				e.ggUpdatePosition();
			}
			if (e.hasChildNodes()) {
				for(i=0;i<e.childNodes.length;i++) {
					stack.push(e.childNodes[i]);
				}
			}
		}
	}
	
	parameterToTransform=function(p) {
		var hs='translate(' + p.rx + 'px,' + p.ry + 'px) rotate(' + p.a + 'deg) scale(' + p.sx + ',' + p.sy + ')';
		return hs;
	}
	
	this.findElements=function(id,regex) {
		var r=new Array();
		var stack=new Array();
		var pat=new RegExp(id,'');
		stack.push(me.divSkin);
		while(stack.length>0) {
			e=stack.pop();
			if (regex) {
				if (pat.test(e.ggId)) r.push(e);
			} else {
				if (e.ggId==id) r.push(e);
			}
			if (e.hasChildNodes()) {
				for(i=0;i<e.childNodes.length;i++) {
					stack.push(e.childNodes[i]);
				}
			}
		}
		return r;
	}
	
	this.preloadImages=function() {
		var preLoadImg=new Image();
		preLoadImg.src=basePath + 'images/left__o.png';
		preLoadImg.src=basePath + 'images/right__o.png';
		preLoadImg.src=basePath + 'images/zoom_out__o.png';
		preLoadImg.src=basePath + 'images/down__o.png';
		preLoadImg.src=basePath + 'images/up__o.png';
		preLoadImg.src=basePath + 'images/zoom_in__o.png';
	}
	
	this.addSkin=function() {
		this._toolbar=document.createElement('div');
		this._toolbar.ggId="toolbar";
		this._toolbar.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
		this._toolbar.ggVisible=true;
		this._toolbar.className='ggskin ggskin_container';
		this._toolbar.ggType='container';
		this._toolbar.ggUpdatePosition=function() {
			this.style[domTransition]='none';
			if (this.parentNode) {
				w=this.parentNode.offsetWidth;
				this.style.left=Math.floor(-111 + w/2) + 'px';
				h=this.parentNode.offsetHeight;
				this.style.top=Math.floor(-38 + h) + 'px';
			}
		}
		hs ='position:absolute;';
		hs+='left: -111px;';
		hs+='top:  -38px;';
		hs+='width: 211px;';
		hs+='height: 32px;';
		hs+=cssPrefix + 'transform-origin: 50% 50%;';
		hs+='visibility: inherit;';
		this._toolbar.setAttribute('style',hs);
		this._left=document.createElement('div');
		this._left.ggId="left";
		this._left.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
		this._left.ggVisible=true;
		this._left.className='ggskin ggskin_button';
		this._left.ggType='button';
		hs ='position:absolute;';
		hs+='left: 132px;';
		hs+='top:  -2px;';
		hs+='width: 39px;';
		hs+='height: 40px;';
		hs+=cssPrefix + 'transform-origin: 50% 50%;';
		hs+='visibility: inherit;';
		hs+='cursor: pointer;';
		this._left.setAttribute('style',hs);
		this._left__img=document.createElement('img');
		this._left__img.className='ggskin ggskin_button';
		this._left__img.setAttribute('src',basePath + 'images/left.png');
		this._left__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
		this._left__img.className='ggskin ggskin_button';
		this._left__img['ondragstart']=function() { return false; };
		me.player.checkLoaded.push(this._left__img);
		this._left.appendChild(this._left__img);
		this._left.onmouseover=function () {
			me._left__img.src=basePath + 'images/left__o.png';
		}
		this._left.onmouseout=function () {
			me._left__img.src=basePath + 'images/left.png';
			me.elementMouseDown['left']=false;
		}
		this._left.onmousedown=function () {
			me.elementMouseDown['left']=true;
		}
		this._left.onmouseup=function () {
			me.elementMouseDown['left']=false;
		}
		this._left.ontouchend=function () {
			me.elementMouseDown['left']=false;
		}
		this._toolbar.appendChild(this._left);
		this._right=document.createElement('div');
		this._right.ggId="right";
		this._right.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
		this._right.ggVisible=true;
		this._right.className='ggskin ggskin_button';
		this._right.ggType='button';
		hs ='position:absolute;';
		hs+='left: 170px;';
		hs+='top:  -2px;';
		hs+='width: 39px;';
		hs+='height: 40px;';
		hs+=cssPrefix + 'transform-origin: 50% 50%;';
		hs+='visibility: inherit;';
		hs+='cursor: pointer;';
		this._right.setAttribute('style',hs);
		this._right__img=document.createElement('img');
		this._right__img.className='ggskin ggskin_button';
		this._right__img.setAttribute('src',basePath + 'images/right.png');
		this._right__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
		this._right__img.className='ggskin ggskin_button';
		this._right__img['ondragstart']=function() { return false; };
		me.player.checkLoaded.push(this._right__img);
		this._right.appendChild(this._right__img);
		this._right.onmouseover=function () {
			me._right__img.src=basePath + 'images/right__o.png';
		}
		this._right.onmouseout=function () {
			me._right__img.src=basePath + 'images/right.png';
			me.elementMouseDown['right']=false;
		}
		this._right.onmousedown=function () {
			me.elementMouseDown['right']=true;
		}
		this._right.onmouseup=function () {
			me.elementMouseDown['right']=false;
		}
		this._right.ontouchend=function () {
			me.elementMouseDown['right']=false;
		}
		this._toolbar.appendChild(this._right);
		this._zoom_out=document.createElement('div');
		this._zoom_out.ggId="zoom out";
		this._zoom_out.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
		this._zoom_out.ggVisible=true;
		this._zoom_out.className='ggskin ggskin_button';
		this._zoom_out.ggType='button';
		hs ='position:absolute;';
		hs+='left: -30px;';
		hs+='top:  -1px;';
		hs+='width: 44px;';
		hs+='height: 40px;';
		hs+=cssPrefix + 'transform-origin: 50% 50%;';
		hs+='visibility: inherit;';
		hs+='cursor: pointer;';
		this._zoom_out.setAttribute('style',hs);
		this._zoom_out__img=document.createElement('img');
		this._zoom_out__img.className='ggskin ggskin_button';
		this._zoom_out__img.setAttribute('src',basePath + 'images/zoom_out.png');
		this._zoom_out__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
		this._zoom_out__img.className='ggskin ggskin_button';
		this._zoom_out__img['ondragstart']=function() { return false; };
		me.player.checkLoaded.push(this._zoom_out__img);
		this._zoom_out.appendChild(this._zoom_out__img);
		this._zoom_out.onmouseover=function () {
			me._zoom_out__img.src=basePath + 'images/zoom_out__o.png';
		}
		this._zoom_out.onmouseout=function () {
			me._zoom_out__img.src=basePath + 'images/zoom_out.png';
			me.elementMouseDown['zoom_out']=false;
		}
		this._zoom_out.onmousedown=function () {
			me.elementMouseDown['zoom_out']=true;
		}
		this._zoom_out.onmouseup=function () {
			me.elementMouseDown['zoom_out']=false;
		}
		this._zoom_out.ontouchend=function () {
			me.elementMouseDown['zoom_out']=false;
		}
		this._toolbar.appendChild(this._zoom_out);
		this._down=document.createElement('div');
		this._down.ggId="down";
		this._down.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
		this._down.ggVisible=true;
		this._down.className='ggskin ggskin_button';
		this._down.ggType='button';
		hs ='position:absolute;';
		hs+='left: 13px;';
		hs+='top:  -2px;';
		hs+='width: 39px;';
		hs+='height: 40px;';
		hs+=cssPrefix + 'transform-origin: 50% 50%;';
		hs+='visibility: inherit;';
		hs+='cursor: pointer;';
		this._down.setAttribute('style',hs);
		this._down__img=document.createElement('img');
		this._down__img.className='ggskin ggskin_button';
		this._down__img.setAttribute('src',basePath + 'images/down.png');
		this._down__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
		this._down__img.className='ggskin ggskin_button';
		this._down__img['ondragstart']=function() { return false; };
		me.player.checkLoaded.push(this._down__img);
		this._down.appendChild(this._down__img);
		this._down.onmouseover=function () {
			me._down__img.src=basePath + 'images/down__o.png';
		}
		this._down.onmouseout=function () {
			me._down__img.src=basePath + 'images/down.png';
			me.elementMouseDown['down']=false;
		}
		this._down.onmousedown=function () {
			me.elementMouseDown['down']=true;
		}
		this._down.onmouseup=function () {
			me.elementMouseDown['down']=false;
		}
		this._down.ontouchend=function () {
			me.elementMouseDown['down']=false;
		}
		this._toolbar.appendChild(this._down);
		this._up=document.createElement('div');
		this._up.ggId="up";
		this._up.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
		this._up.ggVisible=true;
		this._up.className='ggskin ggskin_button';
		this._up.ggType='button';
		hs ='position:absolute;';
		hs+='left: 52px;';
		hs+='top:  -2px;';
		hs+='width: 39px;';
		hs+='height: 40px;';
		hs+=cssPrefix + 'transform-origin: 50% 50%;';
		hs+='visibility: inherit;';
		hs+='cursor: pointer;';
		this._up.setAttribute('style',hs);
		this._up__img=document.createElement('img');
		this._up__img.className='ggskin ggskin_button';
		this._up__img.setAttribute('src',basePath + 'images/up.png');
		this._up__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
		this._up__img.className='ggskin ggskin_button';
		this._up__img['ondragstart']=function() { return false; };
		me.player.checkLoaded.push(this._up__img);
		this._up.appendChild(this._up__img);
		this._up.onmouseover=function () {
			me._up__img.src=basePath + 'images/up__o.png';
		}
		this._up.onmouseout=function () {
			me._up__img.src=basePath + 'images/up.png';
			me.elementMouseDown['up']=false;
		}
		this._up.onmousedown=function () {
			me.elementMouseDown['up']=true;
		}
		this._up.onmouseup=function () {
			me.elementMouseDown['up']=false;
		}
		this._up.ontouchend=function () {
			me.elementMouseDown['up']=false;
		}
		this._toolbar.appendChild(this._up);
		this._zoom_in=document.createElement('div');
		this._zoom_in.ggId="zoom in";
		this._zoom_in.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
		this._zoom_in.ggVisible=true;
		this._zoom_in.className='ggskin ggskin_button';
		this._zoom_in.ggType='button';
		hs ='position:absolute;';
		hs+='left: 208px;';
		hs+='top:  -1px;';
		hs+='width: 44px;';
		hs+='height: 40px;';
		hs+=cssPrefix + 'transform-origin: 50% 50%;';
		hs+='visibility: inherit;';
		hs+='cursor: pointer;';
		this._zoom_in.setAttribute('style',hs);
		this._zoom_in__img=document.createElement('img');
		this._zoom_in__img.className='ggskin ggskin_button';
		this._zoom_in__img.setAttribute('src',basePath + 'images/zoom_in.png');
		this._zoom_in__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
		this._zoom_in__img.className='ggskin ggskin_button';
		this._zoom_in__img['ondragstart']=function() { return false; };
		me.player.checkLoaded.push(this._zoom_in__img);
		this._zoom_in.appendChild(this._zoom_in__img);
		this._zoom_in.onmouseover=function () {
			me._zoom_in__img.src=basePath + 'images/zoom_in__o.png';
		}
		this._zoom_in.onmouseout=function () {
			me._zoom_in__img.src=basePath + 'images/zoom_in.png';
			me.elementMouseDown['zoom_in']=false;
		}
		this._zoom_in.onmousedown=function () {
			me.elementMouseDown['zoom_in']=true;
		}
		this._zoom_in.onmouseup=function () {
			me.elementMouseDown['zoom_in']=false;
		}
		this._zoom_in.ontouchend=function () {
			me.elementMouseDown['zoom_in']=false;
		}
		this._toolbar.appendChild(this._zoom_in);
		this.divSkin.appendChild(this._toolbar);
		this.preloadImages();
		this.divSkin.ggUpdateSize=function(w,h) {
			me.updateSize(me.divSkin);
		}
		this.divSkin.ggViewerInit=function() {
		}
		this.divSkin.ggLoaded=function() {
		}
		this.divSkin.ggReLoaded=function() {
		}
		this.divSkin.ggLoadedLevels=function() {
		}
		this.divSkin.ggReLoadedLevels=function() {
		}
		this.divSkin.ggEnterFullscreen=function() {
		}
		this.divSkin.ggExitFullscreen=function() {
		}
		this.skinTimerEvent();
	};
	this.hotspotProxyClick=function(id) {
	}
	this.hotspotProxyOver=function(id) {
	}
	this.hotspotProxyOut=function(id) {
	}
	this.changeActiveNode=function(id) {
		var newMarker=new Array();
		var i,j;
		var tags=me.player.userdata.tags;
		for (i=0;i<nodeMarker.length;i++) {
			var match=false;
			if ((nodeMarker[i].ggMarkerNodeId==id) && (id!='')) match=true;
			for(j=0;j<tags.length;j++) {
				if (nodeMarker[i].ggMarkerNodeId==tags[j]) match=true;
			}
			if (match) {
				newMarker.push(nodeMarker[i]);
			}
		}
		for(i=0;i<activeNodeMarker.length;i++) {
			if (newMarker.indexOf(activeNodeMarker[i])<0) {
				if (activeNodeMarker[i].ggMarkerNormal) {
					activeNodeMarker[i].ggMarkerNormal.style.visibility='inherit';
				}
				if (activeNodeMarker[i].ggMarkerActive) {
					activeNodeMarker[i].ggMarkerActive.style.visibility='hidden';
				}
				if (activeNodeMarker[i].ggDeactivate) {
					activeNodeMarker[i].ggDeactivate();
				}
			}
		}
		for(i=0;i<newMarker.length;i++) {
			if (activeNodeMarker.indexOf(newMarker[i])<0) {
				if (newMarker[i].ggMarkerNormal) {
					newMarker[i].ggMarkerNormal.style.visibility='hidden';
				}
				if (newMarker[i].ggMarkerActive) {
					newMarker[i].ggMarkerActive.style.visibility='inherit';
				}
				if (newMarker[i].ggActivate) {
					newMarker[i].ggActivate();
				}
			}
		}
		activeNodeMarker=newMarker;
	}
	this.skinTimerEvent=function() {
		setTimeout(function() { me.skinTimerEvent(); }, 10);
		if (me.elementMouseDown['left']) {
			me.player.changePanLog(0.5,true);
		}
		if (me.elementMouseDown['right']) {
			me.player.changePanLog(-0.5,true);
		}
		if (me.elementMouseDown['zoom_out']) {
			me.player.changeFovLog(0.4,true);
		}
		if (me.elementMouseDown['down']) {
			me.player.changeTiltLog(-0.5,true);
		}
		if (me.elementMouseDown['up']) {
			me.player.changeTiltLog(0.5,true);
		}
		if (me.elementMouseDown['zoom_in']) {
			me.player.changeFovLog(-0.4,true);
		}
	};
	function SkinHotspotClass(skinObj,hotspot) {
		var me=this;
		var flag=false;
		this.player=skinObj.player;
		this.skin=skinObj;
		this.hotspot=hotspot;
		this.elementMouseDown=new Array();
		this.elementMouseOver=new Array();
		this.__div=document.createElement('div');
		this.__div.setAttribute('style','position:absolute; left:0px;top:0px;visibility: inherit;');
		
		this.findElements=function(id,regex) {
			return me.skin.findElements(id,regex);
		}
		
		if (hotspot.skinid=='hsl') {
			this.__div=document.createElement('div');
			this.__div.ggId="hsl";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 57px;';
			hs+='top:  93px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,"");
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths7.style[domTransition]='none';
				me._ths7.style.opacity='0';
				me._ths7.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths7=document.createElement('div');
			this._ths7__text=document.createElement('div');
			this._ths7.className='ggskin ggskin_textdiv';
			this._ths7.ggTextDiv=this._ths7__text;
			this._ths7.ggId="ths";
			this._ths7.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths7.ggVisible=true;
			this._ths7.className='ggskin ggskin_text';
			this._ths7.ggType='text';
			this._ths7.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -34px;';
			hs+='top:  -58px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths7.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000033;';
			hs+='border: 1px solid #000131;';
			hs+='color: #ffffff;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths7__text.setAttribute('style',hs);
			this._ths7.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths7.appendChild(this._ths7__text);
			this.__div.appendChild(this._ths7);
			this._przycisk_18=document.createElement('div');
			this._przycisk_18.ggId="Przycisk 18";
			this._przycisk_18.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_18.ggVisible=true;
			this._przycisk_18.className='ggskin ggskin_button';
			this._przycisk_18.ggType='button';
			hs ='position:absolute;';
			hs+='left: -26px;';
			hs+='top:  -26px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_18.setAttribute('style',hs);
			this._przycisk_18__img=document.createElement('img');
			this._przycisk_18__img.className='ggskin ggskin_button';
			this._przycisk_18__img.setAttribute('src',basePath + 'images/przycisk_18.png');
			this._przycisk_18__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_18__img.className='ggskin ggskin_button';
			this._przycisk_18__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_18__img);
			this._przycisk_18.appendChild(this._przycisk_18__img);
			this._przycisk_18.onmouseover=function () {
				me._przycisk_18__img.src=basePath + 'images/przycisk_18__o.png';
			}
			this._przycisk_18.onmouseout=function () {
				me._przycisk_18__img.src=basePath + 'images/przycisk_18.png';
			}
			this.__div.appendChild(this._przycisk_18);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths7.style[domTransition]='none';
					me._ths7.style.opacity='1';
					me._ths7.style.visibility=me._ths7.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hsr') {
			this.__div=document.createElement('div');
			this.__div.ggId="hsr";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 56px;';
			hs+='top:  96px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,"");
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths6.style[domTransition]='none';
				me._ths6.style.opacity='0';
				me._ths6.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths6=document.createElement('div');
			this._ths6__text=document.createElement('div');
			this._ths6.className='ggskin ggskin_textdiv';
			this._ths6.ggTextDiv=this._ths6__text;
			this._ths6.ggId="ths";
			this._ths6.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths6.ggVisible=true;
			this._ths6.className='ggskin ggskin_text';
			this._ths6.ggType='text';
			this._ths6.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -33px;';
			hs+='top:  -62px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths6.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000033;';
			hs+='border: 1px solid #000131;';
			hs+='color: #ffffff;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths6__text.setAttribute('style',hs);
			this._ths6.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths6.appendChild(this._ths6__text);
			this.__div.appendChild(this._ths6);
			this._przycisk_19=document.createElement('div');
			this._przycisk_19.ggId="Przycisk 19";
			this._przycisk_19.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_19.ggVisible=true;
			this._przycisk_19.className='ggskin ggskin_button';
			this._przycisk_19.ggType='button';
			hs ='position:absolute;';
			hs+='left: -29px;';
			hs+='top:  -27px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_19.setAttribute('style',hs);
			this._przycisk_19__img=document.createElement('img');
			this._przycisk_19__img.className='ggskin ggskin_button';
			this._przycisk_19__img.setAttribute('src',basePath + 'images/przycisk_19.png');
			this._przycisk_19__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_19__img.className='ggskin ggskin_button';
			this._przycisk_19__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_19__img);
			this._przycisk_19.appendChild(this._przycisk_19__img);
			this._przycisk_19.onmouseover=function () {
				me._przycisk_19__img.src=basePath + 'images/przycisk_19__o.png';
			}
			this._przycisk_19.onmouseout=function () {
				me._przycisk_19__img.src=basePath + 'images/przycisk_19.png';
			}
			this.__div.appendChild(this._przycisk_19);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths6.style[domTransition]='none';
					me._ths6.style.opacity='1';
					me._ths6.style.visibility=me._ths6.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hir') {
			this.__div=document.createElement('div');
			this.__div.ggId="hir";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 57px;';
			hs+='top:  96px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,me.hotspot.target);
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths5.style[domTransition]='none';
				me._ths5.style.opacity='0';
				me._ths5.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths5=document.createElement('div');
			this._ths5__text=document.createElement('div');
			this._ths5.className='ggskin ggskin_textdiv';
			this._ths5.ggTextDiv=this._ths5__text;
			this._ths5.ggId="ths";
			this._ths5.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths5.ggVisible=true;
			this._ths5.className='ggskin ggskin_text';
			this._ths5.ggType='text';
			this._ths5.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -35px;';
			hs+='top:  -62px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths5.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000033;';
			hs+='border: 1px solid #000131;';
			hs+='color: #ffffff;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths5__text.setAttribute('style',hs);
			this._ths5.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths5.appendChild(this._ths5__text);
			this.__div.appendChild(this._ths5);
			this._przycisk_170=document.createElement('div');
			this._przycisk_170.ggId="Przycisk 17";
			this._przycisk_170.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_170.ggVisible=true;
			this._przycisk_170.className='ggskin ggskin_button';
			this._przycisk_170.ggType='button';
			hs ='position:absolute;';
			hs+='left: -32px;';
			hs+='top:  -27px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_170.setAttribute('style',hs);
			this._przycisk_170__img=document.createElement('img');
			this._przycisk_170__img.className='ggskin ggskin_button';
			this._przycisk_170__img.setAttribute('src',basePath + 'images/przycisk_170.png');
			this._przycisk_170__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_170__img.className='ggskin ggskin_button';
			this._przycisk_170__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_170__img);
			this._przycisk_170.appendChild(this._przycisk_170__img);
			this._przycisk_170.onmouseover=function () {
				me._przycisk_170__img.src=basePath + 'images/przycisk_170__o.png';
			}
			this._przycisk_170.onmouseout=function () {
				me._przycisk_170__img.src=basePath + 'images/przycisk_170.png';
			}
			this.__div.appendChild(this._przycisk_170);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths5.style[domTransition]='none';
					me._ths5.style.opacity='1';
					me._ths5.style.visibility=me._ths5.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hil') {
			this.__div=document.createElement('div');
			this.__div.ggId="hil";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 55px;';
			hs+='top:  95px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,me.hotspot.target);
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths4.style[domTransition]='none';
				me._ths4.style.opacity='0';
				me._ths4.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths4=document.createElement('div');
			this._ths4__text=document.createElement('div');
			this._ths4.className='ggskin ggskin_textdiv';
			this._ths4.ggTextDiv=this._ths4__text;
			this._ths4.ggId="ths";
			this._ths4.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths4.ggVisible=true;
			this._ths4.className='ggskin ggskin_text';
			this._ths4.ggType='text';
			this._ths4.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -40px;';
			hs+='top:  55px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths4.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000033;';
			hs+='border: 1px solid #000131;';
			hs+='color: #ffffff;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths4__text.setAttribute('style',hs);
			this._ths4.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths4.appendChild(this._ths4__text);
			this.__div.appendChild(this._ths4);
			this._przycisk_17=document.createElement('div');
			this._przycisk_17.ggId="Przycisk 17";
			this._przycisk_17.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_17.ggVisible=true;
			this._przycisk_17.className='ggskin ggskin_button';
			this._przycisk_17.ggType='button';
			hs ='position:absolute;';
			hs+='left: -29px;';
			hs+='top:  -27px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_17.setAttribute('style',hs);
			this._przycisk_17__img=document.createElement('img');
			this._przycisk_17__img.className='ggskin ggskin_button';
			this._przycisk_17__img.setAttribute('src',basePath + 'images/przycisk_17.png');
			this._przycisk_17__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_17__img.className='ggskin ggskin_button';
			this._przycisk_17__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_17__img);
			this._przycisk_17.appendChild(this._przycisk_17__img);
			this._przycisk_17.onmouseover=function () {
				me._przycisk_17__img.src=basePath + 'images/przycisk_17__o.png';
			}
			this._przycisk_17.onmouseout=function () {
				me._przycisk_17__img.src=basePath + 'images/przycisk_17.png';
			}
			this.__div.appendChild(this._przycisk_17);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths4.style[domTransition]='none';
					me._ths4.style.opacity='1';
					me._ths4.style.visibility=me._ths4.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hspow') {
			this.__div=document.createElement('div');
			this.__div.ggId="hspow";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 55px;';
			hs+='top:  94px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,"");
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths3.style[domTransition]='none';
				me._ths3.style.opacity='0';
				me._ths3.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths3=document.createElement('div');
			this._ths3__text=document.createElement('div');
			this._ths3.className='ggskin ggskin_textdiv';
			this._ths3.ggTextDiv=this._ths3__text;
			this._ths3.ggId="ths";
			this._ths3.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths3.ggVisible=true;
			this._ths3.className='ggskin ggskin_text';
			this._ths3.ggType='text';
			this._ths3.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -32px;';
			hs+='top:  -60px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths3.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000033;';
			hs+='border: 1px solid #000131;';
			hs+='color: #ffffff;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths3__text.setAttribute('style',hs);
			this._ths3.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths3.appendChild(this._ths3__text);
			this.__div.appendChild(this._ths3);
			this._przycisk1111=document.createElement('div');
			this._przycisk1111.ggId="Przycisk1111";
			this._przycisk1111.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk1111.ggVisible=true;
			this._przycisk1111.className='ggskin ggskin_button';
			this._przycisk1111.ggType='button';
			hs ='position:absolute;';
			hs+='left: -26px;';
			hs+='top:  -26px;';
			hs+='width: 52px;';
			hs+='height: 52px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk1111.setAttribute('style',hs);
			this._przycisk1111__img=document.createElement('img');
			this._przycisk1111__img.className='ggskin ggskin_button';
			this._przycisk1111__img.setAttribute('src',basePath + 'images/przycisk1111.png');
			this._przycisk1111__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk1111__img.className='ggskin ggskin_button';
			this._przycisk1111__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk1111__img);
			this._przycisk1111.appendChild(this._przycisk1111__img);
			this._przycisk1111.onmouseover=function () {
				me._przycisk1111__img.src=basePath + 'images/przycisk1111__o.png';
			}
			this._przycisk1111.onmouseout=function () {
				me._przycisk1111__img.src=basePath + 'images/przycisk1111.png';
			}
			this.__div.appendChild(this._przycisk1111);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths3.style[domTransition]='none';
					me._ths3.style.opacity='1';
					me._ths3.style.visibility=me._ths3.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hob') {
			this.__div=document.createElement('div');
			this.__div.ggId="hob";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 155px;';
			hs+='top:  57px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,me.hotspot.target);
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths2.style[domTransition]='none';
				me._ths2.style.opacity='0';
				me._ths2.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths2=document.createElement('div');
			this._ths2__text=document.createElement('div');
			this._ths2.className='ggskin ggskin_textdiv';
			this._ths2.ggTextDiv=this._ths2__text;
			this._ths2.ggId="ths";
			this._ths2.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths2.ggVisible=true;
			this._ths2.className='ggskin ggskin_text';
			this._ths2.ggType='text';
			this._ths2.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -26px;';
			hs+='top:  -52px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths2.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000131;';
			hs+='border: 1px solid #000131;';
			hs+='color: #0099cc;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths2__text.setAttribute('style',hs);
			this._ths2.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths2.appendChild(this._ths2__text);
			this.__div.appendChild(this._ths2);
			this._przycisk_1789=document.createElement('div');
			this._przycisk_1789.ggId="Przycisk 1789";
			this._przycisk_1789.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_1789.ggVisible=true;
			this._przycisk_1789.className='ggskin ggskin_button';
			this._przycisk_1789.ggType='button';
			hs ='position:absolute;';
			hs+='left: -29px;';
			hs+='top:  -27px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_1789.setAttribute('style',hs);
			this._przycisk_1789__img=document.createElement('img');
			this._przycisk_1789__img.className='ggskin ggskin_button';
			this._przycisk_1789__img.setAttribute('src',basePath + 'images/przycisk_1789.png');
			this._przycisk_1789__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_1789__img.className='ggskin ggskin_button';
			this._przycisk_1789__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_1789__img);
			this._przycisk_1789.appendChild(this._przycisk_1789__img);
			this._przycisk_1789.onmouseover=function () {
				me._przycisk_1789__img.src=basePath + 'images/przycisk_1789__o.png';
			}
			this._przycisk_1789.onmouseout=function () {
				me._przycisk_1789__img.src=basePath + 'images/przycisk_1789.png';
			}
			this.__div.appendChild(this._przycisk_1789);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths2.style[domTransition]='none';
					me._ths2.style.opacity='1';
					me._ths2.style.visibility=me._ths2.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hobl') {
			this.__div=document.createElement('div');
			this.__div.ggId="hobl";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 155px;';
			hs+='top:  57px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,me.hotspot.target);
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths1.style[domTransition]='none';
				me._ths1.style.opacity='0';
				me._ths1.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths1=document.createElement('div');
			this._ths1__text=document.createElement('div');
			this._ths1.className='ggskin ggskin_textdiv';
			this._ths1.ggTextDiv=this._ths1__text;
			this._ths1.ggId="ths";
			this._ths1.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths1.ggVisible=true;
			this._ths1.className='ggskin ggskin_text';
			this._ths1.ggType='text';
			this._ths1.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -40px;';
			hs+='top:  51px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths1.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000131;';
			hs+='border: 1px solid #000131;';
			hs+='color: #0099cc;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths1__text.setAttribute('style',hs);
			this._ths1.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths1.appendChild(this._ths1__text);
			this.__div.appendChild(this._ths1);
			this._przycisk_459=document.createElement('div');
			this._przycisk_459.ggId="Przycisk 459";
			this._przycisk_459.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_459.ggVisible=true;
			this._przycisk_459.className='ggskin ggskin_button';
			this._przycisk_459.ggType='button';
			hs ='position:absolute;';
			hs+='left: -29px;';
			hs+='top:  -27px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_459.setAttribute('style',hs);
			this._przycisk_459__img=document.createElement('img');
			this._przycisk_459__img.className='ggskin ggskin_button';
			this._przycisk_459__img.setAttribute('src',basePath + 'images/przycisk_459.png');
			this._przycisk_459__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_459__img.className='ggskin ggskin_button';
			this._przycisk_459__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_459__img);
			this._przycisk_459.appendChild(this._przycisk_459__img);
			this._przycisk_459.onmouseover=function () {
				me._przycisk_459__img.src=basePath + 'images/przycisk_459__o.png';
			}
			this._przycisk_459.onmouseout=function () {
				me._przycisk_459__img.src=basePath + 'images/przycisk_459.png';
			}
			this.__div.appendChild(this._przycisk_459);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths1.style[domTransition]='none';
					me._ths1.style.opacity='1';
					me._ths1.style.visibility=me._ths1.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hsarr') {
			this.__div=document.createElement('div');
			this.__div.ggId="hsarr";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 748px;';
			hs+='top:  218px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,me.hotspot.target);
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths0.style[domTransition]='none';
				me._ths0.style.opacity='0';
				me._ths0.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths0=document.createElement('div');
			this._ths0__text=document.createElement('div');
			this._ths0.className='ggskin ggskin_textdiv';
			this._ths0.ggTextDiv=this._ths0__text;
			this._ths0.ggId="ths";
			this._ths0.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths0.ggVisible=true;
			this._ths0.className='ggskin ggskin_text';
			this._ths0.ggType='text';
			this._ths0.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -34px;';
			hs+='top:  -59px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths0.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000033;';
			hs+='border: 1px solid #000131;';
			hs+='color: #ffffff;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths0__text.setAttribute('style',hs);
			this._ths0.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths0.appendChild(this._ths0__text);
			this.__div.appendChild(this._ths0);
			this._przycisk_111=document.createElement('div');
			this._przycisk_111.ggId="Przycisk 111";
			this._przycisk_111.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_111.ggVisible=true;
			this._przycisk_111.className='ggskin ggskin_button';
			this._przycisk_111.ggType='button';
			hs ='position:absolute;';
			hs+='left: -24px;';
			hs+='top:  -26px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_111.setAttribute('style',hs);
			this._przycisk_111__img=document.createElement('img');
			this._przycisk_111__img.className='ggskin ggskin_button';
			this._przycisk_111__img.setAttribute('src',basePath + 'images/przycisk_111.png');
			this._przycisk_111__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_111__img.className='ggskin ggskin_button';
			this._przycisk_111__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_111__img);
			this._przycisk_111.appendChild(this._przycisk_111__img);
			this._przycisk_111.onmouseover=function () {
				me._przycisk_111__img.src=basePath + 'images/przycisk_111__o.png';
			}
			this._przycisk_111.onmouseout=function () {
				me._przycisk_111__img.src=basePath + 'images/przycisk_111.png';
			}
			this.__div.appendChild(this._przycisk_111);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths0.style[domTransition]='none';
					me._ths0.style.opacity='1';
					me._ths0.style.visibility=me._ths0.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		if (hotspot.skinid=='hsar') {
			this.__div=document.createElement('div');
			this.__div.ggId="hsar";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 748px;';
			hs+='top:  218px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.player.openUrl(me.hotspot.url,me.hotspot.target);
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.elementMouseOver['_div']=true;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me._ths.style[domTransition]='none';
				me._ths.style.opacity='0';
				me._ths.style.visibility='hidden';
				me.elementMouseOver['_div']=false;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
			this.__div.ontouchend=function () {
				me.elementMouseOver['_div']=false;
			}
			this._ths=document.createElement('div');
			this._ths__text=document.createElement('div');
			this._ths.className='ggskin ggskin_textdiv';
			this._ths.ggTextDiv=this._ths__text;
			this._ths.ggId="ths";
			this._ths.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._ths.ggVisible=true;
			this._ths.className='ggskin ggskin_text';
			this._ths.ggType='text';
			this._ths.ggUpdatePosition=function() {
				this.style[domTransition]='none';
				this.ggTextDiv.style.left=Math.floor(0 + (74-this.ggTextDiv.offsetWidth)/2) + 'px';
			}
			hs ='position:absolute;';
			hs+='left: -34px;';
			hs+='top:  -59px;';
			hs+='width: 72px;';
			hs+='height: 26px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='opacity: 0;';
			hs+='visibility: hidden;';
			this._ths.setAttribute('style',hs);
			hs ='position:absolute;';
			hs+='left: 0px;';
			hs+='top:  0px;';
			hs+='width: auto;';
			hs+='height: auto;';
			hs+='background: #000033;';
			hs+='border: 1px solid #000131;';
			hs+='color: #ffffff;';
			hs+='text-align: center;';
			hs+='white-space: nowrap;';
			hs+='padding: 0px 1px 0px 1px;';
			hs+='overflow: hidden;';
			this._ths__text.setAttribute('style',hs);
			this._ths.ggTextDiv.innerHTML=me.hotspot.title;
			this._ths.appendChild(this._ths__text);
			this.__div.appendChild(this._ths);
			this._przycisk_110=document.createElement('div');
			this._przycisk_110.ggId="Przycisk 110";
			this._przycisk_110.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this._przycisk_110.ggVisible=true;
			this._przycisk_110.className='ggskin ggskin_button';
			this._przycisk_110.ggType='button';
			hs ='position:absolute;';
			hs+='left: -24px;';
			hs+='top:  -26px;';
			hs+='width: 54px;';
			hs+='height: 54px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			hs+='cursor: pointer;';
			this._przycisk_110.setAttribute('style',hs);
			this._przycisk_110__img=document.createElement('img');
			this._przycisk_110__img.className='ggskin ggskin_button';
			this._przycisk_110__img.setAttribute('src',basePath + 'images/przycisk_110.png');
			this._przycisk_110__img.setAttribute('style','position: absolute;top: 0px;left: 0px;-webkit-user-drag:none;');
			this._przycisk_110__img.className='ggskin ggskin_button';
			this._przycisk_110__img['ondragstart']=function() { return false; };
			me.player.checkLoaded.push(this._przycisk_110__img);
			this._przycisk_110.appendChild(this._przycisk_110__img);
			this._przycisk_110.onmouseover=function () {
				me._przycisk_110__img.src=basePath + 'images/przycisk_110__o.png';
			}
			this._przycisk_110.onmouseout=function () {
				me._przycisk_110__img.src=basePath + 'images/przycisk_110.png';
			}
			this.__div.appendChild(this._przycisk_110);
			this.hotspotTimerEvent=function() {
				setTimeout(function() { me.hotspotTimerEvent(); }, 10);
				if (me.elementMouseOver['_div']) {
					me._ths.style[domTransition]='none';
					me._ths.style.opacity='1';
					me._ths.style.visibility=me._ths.ggVisible?'inherit':'hidden';
				}
			}
			this.hotspotTimerEvent();
		} else
		{
			this.__div=document.createElement('div');
			this.__div.ggId="Hotspot 36";
			this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 };
			this.__div.ggVisible=true;
			this.__div.className='ggskin ggskin_hotspot';
			this.__div.ggType='hotspot';
			hs ='position:absolute;';
			hs+='left: 25px;';
			hs+='top:  25px;';
			hs+='width: 5px;';
			hs+='height: 5px;';
			hs+=cssPrefix + 'transform-origin: 50% 50%;';
			hs+='visibility: inherit;';
			this.__div.setAttribute('style',hs);
			this.__div.onclick=function () {
				me.skin.hotspotProxyClick(me.hotspot.id);
			}
			this.__div.onmouseover=function () {
				me.player.hotspot=me.hotspot;
				me.skin.hotspotProxyOver(me.hotspot.id);
			}
			this.__div.onmouseout=function () {
				me.player.hotspot=me.player.emptyHotspot;
				me.skin.hotspotProxyOut(me.hotspot.id);
			}
		}
	};
	this.addSkinHotspot=function(hotspot) {
		return new SkinHotspotClass(me,hotspot);
	}
	this.addSkin();
};