function pano2vrSkin(player, base, url_sight, url_web) { var ggSkinVars = []; ggSkinVars['ht_ani'] = false; var me=this; var flag=false; this.player=player; this.player.skinObj=this; this.divSkin=player.divSkin; this.ggUserdata=me.player.userdata; this.lastSize={ w: -1,h: -1 }; var basePath=""; // autodetect base path if (base=='?') { var scripts = document.getElementsByTagName('script'); for(var i=0;i=0) { var p=src.lastIndexOf('/'); if (p>=0) { basePath=src.substr(0,p+1); } } } } else if (base) { basePath=base; } this.elementMouseDown=[]; this.elementMouseOver=[]; var cssPrefix=''; var domTransition='transition'; var domTransform='transform'; var prefixes='Webkit,Moz,O,ms,Ms'.split(','); var i; if (typeof document.body.style['transform'] == 'undefined') { for(var i=0;i0) { var e=stack.pop(); if (e.ggUpdatePosition) { e.ggUpdatePosition(); } if (e.hasChildNodes()) { for(var i=0;i0) { var 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(var i=0;i0||!me._slider_up.style.opacity)?'inherit':'hidden'; me._slider_up.ggVisible=true; me._slider.style[domTransition]='none'; me._slider.style.visibility='hidden'; me._slider.ggVisible=false; } this._slider.ggUpdatePosition=function (useTransition) { } this._background.appendChild(this._slider); /*Tlačítko SLIDER UP*/ this._slider_up=document.createElement('div'); this._slider_up__img=document.createElement('img'); this._slider_up__img.className='ggskin ggskin_image'; this._slider_up__img.setAttribute('src',basePath + '/'+dir_image+'/images/slider_up.png'); this._slider_up__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._slider_up__img.className='ggskin ggskin_image'; this._slider_up__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._slider_up__img); this._slider_up.appendChild(this._slider_up__img); this._slider_up.ggId="slider_up"; this._slider_up.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._slider_up.ggVisible=false; this._slider_up.className='ggskin ggskin_image '; this._slider_up.ggType='image'; hs =''; hs+='cursor : pointer;'; hs+='height : 40px;'; hs+='left : 380px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : hidden;'; hs+='width : 142px;'; hs+='pointer-events:auto;'; this._slider_up.setAttribute('style',hs); this._slider_up.style[domTransform + 'Origin']='50% 50%'; me._slider_up.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._slider_up.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._slider_up.onclick=function (e) { var flag=me._background.ggPositonActive; if (me.player.transitionsDisabled) { me._background.style[domTransition]='none'; } else { me._background.style[domTransition]='all 1000ms ease-out 0ms'; } if (flag) { me._background.ggParameter.rx=0;me._background.ggParameter.ry=0; me._background.style[domTransform]=parameterToTransform(me._background.ggParameter); } else { me._background.ggParameter.rx=468;me._background.ggParameter.ry=0; me._background.style[domTransform]=parameterToTransform(me._background.ggParameter); } me._background.ggPositonActive=!flag; me._slider_up.style[domTransition]='none'; me._slider_up.style.visibility='hidden'; me._slider_up.ggVisible=false; me._slider.style[domTransition]='none'; me._slider.style.visibility=(Number(me._slider.style.opacity)>0||!me._slider.style.opacity)?'inherit':'hidden'; me._slider.ggVisible=true; } this._slider_up.ggUpdatePosition=function (useTransition) { } this._background.appendChild(this._slider_up); /*Tlačítko LEFT*/ this._left=document.createElement('div'); this._left__img=document.createElement('img'); this._left__img.className='ggskin ggskin_button'; this._left__img.setAttribute('src',basePath + '/'+dir_image+'/images/left.png'); this._left__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events: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.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 =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : 59px;'; hs+='position : absolute;'; hs+='top : 6px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._left.setAttribute('style',hs); this._left.style[domTransform + 'Origin']='50% 50%'; me._left.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._left.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._left.onmouseover=function (e) { me._text_lista6.style[domTransition]='none'; me._text_lista6.style.visibility=(Number(me._text_lista6.style.opacity)>0||!me._text_lista6.style.opacity)?'inherit':'hidden'; me._text_lista6.ggVisible=true; me._left__img.src=basePath + '/'+dir_image+'/images/left__o.png'; } this._left.onmouseout=function (e) { me._text_lista6.style[domTransition]='none'; me._text_lista6.style.visibility='hidden'; me._text_lista6.ggVisible=false; me._left__img.src=basePath + '/'+dir_image+'/images/left.png'; me.elementMouseDown['left']=false; } this._left.onmousedown=function (e) { me.elementMouseDown['left']=true; } this._left.onmouseup=function (e) { me.elementMouseDown['left']=false; } this._left.ontouchend=function (e) { me.elementMouseDown['left']=false; } this._left.ggUpdatePosition=function (useTransition) { } this._text_lista6=document.createElement('div'); this._text_lista6__text=document.createElement('div'); this._text_lista6.className='ggskin ggskin_textdiv'; this._text_lista6.ggTextDiv=this._text_lista6__text; this._text_lista6.ggId="text_lista"; this._text_lista6.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista6.ggVisible=false; this._text_lista6.className='ggskin ggskin_text '; this._text_lista6.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -29px;'; hs+='position : absolute;'; hs+='top : -35px;'; hs+='visibility : hidden;'; hs+='width : 98px;'; hs+='font-size : 10px;'; hs+='pointer-events:auto;'; this._text_lista6.setAttribute('style',hs); this._text_lista6.style[domTransform + 'Origin']='50% 50%'; this._text_lista6.style[domTransform]=parameterToTransform(this._text_lista6.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 98px;'; hs+='height: 20px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista6__text.setAttribute('style',hs); this._text_lista6__text.innerHTML="doleva"; this._text_lista6.appendChild(this._text_lista6__text); me._text_lista6.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista6.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista6.ggUpdatePosition=function (useTransition) { } this._left.appendChild(this._text_lista6); this._background.appendChild(this._left); /*Tlačítko RIGHT*/ this._right=document.createElement('div'); this._right__img=document.createElement('img'); this._right__img.className='ggskin ggskin_button'; this._right__img.setAttribute('src',basePath + '/'+dir_image+'/images/right.png'); this._right__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events: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.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 =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : 96px;'; hs+='position : absolute;'; hs+='top : 6px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._right.setAttribute('style',hs); this._right.style[domTransform + 'Origin']='50% 50%'; me._right.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._right.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._right.onmouseover=function (e) { me._text_lista5.style[domTransition]='none'; me._text_lista5.style.visibility=(Number(me._text_lista5.style.opacity)>0||!me._text_lista5.style.opacity)?'inherit':'hidden'; me._text_lista5.ggVisible=true; me._right__img.src=basePath + '/'+dir_image+'/images/right__o.png'; } this._right.onmouseout=function (e) { me._text_lista5.style[domTransition]='none'; me._text_lista5.style.visibility='hidden'; me._text_lista5.ggVisible=false; me._right__img.src=basePath + '/'+dir_image+'/images/right.png'; me.elementMouseDown['right']=false; } this._right.onmousedown=function (e) { me.elementMouseDown['right']=true; } this._right.onmouseup=function (e) { me.elementMouseDown['right']=false; } this._right.ontouchend=function (e) { me.elementMouseDown['right']=false; } this._right.ggUpdatePosition=function (useTransition) { } this._text_lista5=document.createElement('div'); this._text_lista5__text=document.createElement('div'); this._text_lista5.className='ggskin ggskin_textdiv'; this._text_lista5.ggTextDiv=this._text_lista5__text; this._text_lista5.ggId="text_lista"; this._text_lista5.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista5.ggVisible=false; this._text_lista5.className='ggskin ggskin_text '; this._text_lista5.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -27px;'; hs+='position : absolute;'; hs+='top : -35px;'; hs+='visibility : hidden;'; hs+='width : 98px;'; hs+='font-size : 10px;'; hs+='pointer-events:auto;'; this._text_lista5.setAttribute('style',hs); this._text_lista5.style[domTransform + 'Origin']='50% 50%'; this._text_lista5.style[domTransform]=parameterToTransform(this._text_lista5.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 98px;'; hs+='height: 20px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista5__text.setAttribute('style',hs); this._text_lista5__text.innerHTML="doprava"; this._text_lista5.appendChild(this._text_lista5__text); me._text_lista5.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista5.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista5.ggUpdatePosition=function (useTransition) { } this._right.appendChild(this._text_lista5); this._background.appendChild(this._right); /*Tlačítko UP*/ this._up=document.createElement('div'); this._up__img=document.createElement('img'); this._up__img.className='ggskin ggskin_button'; this._up__img.setAttribute('src',basePath + '/'+dir_image+'/images/up.png'); this._up__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events: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.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 =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : 133px;'; hs+='position : absolute;'; hs+='top : 6px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._up.setAttribute('style',hs); this._up.style[domTransform + 'Origin']='50% 50%'; me._up.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._up.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._up.onmouseover=function (e) { me._text_lista4.style[domTransition]='none'; me._text_lista4.style.visibility=(Number(me._text_lista4.style.opacity)>0||!me._text_lista4.style.opacity)?'inherit':'hidden'; me._text_lista4.ggVisible=true; me._up__img.src=basePath + '/'+dir_image+'/images/up__o.png'; } this._up.onmouseout=function (e) { me._text_lista4.style[domTransition]='none'; me._text_lista4.style.visibility='hidden'; me._text_lista4.ggVisible=false; me._up__img.src=basePath + '/'+dir_image+'/images/up.png'; me.elementMouseDown['up']=false; } this._up.onmousedown=function (e) { me.elementMouseDown['up']=true; } this._up.onmouseup=function (e) { me.elementMouseDown['up']=false; } this._up.ontouchend=function (e) { me.elementMouseDown['up']=false; } this._up.ggUpdatePosition=function (useTransition) { } this._text_lista4=document.createElement('div'); this._text_lista4__text=document.createElement('div'); this._text_lista4.className='ggskin ggskin_textdiv'; this._text_lista4.ggTextDiv=this._text_lista4__text; this._text_lista4.ggId="text_lista"; this._text_lista4.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista4.ggVisible=false; this._text_lista4.className='ggskin ggskin_text '; this._text_lista4.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -30px;'; hs+='position : absolute;'; hs+='top : -36px;'; hs+='visibility : hidden;'; hs+='width : 98px;'; hs+='font-size : 10px;'; hs+='pointer-events:auto;'; this._text_lista4.setAttribute('style',hs); this._text_lista4.style[domTransform + 'Origin']='50% 50%'; this._text_lista4.style[domTransform]=parameterToTransform(this._text_lista4.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 98px;'; hs+='height: 20px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista4__text.setAttribute('style',hs); this._text_lista4__text.innerHTML="nahoru"; this._text_lista4.appendChild(this._text_lista4__text); me._text_lista4.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista4.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista4.ggUpdatePosition=function (useTransition) { } this._up.appendChild(this._text_lista4); this._background.appendChild(this._up); /*Tlačítko DOWN*/ this._down=document.createElement('div'); this._down__img=document.createElement('img'); this._down__img.className='ggskin ggskin_button'; this._down__img.setAttribute('src',basePath + '/'+dir_image+'/images/down.png'); this._down__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events: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.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 =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : 170px;'; hs+='position : absolute;'; hs+='top : 6px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._down.setAttribute('style',hs); this._down.style[domTransform + 'Origin']='50% 50%'; me._down.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._down.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._down.onmouseover=function (e) { me._text_lista3.style[domTransition]='none'; me._text_lista3.style.visibility=(Number(me._text_lista3.style.opacity)>0||!me._text_lista3.style.opacity)?'inherit':'hidden'; me._text_lista3.ggVisible=true; me._down__img.src=basePath + '/'+dir_image+'/images/down__o.png'; } this._down.onmouseout=function (e) { me._text_lista3.style[domTransition]='none'; me._text_lista3.style.visibility='hidden'; me._text_lista3.ggVisible=false; me._down__img.src=basePath + '/'+dir_image+'/images/down.png'; me.elementMouseDown['down']=false; } this._down.onmousedown=function (e) { me.elementMouseDown['down']=true; } this._down.onmouseup=function (e) { me.elementMouseDown['down']=false; } this._down.ontouchend=function (e) { me.elementMouseDown['down']=false; } this._down.ggUpdatePosition=function (useTransition) { } this._text_lista3=document.createElement('div'); this._text_lista3__text=document.createElement('div'); this._text_lista3.className='ggskin ggskin_textdiv'; this._text_lista3.ggTextDiv=this._text_lista3__text; this._text_lista3.ggId="text_lista"; this._text_lista3.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista3.ggVisible=false; this._text_lista3.className='ggskin ggskin_text '; this._text_lista3.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -28px;'; hs+='position : absolute;'; hs+='top : -34px;'; hs+='font-size : 10px;'; hs+='visibility : hidden;'; hs+='width : 98px;'; hs+='pointer-events:auto;'; this._text_lista3.setAttribute('style',hs); this._text_lista3.style[domTransform + 'Origin']='50% 50%'; this._text_lista3.style[domTransform]=parameterToTransform(this._text_lista3.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 98px;'; hs+='height: 20px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista3__text.setAttribute('style',hs); this._text_lista3__text.innerHTML="dol\u016f"; this._text_lista3.appendChild(this._text_lista3__text); me._text_lista3.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista3.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista3.ggUpdatePosition=function (useTransition) { } this._down.appendChild(this._text_lista3); this._background.appendChild(this._down); /*Tlačítko ZOOM IN*/ this._zoomin=document.createElement('div'); this._zoomin__img=document.createElement('img'); this._zoomin__img.className='ggskin ggskin_button'; this._zoomin__img.setAttribute('src',basePath + '/'+dir_image+'/images/zoomin.png'); this._zoomin__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._zoomin__img.className='ggskin ggskin_button'; this._zoomin__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._zoomin__img); this._zoomin.appendChild(this._zoomin__img); this._zoomin.ggId="zoomin"; this._zoomin.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._zoomin.ggVisible=true; this._zoomin.className='ggskin ggskin_button '; this._zoomin.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : 208px;'; hs+='position : absolute;'; hs+='top : 6px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._zoomin.setAttribute('style',hs); this._zoomin.style[domTransform + 'Origin']='50% 50%'; me._zoomin.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._zoomin.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._zoomin.onmouseover=function (e) { me._text_lista2.style[domTransition]='none'; me._text_lista2.style.visibility=(Number(me._text_lista2.style.opacity)>0||!me._text_lista2.style.opacity)?'inherit':'hidden'; me._text_lista2.ggVisible=true; me._zoomin__img.src=basePath + '/'+dir_image+'/images/zoomin__o.png'; } this._zoomin.onmouseout=function (e) { me._text_lista2.style[domTransition]='none'; me._text_lista2.style.visibility='hidden'; me._text_lista2.ggVisible=false; me._zoomin__img.src=basePath + '/'+dir_image+'/images/zoomin.png'; me.elementMouseDown['zoomin']=false; } this._zoomin.onmousedown=function (e) { me.elementMouseDown['zoomin']=true; } this._zoomin.onmouseup=function (e) { me.elementMouseDown['zoomin']=false; } this._zoomin.ontouchend=function (e) { me.elementMouseDown['zoomin']=false; } this._zoomin.ggUpdatePosition=function (useTransition) { } this._text_lista2=document.createElement('div'); this._text_lista2__text=document.createElement('div'); this._text_lista2.className='ggskin ggskin_textdiv'; this._text_lista2.ggTextDiv=this._text_lista2__text; this._text_lista2.ggId="text_lista"; this._text_lista2.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista2.ggVisible=false; this._text_lista2.className='ggskin ggskin_text '; this._text_lista2.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -29px;'; hs+='position : absolute;'; hs+='top : -35px;'; hs+='font-size : 10px;'; hs+='visibility : hidden;'; hs+='width : 98px;'; hs+='pointer-events:auto;'; this._text_lista2.setAttribute('style',hs); this._text_lista2.style[domTransform + 'Origin']='50% 50%'; this._text_lista2.style[domTransform]=parameterToTransform(this._text_lista2.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 98px;'; hs+='height: 20px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista2__text.setAttribute('style',hs); this._text_lista2__text.innerHTML="p\u0159ibl\xed\u017eit"; this._text_lista2.appendChild(this._text_lista2__text); me._text_lista2.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista2.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista2.ggUpdatePosition=function (useTransition) { } this._zoomin.appendChild(this._text_lista2); this._background.appendChild(this._zoomin); /*Tlačítko ZOOM OUT*/ this._zoomout=document.createElement('div'); this._zoomout__img=document.createElement('img'); this._zoomout__img.className='ggskin ggskin_button'; this._zoomout__img.setAttribute('src',basePath + '/'+dir_image+'/images/zoomout.png'); this._zoomout__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._zoomout__img.className='ggskin ggskin_button'; this._zoomout__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._zoomout__img); this._zoomout.appendChild(this._zoomout__img); this._zoomout.ggId="zoomout"; this._zoomout.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._zoomout.ggVisible=true; this._zoomout.className='ggskin ggskin_button '; this._zoomout.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : 246px;'; hs+='position : absolute;'; hs+='top : 6px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._zoomout.setAttribute('style',hs); this._zoomout.style[domTransform + 'Origin']='50% 50%'; me._zoomout.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._zoomout.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._zoomout.onmouseover=function (e) { me._text_lista1.style[domTransition]='none'; me._text_lista1.style.visibility=(Number(me._text_lista1.style.opacity)>0||!me._text_lista1.style.opacity)?'inherit':'hidden'; me._text_lista1.ggVisible=true; me._zoomout__img.src=basePath + '/'+dir_image+'/images/zoomout__o.png'; } this._zoomout.onmouseout=function (e) { me._text_lista1.style[domTransition]='none'; me._text_lista1.style.visibility='hidden'; me._text_lista1.ggVisible=false; me._zoomout__img.src=basePath + '/'+dir_image+'/images/zoomout.png'; me.elementMouseDown['zoomout']=false; } this._zoomout.onmousedown=function (e) { me.elementMouseDown['zoomout']=true; } this._zoomout.onmouseup=function (e) { me.elementMouseDown['zoomout']=false; } this._zoomout.ontouchend=function (e) { me.elementMouseDown['zoomout']=false; } this._zoomout.ggUpdatePosition=function (useTransition) { } this._text_lista1=document.createElement('div'); this._text_lista1__text=document.createElement('div'); this._text_lista1.className='ggskin ggskin_textdiv'; this._text_lista1.ggTextDiv=this._text_lista1__text; this._text_lista1.ggId="text_lista"; this._text_lista1.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista1.ggVisible=false; this._text_lista1.className='ggskin ggskin_text '; this._text_lista1.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -32px;'; hs+='position : absolute;'; hs+='top : -35px;'; hs+='font-size : 10px;'; hs+='visibility : hidden;'; hs+='width : 98px;'; hs+='pointer-events:auto;'; this._text_lista1.setAttribute('style',hs); this._text_lista1.style[domTransform + 'Origin']='50% 50%'; this._text_lista1.style[domTransform]=parameterToTransform(this._text_lista1.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 98px;'; hs+='height: 20px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista1__text.setAttribute('style',hs); this._text_lista1__text.innerHTML="odd\xe1lit"; this._text_lista1.appendChild(this._text_lista1__text); me._text_lista1.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista1.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista1.ggUpdatePosition=function (useTransition) { } this._zoomout.appendChild(this._text_lista1); this._background.appendChild(this._zoomout); /*Tlačítko AUTOROTATE*/ this._autorotate=document.createElement('div'); this._autorotate__img=document.createElement('img'); this._autorotate__img.className='ggskin ggskin_button'; this._autorotate__img.setAttribute('src',basePath + '/'+dir_image+'/images/autorotate.png'); this._autorotate__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._autorotate__img.className='ggskin ggskin_button'; this._autorotate__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._autorotate__img); this._autorotate.appendChild(this._autorotate__img); this._autorotate.ggId="autorotate"; this._autorotate.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._autorotate.ggVisible=true; this._autorotate.className='ggskin ggskin_button '; this._autorotate.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 30px;'; hs+='left : 285px;'; hs+='position : absolute;'; hs+='top : 6px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._autorotate.setAttribute('style',hs); this._autorotate.style[domTransform + 'Origin']='50% 50%'; me._autorotate.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._autorotate.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._autorotate.onclick=function (e) { me.player.toggleAutorotate(); } this._autorotate.onmouseover=function (e) { me._text_lista0.style[domTransition]='none'; me._text_lista0.style.visibility=(Number(me._text_lista0.style.opacity)>0||!me._text_lista0.style.opacity)?'inherit':'hidden'; me._text_lista0.ggVisible=true; me._autorotate__img.src=basePath + '/'+dir_image+'/images/autorotate__o.png'; } this._autorotate.onmouseout=function (e) { me._text_lista0.style[domTransition]='none'; me._text_lista0.style.visibility='hidden'; me._text_lista0.ggVisible=false; me._autorotate__img.src=basePath + '/'+dir_image+'/images/autorotate.png'; } this._autorotate.ggUpdatePosition=function (useTransition) { } this._text_lista0=document.createElement('div'); this._text_lista0__text=document.createElement('div'); this._text_lista0.className='ggskin ggskin_textdiv'; this._text_lista0.ggTextDiv=this._text_lista0__text; this._text_lista0.ggId="text_lista"; this._text_lista0.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista0.ggVisible=false; this._text_lista0.className='ggskin ggskin_text '; this._text_lista0.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : -36px;'; hs+='position : absolute;'; hs+='top : -35px;'; hs+='font-size : 10px;'; hs+='visibility : hidden;'; hs+='width : 98px;'; hs+='pointer-events:auto;'; this._text_lista0.setAttribute('style',hs); this._text_lista0.style[domTransform + 'Origin']='50% 50%'; this._text_lista0.style[domTransform]=parameterToTransform(this._text_lista0.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 98px;'; hs+='height: 20px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista0__text.setAttribute('style',hs); this._text_lista0__text.innerHTML="autorotace"; this._text_lista0.appendChild(this._text_lista0__text); me._text_lista0.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista0.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista0.ggUpdatePosition=function (useTransition) { } this._autorotate.appendChild(this._text_lista0); this._background.appendChild(this._autorotate); /*Tlačítko FULLSCREEN*/ this._fullscreen=document.createElement('div'); this._fullscreen__img=document.createElement('img'); this._fullscreen__img.className='ggskin ggskin_button'; this._fullscreen__img.setAttribute('src',basePath + '/'+dir_image+'/images/fullscreen.png'); this._fullscreen__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._fullscreen__img.className='ggskin ggskin_button'; this._fullscreen__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._fullscreen__img); this._fullscreen.appendChild(this._fullscreen__img); this._fullscreen.ggId="fullscreen"; this._fullscreen.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._fullscreen.ggVisible=true; this._fullscreen.className='ggskin ggskin_button '; this._fullscreen.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 24px;'; hs+='left : 21px;'; hs+='position : absolute;'; hs+='top : 9px;'; hs+='visibility : inherit;'; hs+='width : 30px;'; hs+='pointer-events:auto;'; this._fullscreen.setAttribute('style',hs); this._fullscreen.style[domTransform + 'Origin']='50% 50%'; me._fullscreen.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._fullscreen.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._fullscreen.onclick=function (e) { me.player.toggleFullscreen(); } this._fullscreen.onmouseover=function (e) { me._text_lista.style[domTransition]='none'; me._text_lista.style.visibility=(Number(me._text_lista.style.opacity)>0||!me._text_lista.style.opacity)?'inherit':'hidden'; me._text_lista.ggVisible=true; me._fullscreen__img.src=basePath + '/'+dir_image+'/images/fullscreen__o.png'; } this._fullscreen.onmouseout=function (e) { me._text_lista.style[domTransition]='none'; me._text_lista.style.visibility='hidden'; me._text_lista.ggVisible=false; me._fullscreen__img.src=basePath + '/'+dir_image+'/images/fullscreen.png'; } this._fullscreen.ggUpdatePosition=function (useTransition) { } this._text_lista=document.createElement('div'); this._text_lista__text=document.createElement('div'); this._text_lista.className='ggskin ggskin_textdiv'; this._text_lista.ggTextDiv=this._text_lista__text; this._text_lista.ggId="text_lista"; this._text_lista.ggParameter={ rx:0,ry:0,a:0,sx:1.7,sy:1.7 }; this._text_lista.ggVisible=false; this._text_lista.className='ggskin ggskin_text '; this._text_lista.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : 0px;'; hs+='top : -30px;'; hs+='font-size : 10px;'; hs+='position : absolute;'; hs+='visibility : hidden;'; hs+='width : 73px;'; hs+='pointer-events:auto;'; this._text_lista.setAttribute('style',hs); this._text_lista.style[domTransform + 'Origin']='50% 50%'; this._text_lista.style[domTransform]=parameterToTransform(this._text_lista.ggParameter); hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 73px;'; hs+='height: auto;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._text_lista__text.setAttribute('style',hs); this._text_lista__text.innerHTML="pln\xe1 obrazovka"; this._text_lista.appendChild(this._text_lista__text); me._text_lista.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._text_lista.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._text_lista.ggUpdatePosition=function (useTransition) { } this._fullscreen.appendChild(this._text_lista); this._background.appendChild(this._fullscreen); this.divSkin.appendChild(this._background);/*MAPA START*/ this._mapalist=document.createElement('div'); this._mapalist.innerHTML='Mapa se nahraje sem...'; this._mapalist.ggFilter = ''; this._mapalist.ggFilteredIds = []; this._mapalist.ggId="mapa-list"; this._mapalist.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._mapalist.ggVisible=true; this._mapalist.className='ggskin ggskin_map '; this._mapalist.ggType='map'; hs =''; hs+='background : #fff;'; hs+='border : 1px solid #000;'; hs+='cursor : pointer;'; hs+='height : 64.5833%;'; hs+='left : 12.34%;'; hs+='position : absolute;'; hs+='top : 18.54%;'; hs+='visibility : hidden;'; hs+='width : 72.9688%;'; hs+='pointer-events:auto;'; this._mapalist.setAttribute('style',hs); this._mapalist.style[domTransform + 'Origin']='50% 50%'; me._mapalist.ggIsActive=function() { return false; } me._mapalist.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._mapalist.ggUpdateConditionTimer=function () { me._mapalist.ggCallChildFunctions('ggUpdateConditionTimer'); } this._mapalist.ggUpdateConditionNodeChange=function () { me._mapalist.ggCallChildFunctions('ggNodeChangeMain'); } this._mapalist.ggUpdatePosition=function (useTransition) { } this._mapalist.ggNodeChange=function () { if (this.ggLastActivMarker) { if (this.ggLastActivMarker._div.ggDeactivate) this.ggLastActivMarker._div.ggDeactivate(); } var id=me.player.getCurrentNode(); var marker=this.ggMarkerArray[id]; if (marker) { if (marker._div.ggActivate) marker._div.ggActivate(); } this.ggLastActivMarker=marker; me._mapalist.ggUpdateConditionNodeChange(); } this.divSkin.appendChild(this._mapalist); /*MAPA END*/ this._mapalist.ggMarkerArray=[]; this._mapalist.ggGoogleMarkerArray=[]; this._mapalist.ggInitMap=function() { me._mapalist.ggMapNotLoaded = false; if ((typeof google !== 'object') || (typeof google.maps !== 'object')) return; var gps=me.player.getNodeLatLng(); if ((gps.length>=2) && ((gps[0]!=0) || (gps[1]!=0))) { activeNodeLatLng = new google.maps.LatLng(gps[0], gps[1]); } else { activeNodeLatLng = new google.maps.LatLng(0,0); } var mapOptions = { zoom: 14, center: activeNodeLatLng, mapTypeId: google.maps.MapTypeId.ROADMAP, streetViewControl: true }; const image = basePath + '/'+dir_image+'/images/preloader/map_pin_active.png'; var marker = new google.maps.Marker({ position: activeNodeLatLng, icon: image }); me._mapalist.ggMap = new google.maps.Map(me._mapalist, mapOptions); marker.setMap(me._mapalist.ggMap); me._mapalist.ggNodeChange(); google.maps.event.addListener(me._mapalist.ggMap, 'idle', function(){ me.updateSize(me._mapalist); }); } this._mapalist.ggClearMap=function() { me._mapalist.ggMap = null; me._mapalist.ggClearMapMarkers(); me._mapalist.ggMapNotLoaded = true; } this._mapalist.ggClearMapMarkers=function() { var id,marker; var markers=me._mapalist.ggMarkerArray; for (id in markers) { if (markers.hasOwnProperty(id)) { marker=markers[id]; marker.onRemove(); } } me._mapalist.ggMarkerArray=[]; } this._mapalist.ggCallChildFunctions = function(functionname) { var id,marker; var markers=me._mapalist.ggMarkerArray; for (id in markers) { if (markers.hasOwnProperty(id)) { marker=markers[id]; if (typeof marker._div[functionname] == 'function') { marker._div[functionname](); } } } } this._screen_tint=document.createElement('div'); this._screen_tint.ggId="screen tint"; this._screen_tint.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._screen_tint.ggVisible=true; this._screen_tint.className='ggskin ggskin_rectangle '; this._screen_tint.ggType='rectangle'; hs =''; hs+='background: rgba(0,0,0,0.392157);'; hs+='border : 0px solid #000000;'; hs+='cursor : default;'; hs+='height : 2000px;'; hs+='left : -6px;'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : -3px;'; hs+='visibility : hidden;'; hs+='width : 2000px;'; hs+='pointer-events:auto;'; this._screen_tint.setAttribute('style',hs); this._screen_tint.style[domTransform + 'Origin']='50% 50%'; me._screen_tint.ggIsActive=function() { return false; } me._screen_tint.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._screen_tint.ggUpdatePosition=function (useTransition) { } this.divSkin.appendChild(this._screen_tint); this._pic_frame=document.createElement('div'); this._pic_frame.ggId="pic_frame"; this._pic_frame.ggLeft=-150; this._pic_frame.ggTop=-200; this._pic_frame.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._pic_frame.ggVisible=true; this._pic_frame.className='ggskin ggskin_rectangle text_informace'; this._pic_frame.ggType='rectangle'; hs =''; hs+='background: rgba(0,0,0,0.625);'; hs+='height : 450px;'; hs+='left : -150px;'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : -240px;'; hs+='visibility : hidden;'; hs+='width : 300px;'; hs+='padding : 0px 0px 0px 5px;'; this._pic_frame.setAttribute('style',hs); this._pic_frame.style[domTransform + 'Origin']='50% 50%'; me._pic_frame.ggIsActive=function() { return false; } me._pic_frame.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._pic_frame.ggUpdatePosition=function () { this.style[domTransition]='none'; if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w/2) + 'px'; var h=this.parentNode.offsetHeight; this.style.top=(this.ggTop - 0 + h/2) + 'px'; } } this._popup_title=document.createElement('div'); this._popup_title__text=document.createElement('div'); this._popup_title.className='ggskin ggskin_textdiv'; this._popup_title.ggTextDiv=this._popup_title__text; this._popup_title.ggId="popup_title"; this._popup_title.ggParameter={ rx:0,ry:0,a:0,sx:1.2,sy:1.2 }; this._popup_title.ggVisible=true; this._popup_title.className='ggskin ggskin_text f14'; this._popup_title.ggType='text'; hs =''; hs+='height : 20px;'; hs+='left : 15px;'; hs+='position : absolute;'; hs+='top : 8px;'; hs+='visibility : inherit;'; hs+='width : 340px;'; hs+='pointer-events:auto;'; this._popup_title.setAttribute('style',hs); this._popup_title.style[domTransform + 'Origin']='0% 50%'; this._popup_title.style[domTransform]=parameterToTransform(this._popup_title.ggParameter); hs ='position:absolute;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: left;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._popup_title__text.setAttribute('style',hs); this._popup_title__text.innerHTML=""; this._popup_title.appendChild(this._popup_title__text); me._popup_title.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._popup_title.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._popup_title.ggUpdatePosition=function (useTransition) { } this._pic_frame.appendChild(this._popup_title); this._popup_pic=document.createElement('div'); this._popup_pic__img=document.createElement('img'); this._popup_pic__img.className='ggskin ggskin_external'; this._popup_pic__img.onload=function() {me._popup_pic.ggUpdatePosition();} this._popup_pic__img.setAttribute('src',basePath + ''); this._popup_pic__img['ondragstart']=function() { return false; }; hs =''; this._popup_pic.appendChild(this._popup_pic__img); this._popup_pic.ggId="popup_pic"; this._popup_pic.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._popup_pic.ggVisible=true; this._popup_pic.className='ggskin ggskin_external '; this._popup_pic.ggType='external'; hs =''; hs+='background : #ffffff;'; hs+='border : 0px solid #000000;'; hs+='cursor : default;'; hs+='height : 180px;'; hs+='left : 10px;'; hs+='position : absolute;'; hs+='top : 34px;'; hs+='visibility : inherit;'; hs+='width : 95%;'; hs+='pointer-events:auto;'; this._popup_pic.setAttribute('style',hs); this._popup_pic.style[domTransform + 'Origin']='50% 50%'; me._popup_pic.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._popup_pic.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._popup_pic.ggUpdatePosition=function (useTransition) { var parentWidth = me._popup_pic.clientWidth; var parentHeight = me._popup_pic.clientHeight; var aspectRatioDiv = me._popup_pic.clientWidth / me._popup_pic.clientHeight; var aspectRatioImg = me._popup_pic__img.naturalWidth / me._popup_pic__img.naturalHeight; var currentWidth = me._popup_pic__img.naturalWidth; var currentHeight = me._popup_pic__img.naturalHeight; me._popup_pic__img.setAttribute('style','position: absolute; left: 0px; top: 0px;-webkit-user-drag:none;pointer-events:none;'); } this._pic_frame.appendChild(this._popup_pic); this._close=document.createElement('div'); this._close__img=document.createElement('img'); this._close__img.className='ggskin ggskin_svg'; this._close__img.setAttribute('src',basePath + '/'+dir_image+'/images/close.png'); this._close__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._close__img['ondragstart']=function() { return false; }; this._close.appendChild(this._close__img); this._close__imgo=document.createElement('img'); this._close__imgo.className='ggskin ggskin_svg'; this._close__imgo.setAttribute('src',basePath + '/'+dir_image+'/images/close__o.png'); this._close__imgo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;'); this._close__imgo['ondragstart']=function() { return false; }; this._close.appendChild(this._close__imgo); this._close.ggId="close"; this._close.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._close.ggVisible=true; this._close.className='ggskin ggskin_svg '; this._close.ggType='png'; hs =''; hs+='cursor : pointer;'; hs+='height : 45px;'; hs+='left : 140px;'; hs+='position : absolute;'; hs+='top : -35px;'; hs+='visibility : inherit;'; hs+='width : 40px;'; hs+='pointer-events:auto;'; this._close.setAttribute('style',hs); this._close.style[domTransform + 'Origin']='50% 50%'; me._close.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._close.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._close.onclick=function (e) { me._pic_frame.style[domTransition]='none'; me._pic_frame.style.opacity='0'; me._pic_frame.style.visibility='hidden'; me._screen_tint.style[domTransition]='none'; me._screen_tint.style.opacity='0'; me._screen_tint.style.visibility='hidden'; me._popup_pic.style[domTransition]='none'; me._popup_pic.style.visibility='hidden'; me._popup_pic.ggVisible=false; } this._close.onmouseover=function (e) { me._close__img.style.visibility='hidden'; me._close__imgo.style.visibility='inherit'; } this._close.onmouseout=function (e) { me._close__img.style.visibility='inherit'; me._close__imgo.style.visibility='hidden'; } this._close.ggUpdatePosition=function (useTransition) { } this._pic_frame.appendChild(this._close); this.divSkin.appendChild(this._pic_frame); this._information=document.createElement('div'); this._information.ggId="information"; this._information.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._information.ggVisible=false; this._information.className='ggskin ggskin_container '; this._information.ggType='container'; hs =''; hs+='height : 250px;'; hs+='left : 75.00%;'; hs+='position : absolute;'; hs+='top : 5px;'; hs+='visibility : hidden;'; hs+='width : 300px;'; this._information.setAttribute('style',hs); this._information.style[domTransform + 'Origin']='50% 50%'; me._information.ggIsActive=function() { return false; } me._information.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._information.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w/2) + 'px'; var h=this.parentNode.offsetHeight; this.style.top=(this.ggTop - 0 + h/2) + 'px'; } } this._image_1=document.createElement('div'); this._image_1__img=document.createElement('img'); this._image_1__img.className='ggskin ggskin_image'; this._image_1__img.setAttribute('src',basePath + '/'+dir_image+'/images/image_1.png'); this._image_1__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._image_1__img.className='ggskin ggskin_image'; this._image_1__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._image_1__img); this._image_1.appendChild(this._image_1__img); this._image_1.ggId="Image 1"; this._image_1.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._image_1.ggVisible=true; this._image_1.className='ggskin ggskin_image '; this._image_1.ggType='image'; hs =''; hs+='height : 250px;'; hs+='left : -2px;'; hs+='position : absolute;'; hs+='top : 1px;'; hs+='visibility : inherit;'; hs+='width : 300px;'; hs+='pointer-events:auto;'; this._image_1.setAttribute('style',hs); this._image_1.style[domTransform + 'Origin']='50% 50%'; me._image_1.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._image_1.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._image_1.ggUpdatePosition=function (useTransition) { } this._information.appendChild(this._image_1); this._ht_info_close=document.createElement('div'); this._ht_info_close__img=document.createElement('img'); this._ht_info_close__img.className='ggskin ggskin_svg'; this._ht_info_close__img.setAttribute('src',basePath + '/'+dir_image+'/images/close.png'); this._ht_info_close__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._ht_info_close__img['ondragstart']=function() { return false; }; this._ht_info_close.appendChild(this._ht_info_close__img); this._ht_info_close__imgo=document.createElement('img'); this._ht_info_close__imgo.className='ggskin ggskin_svg'; this._ht_info_close__imgo.setAttribute('src',basePath + '/'+dir_image+'/images/close__o.png'); this._ht_info_close__imgo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;'); this._ht_info_close__imgo['ondragstart']=function() { return false; }; this._ht_info_close.appendChild(this._ht_info_close__imgo); this._ht_info_close.ggId="ht_info_close"; this._ht_info_close.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._ht_info_close.ggVisible=true; this._ht_info_close.className='ggskin ggskin_svg '; this._ht_info_close.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='left : 263px;'; hs+='position : absolute;'; hs+='top : 5px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; hs+='pointer-events:auto;'; this._ht_info_close.setAttribute('style',hs); this._ht_info_close.style[domTransform + 'Origin']='50% 50%'; me._ht_info_close.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._ht_info_close.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._ht_info_close.onclick=function (e) { me._information.style[domTransition]='none'; me._information.style.visibility='hidden'; me._information.ggVisible=false; } this._ht_info_close.onmouseover=function (e) { me._ht_info_close__img.style.visibility='hidden'; me._ht_info_close__imgo.style.visibility='inherit'; } this._ht_info_close.onmouseout=function (e) { me._ht_info_close__img.style.visibility='inherit'; me._ht_info_close__imgo.style.visibility='hidden'; } this._ht_info_close.ggUpdatePosition=function (useTransition) { } this._information.appendChild(this._ht_info_close); this.divSkin.appendChild(this._information); this.preloadImages(); this.divSkin.ggUpdateSize=function(w,h) { me.updateSize(me.divSkin); } /*this.divSkin.ggViewerInit=function() { me._map.ggInitMap(); }*/ this.divSkin.ggReLoaded=function() { me._screen_tint.style[domTransition]='none'; me._screen_tint.style.visibility='hidden'; me._screen_tint.ggVisible=false; } this.divSkin.ggLoadedLevels=function() { } this.divSkin.ggReLoadedLevels=function() { } this.divSkin.ggEnterFullscreen=function() { if (me.player.transitionsDisabled) { me._screen_tint.style[domTransition]='none'; } else { me._screen_tint.style[domTransition]='all 500ms ease-out 0ms'; } me._screen_tint.style.opacity='0'; me._screen_tint.style.visibility='hidden'; } function SkinHotspotClass(skinObj,hotspot) { var me=this; var flag=false; this.player=skinObj.player; this.skin=skinObj; this.hotspot=hotspot; var nodeId=String(hotspot.url); nodeId=(nodeId.charAt(0)=='{')?nodeId.substr(1, nodeId.length - 2):''; this.ggUserdata=this.skin.player.getNodeUserdata(nodeId); this.elementMouseDown=[]; this.elementMouseOver=[]; this.findElements=function(id,regex) { return me.skin.findElements(id,regex); } if (hotspot.skinid=='ht_video_youtube') { this.__div=document.createElement('div'); this.__div.ggId="ht_video_youtube"; 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 =''; hs+='height : 5px;'; hs+='left : 200px;'; hs+='position : absolute;'; hs+='top : 200px;'; hs+='visibility : inherit;'; hs+='width : 5px;'; hs+='pointer-events:auto;'; this.__div.setAttribute('style',hs); this.__div.style[domTransform + 'Origin']='50% 50%'; me.__div.ggIsActive=function() { return me.player.getCurrentNode()==this.ggElementNodeId(); } me.__div.ggElementNodeId=function() { return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } this.__div.onclick=function (e) { me.skin._popup_video_youtube.ggInitMedia(me.hotspot.url); me.skin._video_screentint_youtube.style[domTransition]='none'; me.skin._video_screentint_youtube.style.visibility=(Number(me.skin._video_screentint_youtube.style.opacity)>0||!me.skin._video_screentint_youtube.style.opacity)?'inherit':'hidden'; me.skin._video_screentint_youtube.ggVisible=true; if (me.skin._popup_video_youtube.ggVideoNotLoaded) { me.skin._popup_video_youtube.ggInitMedia(me.skin._popup_video_youtube.ggVideoSource); } me.skin._popup_video_youtube.style[domTransition]='none'; me.skin._popup_video_youtube.style.visibility=(Number(me.skin._popup_video_youtube.style.opacity)>0||!me.skin._popup_video_youtube.style.opacity)?'inherit':'hidden'; me.skin._popup_video_youtube.ggVisible=true; me.skin._video_popup_youtube.style[domTransition]='none'; me.skin._video_popup_youtube.style.visibility=(Number(me.skin._video_popup_youtube.style.opacity)>0||!me.skin._video_popup_youtube.style.opacity)?'inherit':'hidden'; me.skin._video_popup_youtube.ggVisible=true; me.skin._video_popup_close_youtube.style[domTransition]='none'; me.skin._video_popup_close_youtube.style.visibility=(Number(me.skin._video_popup_close_youtube.style.opacity)>0||!me.skin._video_popup_close_youtube.style.opacity)?'inherit':'hidden'; me.skin._video_popup_close_youtube.ggVisible=true; me.skin.hotspotProxyClick(me.hotspot.id); } this.__div.onmouseover=function (e) { me.player.setActiveHotspot(me.hotspot); me.elementMouseOver['_div']=true; me.skin.hotspotProxyOver(me.hotspot.id); } this.__div.onmouseout=function (e) { me.player.setActiveHotspot(null); me.elementMouseOver['_div']=false; me.skin.hotspotProxyOut(me.hotspot.id); } this.__div.ontouchend=function (e) { me.elementMouseOver['_div']=false; } this.__div.ggUpdatePosition=function (useTransition) { } this._ht_video_video_youtube=document.createElement('div'); this._ht_video_video_youtube__img=document.createElement('img'); this._ht_video_video_youtube__img.className='ggskin ggskin_svg'; this._ht_video_video_youtube__img.setAttribute('src',basePath + '/'+dir_image+'/images/video.png'); this._ht_video_video_youtube__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 150%;height: 150%;-webkit-user-drag:none;pointer-events:none;'); this._ht_video_video_youtube__img['ondragstart']=function() { return false; }; this._ht_video_video_youtube.appendChild(this._ht_video_video_youtube__img); this._ht_video_video_youtube__imgo=document.createElement('img'); this._ht_video_video_youtube__imgo.className='ggskin ggskin_svg'; this._ht_video_video_youtube__imgo.setAttribute('src',basePath + '/'+dir_image+'/images/video__o.png'); this._ht_video_video_youtube__imgo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 150%;height: 150%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;'); this._ht_video_video_youtube__imgo['ondragstart']=function() { return false; }; this._ht_video_video_youtube.appendChild(this._ht_video_video_youtube__imgo); this._ht_video_video_youtube.ggId="ht_video_video_youtube"; this._ht_video_video_youtube.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._ht_video_video_youtube.ggVisible=true; this._ht_video_video_youtube.className='ggskin ggskin_svg '; this._ht_video_video_youtube.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='position : absolute;'; hs+='visibility : inherit;'; hs+='width : 45px;'; hs+='top : -5px;'; hs+='pointer-events:auto;'; this._ht_video_video_youtube.setAttribute('style',hs); this._ht_video_video_youtube.style[domTransform + 'Origin']='50% 50%'; me._ht_video_video_youtube.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._ht_video_video_youtube.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._ht_video_video_youtube.onmouseover=function (e) { me._ht_video_video_youtube__img.style.visibility='hidden'; me._ht_video_video_youtube__imgo.style.visibility='inherit'; } this._ht_video_video_youtube.onmouseout=function (e) { me._ht_video_video_youtube__img.style.visibility='inherit'; me._ht_video_video_youtube__imgo.style.visibility='hidden'; } this._ht_video_video_youtube.ggUpdatePosition=function (useTransition) {} this.__div.appendChild(this._ht_video_video_youtube); this._tt_ht_video_youtube=document.createElement('div'); this._tt_ht_video_youtube__text=document.createElement('div'); this._tt_ht_video_youtube.className='ggskin ggskin_textdiv'; this._tt_ht_video_youtube.ggTextDiv=this._tt_ht_video_youtube__text; this._tt_ht_video_youtube.ggId="tt_ht_video_youtube"; this._tt_ht_video_youtube.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_ht_video_youtube.ggVisible=false; this._tt_ht_video_youtube.className='ggskin ggskin_text '; this._tt_ht_video_youtube.ggType='text'; hs =''; hs+='cursor : pointer;'; hs+='height : 31px;'; hs+='left : 0px;'; hs+='position : absolute;'; hs+='top : -81px;'; hs+='visibility : hidden;'; hs+='width : 210px;'; this._tt_ht_video_youtube.setAttribute('style',hs); this._tt_ht_video_youtube.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 198px;'; hs+='font-size: 11px;'; hs+='height: auto;'; hs+='background: #ff0000;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 5px 7px;'; hs+='overflow: hidden;'; this._tt_ht_video_youtube__text.setAttribute('style',hs); this._tt_ht_video_youtube__text.innerHTML="Přehrát "+me.hotspot.title; this._tt_ht_video_youtube.appendChild(this._tt_ht_video_youtube__text); me._tt_ht_video_youtube.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_ht_video_youtube.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._tt_ht_video_youtube.ggCurrentLogicStateVisible = -1; this._tt_ht_video_youtube.ggUpdateConditionTimer=function () { var newLogicStateVisible; if ( (me.elementMouseOver['_div'] == true) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._tt_ht_video_youtube.ggCurrentLogicStateVisible != newLogicStateVisible) { me._tt_ht_video_youtube.ggCurrentLogicStateVisible = newLogicStateVisible; me._tt_ht_video_youtube.style[domTransition]=''; if (me._tt_ht_video_youtube.ggCurrentLogicStateVisible == 0) { me._tt_ht_video_youtube.style.visibility=(Number(me._tt_ht_video_youtube.style.opacity)>0||!me._tt_ht_video_youtube.style.opacity)?'inherit':'hidden'; me._tt_ht_video_youtube.ggVisible=true; } else { me._tt_ht_video_youtube.style.visibility="hidden"; me._tt_ht_video_youtube.ggVisible=false; } } } this._tt_ht_video_youtube.ggUpdatePosition=function (useTransition) { this.style[domTransition]='none'; this.ggTextDiv.style.left=((99-this.ggTextDiv.offsetWidth)/2) + 'px'; } this.__div.appendChild(this._tt_ht_video_youtube); this.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); if (me.elementMouseOver['_div']) { } me._tt_ht_video_youtube.ggUpdateConditionTimer(); } this.hotspotTimerEvent(); } else if (hotspot.skinid=='hotspot') { this.__div=document.createElement('div'); this.__div.ggId="hotspot"; this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this.__div.ggVisible=true; this.__div.className='ggskin ggskin_hotspot hotspot_info'; this.__div.ggType='hotspot'; hs =''; hs+='cursor : pointer;'; hs+='height : 5px;'; hs+='left : 294px;'; hs+='position : absolute;'; hs+='top : 159px;'; hs+='visibility : inherit;'; hs+='width : 5px;'; this.__div.setAttribute('style',hs); this.__div.style[domTransform + 'Origin']='50% 50%'; me.__div.ggIsActive=function() { return me.player.getCurrentNode()==this.ggElementNodeId(); } me.__div.ggElementNodeId=function() { return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } this.__div.onclick=function () { console.log("http://www.digitalizujemevas.cz/sight1/"+me.hotspot.url); me.player.openUrl(me.hotspot.url,me.hotspot.target); me.skin.hotspotProxyClick(me.hotspot.id); } this.__div.onmouseover=function () { me.player.setActiveHotspot(me.hotspot); me._hstext.style[domTransition]='none'; me._hstext.style.visibility=(Number(me._hstext.style.opacity)>0||!me._hstext.style.opacity)?'inherit':'hidden'; me._hstext.ggVisible=true; me.skin.hotspotProxyOver(me.hotspot.id); } this.__div.onmouseout=function () { me.player.setActiveHotspot(null); me._hstext.style[domTransition]='none'; me._hstext.style.visibility='hidden'; me._hstext.ggVisible=false; me.skin.hotspotProxyOut(me.hotspot.id); } this.__div.ggUpdatePosition=function () { } this._hstext=document.createElement('div'); this._hstext__text=document.createElement('div'); this._hstext.className='ggskin ggskin_textdiv'; this._hstext.ggTextDiv=this._hstext__text; this._hstext.ggId="hstext"; this._hstext.ggLeft=-104; this._hstext.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._hstext.ggVisible=false; this._hstext.className='ggskin ggskin_text '; this._hstext.ggType='text'; hs =''; hs+='cursor : pointer;'; hs+='height : 28px;'; hs+='left : -104px;'; hs+='position : absolute;'; hs+='top : -30px;'; hs+='visibility : hidden;'; hs+='width : 198px;'; this._hstext.setAttribute('style',hs); this._hstext.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 198px;'; hs+='height: auto;'; hs+='background: #ffffff;'; hs+='background: rgba(216,56,69,0.705882);'; hs+='border: 0px solid #000000;'; hs+='color: rgba(255,255,255);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='overflow: hidden;'; hs+='padding: 5px 7px;'; this._hstext__text.setAttribute('style',hs); this._hstext__text.innerHTML=me.hotspot.title; this._hstext.appendChild(this._hstext__text); me._hstext.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._hstext.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._hstext.ggUpdatePosition=function () { this.style[domTransition]='none'; if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w/2) + 'px'; } } this.__div.appendChild(this._hstext); this._hotspot_image=document.createElement('div'); this._hotspot_image__img=document.createElement('img'); this._hotspot_image__img.className='ggskin ggskin_button'; this._hotspot_image__img.setAttribute('src',basePath + '/'+dir_image+'/images/hotspot_image.png'); this._hotspot_image__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._hotspot_image__img.className='ggskin ggskin_button'; this._hotspot_image__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._hotspot_image__img); this._hotspot_image.appendChild(this._hotspot_image__img); this._hotspot_image.ggId="hotspot_image"; this._hotspot_image.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._hotspot_image.ggVisible=true; this._hotspot_image.className='ggskin ggskin_button '; this._hotspot_image.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 65px;'; hs+='left : -17px;'; hs+='position : absolute;'; hs+='top : 0;'; hs+='visibility : inherit;'; hs+='width : 50px;'; this._hotspot_image.setAttribute('style',hs); this._hotspot_image.style[domTransform + 'Origin']='50% 50%'; me._hotspot_image.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._hotspot_image.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._hotspot_image.onmouseover=function () { me._hotspot_image__img.src=basePath + '/'+dir_image+'/images/hotspot_image__o.png'; } this._hotspot_image.onmouseout=function () { me._hotspot_image__img.src=basePath + '/'+dir_image+'/images/hotspot_image.png'; } this._hotspot_image.onmousedown=function () { me._hotspot_image__img.src=basePath + '/'+dir_image+'/images/hotspot_image__a.png'; } this._hotspot_image.onmouseup=function () { me._hotspot_image__img.src=basePath + '/'+dir_image+'/images/hotspot_image.png'; } this._hotspot_image.ggUpdatePosition=function () {} this.__div.appendChild(this._hotspot_image); } else if (hotspot.skinid=='ht_info') { this.__div=document.createElement('div'); this.__div.ggId="ht_info"; 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 =''; hs+='cursor : pointer;'; hs+='height : 5px;'; hs+='left : 183px;'; hs+='position : absolute;'; hs+='top : 342px;'; hs+='visibility : inherit;'; hs+='width : 5px;'; hs+='pointer-events:auto;'; this.__div.setAttribute('style',hs); this.__div.style[domTransform + 'Origin']='50% 50%'; me.__div.ggIsActive=function() { return me.player.getCurrentNode()==this.ggElementNodeId(); } me.__div.ggElementNodeId=function() { return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } this.__div.onclick=function (e) { me.skin._information.ggVisible = !me.skin._information.ggVisible; var flag=me.skin._information.ggVisible; me.skin._information.style[domTransition]='none'; me.skin._information.style.visibility=((flag)&&(Number(me.skin._information.style.opacity)>0||!me.skin._information.style.opacity))?'inherit':'hidden'; me.skin.hotspotProxyClick(me.hotspot.id); } console.log(me.hotspot.url); this.__div.onmouseover=function (e) { me.player.setActiveHotspot(me.hotspot); me.elementMouseOver['_div']=true; me.skin.hotspotProxyOver(me.hotspot.id); } this.__div.onmouseout=function (e) { me.player.setActiveHotspot(null); me.elementMouseOver['_div']=false; me.skin.hotspotProxyOut(me.hotspot.id); } this.__div.ontouchend=function (e) { me.elementMouseOver['_div']=false; } this.__div.ggUpdatePosition=function (useTransition) { } this._ht_info_image=document.createElement('div'); this._ht_info_image__img=document.createElement('img'); this._ht_info_image__img.className='ggskin ggskin_svg'; this._ht_info_image__img.setAttribute('src',basePath + '/'+dir_image+'/images/web_bod.png'); this._ht_info_image__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._ht_info_image__img['ondragstart']=function() { return false; }; this._ht_info_image.appendChild(this._ht_info_image__img); this._ht_info_image.ggId="ht_info_image"; this._ht_info_image.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._ht_info_image.ggVisible=true; this._ht_info_image.className='ggskin ggskin_svg '; this._ht_info_image.ggType='svg'; hs =''; hs+='height : 32px;'; hs+='left : -16px;'; hs+='position : absolute;'; hs+='top : -17px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; hs+='pointer-events:auto;'; this._ht_info_image.setAttribute('style',hs); this._ht_info_image.style[domTransform + 'Origin']='50% 50%'; me._ht_info_image.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._ht_info_image.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._ht_info_image.ggUpdatePosition=function (useTransition) { } this.__div.appendChild(this._ht_info_image); this._tt_information=document.createElement('div'); this._tt_information__text=document.createElement('div'); this._tt_information.className='ggskin ggskin_textdiv'; this._tt_information.ggTextDiv=this._tt_information__text; this._tt_information.ggId="tt_information"; this._tt_information.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_information.ggVisible=false; this._tt_information.className='ggskin ggskin_text '; this._tt_information.ggType='text'; hs =''; hs+='cursor : pointer;'; hs+='height : 31px;'; hs+='left : -100px;'; hs+='position : absolute;'; hs+='top : -81px;'; hs+='visibility : hidden;'; hs+='width : 210px;'; this._tt_information.setAttribute('style',hs); this._tt_information.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 198px;'; hs+='font-size: 11px;'; hs+='height: auto;'; hs+='background: #0035bb;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 5px 7px;'; hs+='overflow: hidden;'; this._tt_information__text.setAttribute('style',hs); this._tt_information__text.innerHTML=me.hotspot.title; this._tt_information.appendChild(this._tt_information__text); me._tt_information.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_information.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } me._tt_information.ggCurrentLogicStateVisible = -1; this._tt_information.ggUpdateConditionTimer=function () { var newLogicStateVisible; if ( (me.elementMouseOver['_div'] == true) ) { newLogicStateVisible = 0; } else { newLogicStateVisible = -1; } if (me._tt_information.ggCurrentLogicStateVisible != newLogicStateVisible) { me._tt_information.ggCurrentLogicStateVisible = newLogicStateVisible; me._tt_information.style[domTransition]=''; if (me._tt_information.ggCurrentLogicStateVisible == 0) { me._tt_information.style.visibility=(Number(me._tt_information.style.opacity)>0||!me._tt_information.style.opacity)?'inherit':'hidden'; me._tt_information.ggVisible=true; } else { me._tt_information.style.visibility="hidden"; me._tt_information.ggVisible=false; } } } this._tt_information.ggUpdatePosition=function (useTransition) {} this.__div.appendChild(this._tt_information); this.hotspotTimerEvent=function() { setTimeout(function() { me.hotspotTimerEvent(); }, 10); if (me.elementMouseOver['_div']) { } me._tt_information.ggUpdateConditionTimer(); } this.hotspotTimerEvent(); } else { this.__div=document.createElement('div'); this.__div.ggId="hs_informace"; this.__div.ggLeft=149; this.__div.ggTop=-17; this.__div.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this.__div.ggVisible=true; this.__div.className='ggskin ggskin_hotspot hotspot_info'; this.__div.ggType='hotspot'; hs =''; hs+='cursor : pointer;'; hs+='height : 5px;'; hs+='left : 149px;'; hs+='position : absolute;'; hs+='top : -7px;'; hs+='visibility : inherit;'; hs+='width : 5px;'; this.__div.setAttribute('style',hs); this.__div.style[domTransform + 'Origin']='50% 50%'; me.__div.ggIsActive=function() { return me.player.getCurrentNode()==this.ggElementNodeId(); } me.__div.ggElementNodeId=function() { return me.hotspot.url.substr(1, me.hotspot.url.length - 2); } /*this.__div.onclick=function () { me.skin.hotspotProxyClick(me.hotspot.id); }*/ this.__div.onclick=function () { console.log(me.hotspot.id); //me.player.openUrl(me.hotspot.url,me.hotspot.target); me.skin.hotspotProxyClick(me.hotspot.id); /**switch (me.hotspot.id) { case 'bod1' : alert('You clicked hotspot Point03.'); break; case 'bod2' : alert('You clicked hotspot Point04.'); break; default: alert('You clicked hotspot.'); }*/ } this.__div.onmouseover=function () { me.player.setActiveHotspot(me.hotspot); me.skin.hotspotProxyOver(me.hotspot.id); } this.__div.onmouseout=function () { me.player.setActiveHotspot(null); me.skin.hotspotProxyOut(me.hotspot.id); } this.__div.ggUpdatePosition=function () { this.style[domTransition]='none'; if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w/2) + 'px'; var h=this.parentNode.offsetHeight; this.style.top=(this.ggTop - 0 + h/2) + 'px'; } } this._informace_image=document.createElement('div'); this._informace_image__img=document.createElement('img'); this._informace_image__img.className='ggskin ggskin_button'; this._informace_image__img.setAttribute('src',basePath + '/'+dir_image+'/images/informace_image.png'); this._informace_image__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._informace_image__img.className='ggskin ggskin_button'; this._informace_image__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._informace_image__img); this._informace_image.appendChild(this._informace_image__img); this._informace_image.ggId="informace_image"; this._informace_image.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._informace_image.ggVisible=true; this._informace_image.className='ggskin ggskin_button '; this._informace_image.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 35px;'; hs+='left : -17px;'; hs+='position : absolute;'; hs+='top : -18px;'; hs+='visibility : inherit;'; hs+='width : 35px;'; this._informace_image.setAttribute('style',hs); this._informace_image.style[domTransform + 'Origin']='50% 50%'; me._informace_image.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._informace_image.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._informace_image.onmouseover=function () { me._nahled_text.ggVisible = !me._nahled_text.ggVisible; me._nahled_text.style[domTransition]='none'; me._nahled_text.style.visibility=((me._nahled_text.ggVisible)&&(Number(me._nahled_text.style.opacity)>0||!me._nahled_text.style.opacity))?'inherit':'hidden'; me._informace_image__img.src=basePath + '/'+dir_image+'/images/informace_image__o.png'; } this._informace_image.onmouseout=function () { me._nahled_text.ggVisible = !me._nahled_text.ggVisible; me._nahled_text.style[domTransition]='none'; me._nahled_text.style.visibility=((me._nahled_text.ggVisible)&&(Number(me._nahled_text.style.opacity)>0||!me._nahled_text.style.opacity))?'inherit':'hidden'; me._informace_image__img.src=basePath + '/'+dir_image+'/images/informace_image.png'; } this._informace_image.onmousedown=function () { me._informace_image__img.src=basePath + '/'+dir_image+'/images/informace_image__a.png'; } this._informace_image.onmouseup=function () { me._informace_image__img.src=basePath + '/'+dir_image+'/images/informace_image.png'; } this._informace_image.ggUpdatePosition=function () {} this.__div.appendChild(this._informace_image); this._nahled_text=document.createElement('div'); this._nahled_text__text=document.createElement('div'); this._nahled_text.className='ggskin ggskin_textdiv'; this._nahled_text.ggTextDiv=this._nahled_text__text; this._nahled_text.ggId="nahled_text"; this._nahled_text.ggLeft=-121; this._nahled_text.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._nahled_text.ggVisible=false; this._nahled_text.className='ggskin ggskin_text '; this._nahled_text.ggType='text'; hs =''; hs+='cursor : pointer;'; hs+='height : 31px;'; hs+='left : -121px;'; hs+='position : absolute;'; hs+='top : -51px;'; hs+='visibility : hidden;'; hs+='width : 188px;'; this._nahled_text.setAttribute('style',hs); this._nahled_text.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 188px;'; hs+='height: auto;'; hs+='background: #00aa00;'; hs+='color: rgba(255,255,255,1);'; hs+='text-align: center;'; hs+='white-space: pre-wrap;'; hs+='padding: 5px 7px;'; hs+='overflow: hidden;'; hs+='z-index: 99999999;'; this._nahled_text__text.setAttribute('style',hs); this._nahled_text__text.innerHTML=me.hotspot.title; this._nahled_text.appendChild(this._nahled_text__text); me._nahled_text.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._nahled_text.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._nahled_text.ggUpdatePosition=function () { this.style[domTransition]='none'; if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w/2) + 'px'; } } this.__div.appendChild(this._nahled_text); } }; this.addSkinHotspot=function(hotspot) { return new SkinHotspotClass(me,hotspot); } this._video_screentint_youtube=document.createElement('div'); this._video_screentint_youtube.ggId="video_screentint_youtube"; this._video_screentint_youtube.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._video_screentint_youtube.ggVisible=false; this._video_screentint_youtube.className='ggskin ggskin_rectangle '; this._video_screentint_youtube.ggType='rectangle'; hs =''; hs+='background : rgba(0,0,0,0.392157);'; hs+='border : 1px solid #000000;'; hs+='cursor : pointer;'; hs+='height : 100%;'; hs+='left : 0%;'; hs+='position : absolute;'; hs+='top : 0%;'; hs+='visibility : hidden;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; this._video_screentint_youtube.setAttribute('style',hs); this._video_screentint_youtube.style[domTransform + 'Origin']='50% 50%'; me._video_screentint_youtube.ggIsActive=function() { return false; } me._video_screentint_youtube.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._video_screentint_youtube.onclick=function (e) { me._video_screentint_youtube.style[domTransition]='none'; me._video_screentint_youtube.style.visibility='hidden'; me._video_screentint_youtube.ggVisible=false; me._video_popup_close_youtube.style[domTransition]='none'; me._video_popup_close_youtube.style.visibility='hidden'; me._video_popup_close_youtube.ggVisible=false; me._popup_video_youtube.ggInitMedia(''); me._popup_video_youtube.style[domTransition]='none'; me._popup_video_youtube.style.visibility='hidden'; me._popup_video_youtube.ggVisible=false; me._video_popup_youtube.style[domTransition]='none'; me._video_popup_youtube.style.visibility='hidden'; me._video_popup_youtube.ggVisible=false; } this._video_screentint_youtube.ggUpdatePosition=function (useTransition) { } this.divSkin.appendChild(this._video_screentint_youtube); this._video_popup_youtube=document.createElement('div'); this._video_popup_youtube.ggId="video_popup_youtube"; this._video_popup_youtube.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._video_popup_youtube.ggVisible=false; this._video_popup_youtube.className='ggskin ggskin_container '; this._video_popup_youtube.ggType='container'; hs =''; hs+='height : 80%;'; hs+='left : 10%;'; hs+='position : absolute;'; hs+='top : 10%;'; hs+='visibility : hidden;'; hs+='width : 80%;'; hs+='pointer-events:none;'; this._video_popup_youtube.setAttribute('style',hs); this._video_popup_youtube.style[domTransform + 'Origin']='50% 50%'; me._video_popup_youtube.ggIsActive=function() { return false; } me._video_popup_youtube.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._video_popup_youtube.ggUpdatePosition=function (useTransition) { } this._loading_video_youtube=document.createElement('div'); this._loading_video_youtube__img=document.createElement('img'); this._loading_video_youtube__img.className='ggskin ggskin_svg'; this._loading_video_youtube__img.setAttribute('src',basePath + '/sight1/images/loading_video_youtube.svg'); this._loading_video_youtube__img.setAttribute('style','position: absolute;top: 50px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._loading_video_youtube__img['ondragstart']=function() { return false; }; this._loading_video_youtube.appendChild(this._loading_video_youtube__img); this._loading_video_youtube.ggId="loading_video_youtube"; this._loading_video_youtube.ggLeft=-20; this._loading_video_youtube.ggTop=-20; this._loading_video_youtube.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._loading_video_youtube.ggVisible=true; this._loading_video_youtube.className='ggskin ggskin_svg '; this._loading_video_youtube.ggType='svg'; hs =''; hs+='height : 40px;'; hs+='left : -20px;'; hs+='position : absolute;'; hs+='top : -20px;'; hs+='visibility : inherit;'; hs+='width : 40px;'; hs+='pointer-events:auto;'; this._loading_video_youtube.setAttribute('style',hs); this._loading_video_youtube.style[domTransform + 'Origin']='50% 50%'; me._loading_video_youtube.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._loading_video_youtube.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._loading_video_youtube.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w/2) + 'px'; var h=this.parentNode.offsetHeight; this.style.top=(this.ggTop - 0 + h/2) + 'px'; } } this._video_popup_youtube.appendChild(this._loading_video_youtube); this._popup_video_youtube=document.createElement('div'); this._popup_video_youtube.seekbars = []; this._popup_video_youtube.ggInitMedia = function(media) { notifySeekbars = function() { for (var i = 0; i < me._popup_video_youtube.seekbars.length; i++) { var seekbar = me.findElements(me._popup_video_youtube.seekbars[i]); if (seekbar.length > 0) seekbar[0].connectToMediaEl(); } } while (me._popup_video_youtube.hasChildNodes()) { me._popup_video_youtube.removeChild(me._popup_video_youtube.lastChild); } if(media == '') { notifySeekbars(); me._popup_video_youtube.ggVideoNotLoaded = true; return; } me._popup_video_youtube.ggVideoNotLoaded = false; me._popup_video_youtube__vid=document.createElement('iframe'); me._popup_video_youtube__vid.className='ggskin ggskin_video'; var ggVideoParams = '?autoplay=1&controls=1&loop=0&rel=0'; var ggVideoUrl = 'https://www.youtube.com/embed/' + media + ggVideoParams; me._popup_video_youtube__vid.setAttribute('src', ggVideoUrl); me._popup_video_youtube__vid.setAttribute('width', '100%'); me._popup_video_youtube__vid.setAttribute('height', '100%'); me._popup_video_youtube__vid.setAttribute('style', 'border:none; '); me._popup_video_youtube.appendChild(me._popup_video_youtube__vid); me._popup_video_youtube.ggVideoSource = media; } this._popup_video_youtube.ggId="popup_video_youtube"; this._popup_video_youtube.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._popup_video_youtube.ggVisible=false; this._popup_video_youtube.className='ggskin ggskin_video '; this._popup_video_youtube.ggType='video'; hs =''; hs+='height : 100%;'; hs+='left : 0%;'; hs+='position : absolute;'; hs+='top : 0%;'; hs+='visibility : hidden;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; this._popup_video_youtube.setAttribute('style',hs); this._popup_video_youtube.style[domTransform + 'Origin']='50% 50%'; me._popup_video_youtube.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._popup_video_youtube.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._popup_video_youtube.ggUpdatePosition=function (useTransition) { } this._video_popup_youtube.appendChild(this._popup_video_youtube); this.divSkin.appendChild(this._video_popup_youtube); this._video_popup_close_youtube=document.createElement('div'); this._video_popup_close_youtube__img=document.createElement('img'); this._video_popup_close_youtube__img.className='ggskin ggskin_svg'; this._video_popup_close_youtube__img.setAttribute('src',basePath + '/sight1/images/video_popup_close_youtube.svg'); this._video_popup_close_youtube__img.setAttribute('style','position: absolute;top: 50px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._video_popup_close_youtube__img['ondragstart']=function() { return false; }; this._video_popup_close_youtube.appendChild(this._video_popup_close_youtube__img); this._video_popup_close_youtube__imgo=document.createElement('img'); this._video_popup_close_youtube__imgo.className='ggskin ggskin_svg'; this._video_popup_close_youtube__imgo.setAttribute('src',basePath + '/sight1/images/video_popup_close_youtube__o.svg'); this._video_popup_close_youtube__imgo.setAttribute('style','position: absolute;top: 50px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;'); this._video_popup_close_youtube__imgo['ondragstart']=function() { return false; }; this._video_popup_close_youtube.appendChild(this._video_popup_close_youtube__imgo); this._video_popup_close_youtube.ggId="video_popup_close_youtube"; this._video_popup_close_youtube.ggLeft=-37; this._video_popup_close_youtube.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._video_popup_close_youtube.ggVisible=false; this._video_popup_close_youtube.className='ggskin ggskin_svg '; this._video_popup_close_youtube.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='left : -37px;'; hs+='position : absolute;'; hs+='top : 5px;'; hs+='visibility : hidden;'; hs+='width : 32px;'; hs+='pointer-events:auto;'; this._video_popup_close_youtube.setAttribute('style',hs); this._video_popup_close_youtube.style[domTransform + 'Origin']='50% 50%'; me._video_popup_close_youtube.ggIsActive=function() { return false; } me._video_popup_close_youtube.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._video_popup_close_youtube.onclick=function (e) { me._video_screentint_youtube.style[domTransition]='none'; me._video_screentint_youtube.style.visibility='hidden'; me._video_screentint_youtube.ggVisible=false; me._popup_video_youtube.ggInitMedia(''); me._popup_video_youtube.style[domTransition]='none'; me._popup_video_youtube.style.visibility='hidden'; me._popup_video_youtube.ggVisible=false; me._video_popup_youtube.style[domTransition]='none'; me._video_popup_youtube.style.visibility='hidden'; me._video_popup_youtube.ggVisible=false; me._video_popup_close_youtube.style[domTransition]='none'; me._video_popup_close_youtube.style.visibility='hidden'; me._video_popup_close_youtube.ggVisible=false; } this._video_popup_close_youtube.onmouseover=function (e) { me._video_popup_close_youtube__img.style.visibility='hidden'; me._video_popup_close_youtube__imgo.style.visibility='inherit'; } this._video_popup_close_youtube.onmouseout=function (e) { me._video_popup_close_youtube__img.style.visibility='inherit'; me._video_popup_close_youtube__imgo.style.visibility='hidden'; } this._video_popup_close_youtube.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w) + 'px'; } } this.divSkin.appendChild(this._video_popup_close_youtube); me._popup_video_youtube.ggVideoSource = ''; me._popup_video_youtube.ggVideoNotLoaded = true; this._closebutton=document.createElement('div'); this._closebutton__img=document.createElement('img'); this._closebutton__img.className='ggskin ggskin_button'; this._closebutton__img.setAttribute('src',basePath + '/'+dir_image+'/images/preloader/closebutton.png'); this._closebutton__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._closebutton__img.className='ggskin ggskin_button'; this._closebutton__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._closebutton__img); this._closebutton.appendChild(this._closebutton__img); this._closebutton.ggId="close-button"; this._closebutton.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._closebutton.ggVisible=true; this._closebutton.className='ggskin ggskin_button '; this._closebutton.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 25px;'; hs+='left : 82.97%;'; hs+='opacity : 0;'; hs+='position : absolute;'; hs+='top : 17.5%;'; hs+='visibility : inherit;'; hs+='width : 25px;'; hs+='pointer-events:auto;'; this._closebutton.setAttribute('style',hs); this._closebutton.style[domTransform + 'Origin']='50% 50%'; me._closebutton.ggIsActive=function() { return false; } me._closebutton.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._closebutton.onclick=function (e) { if (me.player.transitionsDisabled) { me._mapalist.style[domTransition]='none'; } else { me._mapalist.style[domTransition]='all 500ms ease-out 0ms'; } me._mapalist.style.opacity='0'; me._mapalist.style.visibility='hidden'; me._closebutton.style[domTransition]='none'; me._closebutton.style.opacity='0'; me._closebutton.style.visibility='hidden'; } this._closebutton.onmouseover=function (e) { me._closebutton__img.src=basePath + '/'+dir_image+'/images/preloader/closebutton__o.png'; } this._closebutton.onmouseout=function (e) { me._closebutton__img.src=basePath + '/'+dir_image+'/images/preloader/closebutton.png'; } this._closebutton.onmousedown=function (e) { me._closebutton__img.src=basePath + '/'+dir_image+'/images/preloader/closebutton__a.png'; } this._closebutton.onmouseup=function (e) { me._closebutton__img.src=basePath + '/'+dir_image+'/images/preloader/closebutton.png'; } this._closebutton.ggUpdatePosition=function (useTransition) { } this.divSkin.appendChild(this._closebutton); this._buttonaddit=document.createElement('div'); this._buttonaddit__img=document.createElement('img'); this._buttonaddit__img.className='ggskin ggskin_button'; this._buttonaddit__img.setAttribute('src',basePath + '/'+dir_image+'/images/preloader/buttonaddit.png'); this._buttonaddit__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._buttonaddit__img.className='ggskin ggskin_button'; this._buttonaddit__img['ondragstart']=function() { return false; }; me.player.checkLoaded.push(this._buttonaddit__img); this._buttonaddit.appendChild(this._buttonaddit__img); this._buttonaddit.ggId="button-addit"; this._buttonaddit.ggLeft=-20; this._buttonaddit.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._buttonaddit.ggVisible=true; this._buttonaddit.className='ggskin ggskin_button '; this._buttonaddit.ggType='button'; hs =''; hs+='cursor : pointer;'; hs+='height : 64px;'; hs+='left : -20px;'; hs+='opacity : 0.8;'; hs+='position : absolute;'; hs+='top : -11px;'; hs+='visibility : inherit;'; hs+='width : 64px;'; hs+='z-index : 88888888888888;'; hs+='pointer-events:auto;'; this._buttonaddit.setAttribute('style',hs); this._buttonaddit.style[domTransform + 'Origin']='50% 50%'; me._buttonaddit.ggIsActive=function() { return false; } me._buttonaddit.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._buttonaddit.onclick=function (e) { if (me.player.transitionsDisabled) { me._mapalist.style[domTransition]='none'; } else { me._mapalist.style[domTransition]='all 500ms ease-out 0ms'; } me._mapalist.style.opacity='0.9'; me._mapalist.style.visibility=me._mapalist.ggVisible?'inherit':'hidden'; me._closebutton.style[domTransition]='none'; me._closebutton.style.opacity='1'; me._closebutton.style.visibility=me._closebutton.ggVisible?'inherit':'hidden'; } this._buttonaddit.onmouseover=function (e) { me._buttonaddit__img.src=basePath + '/'+dir_image+'/images/preloader/buttonaddit__o.png'; } this._buttonaddit.onmouseout=function (e) { me._buttonaddit__img.src=basePath + '/'+dir_image+'/images/preloader/buttonaddit.png'; } this._buttonaddit.onmousedown=function (e) { me._buttonaddit__img.src=basePath + '/'+dir_image+'/images/preloader/buttonaddit__a.png'; } this._buttonaddit.onmouseup=function (e) { me._buttonaddit__img.src=basePath + '/'+dir_image+'/images/preloader/buttonaddit.png'; } this._buttonaddit.ggUpdatePosition=function (useTransition) { if (useTransition==='undefined') { useTransition = false; } if (!useTransition) { this.style[domTransition]='none'; } if (this.parentNode) { var w=this.parentNode.offsetWidth; this.style.left=(this.ggLeft - 0 + w/2) + 'px'; } } this.divSkin.appendChild(this._buttonaddit);this._information=document.createElement('div'); this._information.ggId="information"; this._information.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._information.ggVisible=false; this._information.className='ggskin ggskin_container '; this._information.ggType='container'; hs =''; hs+='height : 83.3333%;'; hs+='left : 18.25%;'; hs+='position : absolute;'; hs+='top : 9.67%;'; hs+='visibility : hidden;'; hs+='width : 90%;'; hs+='pointer-events:none;'; this._information.setAttribute('style',hs); this._information.style[domTransform + 'Origin']='50% 50%'; me._information.ggIsActive=function() { return false; } me._information.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._information.ggUpdatePosition=function (useTransition) { } this._popup_image=document.createElement('div'); this._popup_image__img=document.createElement('img'); this._popup_image__img.className='ggskin ggskin_external'; this._popup_image__img.onload=function() {me._popup_image.ggUpdatePosition();} this._popup_image__img.setAttribute('src',basePath + ''); this._popup_image__img['ondragstart']=function() { return false; }; hs =''; this._popup_image.appendChild(this._popup_image__img); this._popup_image.ggId="popup_image"; this._popup_image.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._popup_image.ggVisible=true; this._popup_image.className='ggskin ggskin_external '; this._popup_image.ggType='external'; hs =''; hs+='border : 0px solid #000000;'; hs+='cursor : pointer;'; hs+='height : 100%;'; hs+='left : -13.31%;'; hs+='position : absolute;'; hs+='top : -5.18%;'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; this._popup_image.setAttribute('style',hs); this._popup_image.style[domTransform + 'Origin']='50% 50%'; me._popup_image.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._popup_image.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._popup_image.ggUpdatePosition=function (useTransition) { var parentWidth = me._popup_image.clientWidth; var parentHeight = me._popup_image.clientHeight; var aspectRatioDiv = me._popup_image.clientWidth / me._popup_image.clientHeight; var aspectRatioImg = me._popup_image__img.naturalWidth / me._popup_image__img.naturalHeight; if (me._popup_image__img.naturalWidth < parentWidth) parentWidth = me._popup_image__img.naturalWidth; if (me._popup_image__img.naturalHeight < parentHeight) parentHeight = me._popup_image__img.naturalHeight; var currentWidth = me._popup_image__img.naturalWidth; var currentHeight = me._popup_image__img.naturalHeight; if (aspectRatioDiv > aspectRatioImg) { currentHeight = parentHeight; currentWidth = parentHeight * aspectRatioImg; me._popup_image__img.setAttribute('style','position: absolute; left: 50%; margin-left: -' + currentWidth/2 + 'px; top: 50%; margin-top: -' + currentHeight/2 + 'px;height:' + parentHeight + 'px;-webkit-user-drag:none;pointer-events:none;'); } else { currentWidth = parentWidth; currentHeight = parentWidth / aspectRatioImg; me._popup_image__img.setAttribute('style','position: absolute; left: 50%; margin-left: -' + currentWidth/2 + 'px; top: 50%; margin-top: -' + currentHeight/2 + 'px;width:' + parentWidth + 'px;-webkit-user-drag:none;pointer-events:none;'); }; } this._sluzby_milevsko=document.createElement('div'); this._sluzby_milevsko__text=document.createElement('div'); this._sluzby_milevsko.className='ggskin ggskin_textdiv'; this._sluzby_milevsko.ggTextDiv=this._sluzby_milevsko__text; this._sluzby_milevsko.ggId="sluzby_milevsko"; this._sluzby_milevsko.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._sluzby_milevsko.ggVisible=true; this._sluzby_milevsko.className='ggskin ggskin_text '; this._sluzby_milevsko.ggType='text'; hs =''; hs+='height : 99.6%;'; hs+='left : 0%;'; hs+='position : absolute;'; hs+='top : 0.8%;'; hs+='visibility : inherit;'; hs+='width : 100%;'; hs+='pointer-events:auto;'; this._sluzby_milevsko.setAttribute('style',hs); this._sluzby_milevsko.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 100%;'; hs+='height: 100%;'; hs+='background: #ffffff;'; hs+='border: 1px solid #000000;'; hs+='color: #000000;'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._sluzby_milevsko__text.setAttribute('style',hs); this._sluzby_milevsko.ggUpdateText=function() { var hs="