// Garden Gnome Software - Skin // Pano2VR 5.2.5/15998 // Filename: simplex-Fin.ggsk // Generated Wed Oct 3 14:16:27 2018 function pano2vrSkin(player,base) { var ggSkinVars = []; var me=this; var flag=false; var nodeMarker=[]; var activeNodeMarker=[]; this.player=player; this.player.skinObj=this; this.divSkin=player.divSkin; this.ggUserdata=me.player.userdata; this.lastSize={ w: -1,h: -1 }; var basePath=""; // auto detect 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._tt_zoomin.style.opacity)?'inherit':'hidden'; me._tt_zoomin.ggVisible=true; me._zoomin__img.style.visibility='hidden'; me._zoomin__imgo.style.visibility='inherit'; } this._zoomin.onmouseout=function (e) { me._tt_zoomin.style[domTransition]='none'; me._tt_zoomin.style.visibility='hidden'; me._tt_zoomin.ggVisible=false; me._zoomin__img.style.visibility='inherit'; me._zoomin__imgo.style.visibility='hidden'; 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._tt_zoomin=document.createElement('div'); this._tt_zoomin__text=document.createElement('div'); this._tt_zoomin.className='ggskin ggskin_textdiv'; this._tt_zoomin.ggTextDiv=this._tt_zoomin__text; this._tt_zoomin.ggId="tt_zoomin"; this._tt_zoomin.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_zoomin.ggVisible=false; this._tt_zoomin.className='ggskin ggskin_text '; this._tt_zoomin.ggType='text'; hs =''; hs+='height : 18px;'; hs+='left : -55px;'; hs+='position : absolute;'; hs+='top : 36px;'; hs+='visibility : hidden;'; hs+='width : 148px;'; hs+='pointer-events:auto;'; this._tt_zoomin.setAttribute('style',hs); this._tt_zoomin.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 148px;'; hs+='height: 18px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(0,0,0,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._tt_zoomin__text.setAttribute('style',hs); this._tt_zoomin__text.innerHTML="Zoom In"; this._tt_zoomin.appendChild(this._tt_zoomin__text); me._tt_zoomin.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_zoomin.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._tt_zoomin.ggUpdatePosition=function (useTransition) { } this._tt_zoomin_white=document.createElement('div'); this._tt_zoomin_white__text=document.createElement('div'); this._tt_zoomin_white.className='ggskin ggskin_textdiv'; this._tt_zoomin_white.ggTextDiv=this._tt_zoomin_white__text; this._tt_zoomin_white.ggId="tt_zoomin_white"; this._tt_zoomin_white.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_zoomin_white.ggVisible=true; this._tt_zoomin_white.className='ggskin ggskin_text '; this._tt_zoomin_white.ggType='text'; hs =''; hs+='height : 18px;'; hs+='left : -1px;'; hs+='position : absolute;'; hs+='top : -1px;'; hs+='visibility : inherit;'; hs+='width : 148px;'; hs+='pointer-events:auto;'; this._tt_zoomin_white.setAttribute('style',hs); this._tt_zoomin_white.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 148px;'; hs+='height: 18px;'; 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._tt_zoomin_white__text.setAttribute('style',hs); this._tt_zoomin_white__text.innerHTML="Zoom In"; this._tt_zoomin_white.appendChild(this._tt_zoomin_white__text); me._tt_zoomin_white.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_zoomin_white.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._tt_zoomin_white.ggUpdatePosition=function (useTransition) { } this._tt_zoomin.appendChild(this._tt_zoomin_white); this._zoomin.appendChild(this._tt_zoomin); this._controller.appendChild(this._zoomin); this._zoomout=document.createElement('div'); this._zoomout__img=document.createElement('img'); this._zoomout__img.className='ggskin ggskin_svg'; this._zoomout__img.setAttribute('src',basePath + 'images/zoomout.svg'); 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['ondragstart']=function() { return false; }; this._zoomout.appendChild(this._zoomout__img); this._zoomout__imgo=document.createElement('img'); this._zoomout__imgo.className='ggskin ggskin_svg'; this._zoomout__imgo.setAttribute('src',basePath + 'images/zoomout__o.svg'); this._zoomout__imgo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;'); this._zoomout__imgo['ondragstart']=function() { return false; }; this._zoomout.appendChild(this._zoomout__imgo); 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_svg '; this._zoomout.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='left : 152px;'; hs+='position : absolute;'; hs+='top : 9px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; 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._tt_zoomout.style[domTransition]='none'; me._tt_zoomout.style.visibility=(Number(me._tt_zoomout.style.opacity)>0||!me._tt_zoomout.style.opacity)?'inherit':'hidden'; me._tt_zoomout.ggVisible=true; me._zoomout__img.style.visibility='hidden'; me._zoomout__imgo.style.visibility='inherit'; } this._zoomout.onmouseout=function (e) { me._tt_zoomout.style[domTransition]='none'; me._tt_zoomout.style.visibility='hidden'; me._tt_zoomout.ggVisible=false; me._zoomout__img.style.visibility='inherit'; me._zoomout__imgo.style.visibility='hidden'; 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._tt_zoomout=document.createElement('div'); this._tt_zoomout__text=document.createElement('div'); this._tt_zoomout.className='ggskin ggskin_textdiv'; this._tt_zoomout.ggTextDiv=this._tt_zoomout__text; this._tt_zoomout.ggId="tt_zoomout"; this._tt_zoomout.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_zoomout.ggVisible=false; this._tt_zoomout.className='ggskin ggskin_text '; this._tt_zoomout.ggType='text'; hs =''; hs+='height : 18px;'; hs+='left : -55px;'; hs+='position : absolute;'; hs+='top : 36px;'; hs+='visibility : hidden;'; hs+='width : 148px;'; hs+='pointer-events:auto;'; this._tt_zoomout.setAttribute('style',hs); this._tt_zoomout.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 148px;'; hs+='height: 18px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(0,0,0,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._tt_zoomout__text.setAttribute('style',hs); this._tt_zoomout__text.innerHTML="Zoom Out"; this._tt_zoomout.appendChild(this._tt_zoomout__text); me._tt_zoomout.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_zoomout.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._tt_zoomout.ggUpdatePosition=function (useTransition) { } this._tt_zoomout_white=document.createElement('div'); this._tt_zoomout_white__text=document.createElement('div'); this._tt_zoomout_white.className='ggskin ggskin_textdiv'; this._tt_zoomout_white.ggTextDiv=this._tt_zoomout_white__text; this._tt_zoomout_white.ggId="tt_zoomout_white"; this._tt_zoomout_white.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_zoomout_white.ggVisible=true; this._tt_zoomout_white.className='ggskin ggskin_text '; this._tt_zoomout_white.ggType='text'; hs =''; hs+='height : 18px;'; hs+='left : -1px;'; hs+='position : absolute;'; hs+='top : -1px;'; hs+='visibility : inherit;'; hs+='width : 148px;'; hs+='pointer-events:auto;'; this._tt_zoomout_white.setAttribute('style',hs); this._tt_zoomout_white.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 148px;'; hs+='height: 18px;'; 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._tt_zoomout_white__text.setAttribute('style',hs); this._tt_zoomout_white__text.innerHTML="Zoom Out"; this._tt_zoomout_white.appendChild(this._tt_zoomout_white__text); me._tt_zoomout_white.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_zoomout_white.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._tt_zoomout_white.ggUpdatePosition=function (useTransition) { } this._tt_zoomout.appendChild(this._tt_zoomout_white); this._zoomout.appendChild(this._tt_zoomout); this._controller.appendChild(this._zoomout); this._autorotate=document.createElement('div'); this._autorotate__img=document.createElement('img'); this._autorotate__img.className='ggskin ggskin_svg'; this._autorotate__img.setAttribute('src',basePath + 'images/autorotate.svg'); 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['ondragstart']=function() { return false; }; this._autorotate.appendChild(this._autorotate__img); this._autorotate__imgo=document.createElement('img'); this._autorotate__imgo.className='ggskin ggskin_svg'; this._autorotate__imgo.setAttribute('src',basePath + 'images/autorotate__o.svg'); this._autorotate__imgo.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;visibility:hidden;pointer-events:none;'); this._autorotate__imgo['ondragstart']=function() { return false; }; this._autorotate.appendChild(this._autorotate__imgo); 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_svg '; this._autorotate.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 32px;'; hs+='left : 192px;'; hs+='position : absolute;'; hs+='top : 9px;'; hs+='visibility : inherit;'; hs+='width : 32px;'; 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._tt_autorotate.style[domTransition]='none'; me._tt_autorotate.style.visibility=(Number(me._tt_autorotate.style.opacity)>0||!me._tt_autorotate.style.opacity)?'inherit':'hidden'; me._tt_autorotate.ggVisible=true; me._autorotate__img.style.visibility='hidden'; me._autorotate__imgo.style.visibility='inherit'; } this._autorotate.onmouseout=function (e) { me._tt_autorotate.style[domTransition]='none'; me._tt_autorotate.style.visibility='hidden'; me._tt_autorotate.ggVisible=false; me._autorotate__img.style.visibility='inherit'; me._autorotate__imgo.style.visibility='hidden'; } this._autorotate.ggUpdatePosition=function (useTransition) { } this._tt_autorotate=document.createElement('div'); this._tt_autorotate__text=document.createElement('div'); this._tt_autorotate.className='ggskin ggskin_textdiv'; this._tt_autorotate.ggTextDiv=this._tt_autorotate__text; this._tt_autorotate.ggId="tt_autorotate"; this._tt_autorotate.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_autorotate.ggVisible=false; this._tt_autorotate.className='ggskin ggskin_text '; this._tt_autorotate.ggType='text'; hs =''; hs+='height : 18px;'; hs+='left : -65px;'; hs+='position : absolute;'; hs+='top : 36px;'; hs+='visibility : hidden;'; hs+='width : 168px;'; hs+='pointer-events:auto;'; this._tt_autorotate.setAttribute('style',hs); this._tt_autorotate.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 168px;'; hs+='height: 18px;'; hs+='border: 0px solid #000000;'; hs+='color: rgba(0,0,0,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 0px 1px 0px 1px;'; hs+='overflow: hidden;'; this._tt_autorotate__text.setAttribute('style',hs); this._tt_autorotate__text.innerHTML="Start\/Stop Autorotation"; this._tt_autorotate.appendChild(this._tt_autorotate__text); me._tt_autorotate.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_autorotate.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._tt_autorotate.ggUpdatePosition=function (useTransition) { } this._tt_autorotate_white=document.createElement('div'); this._tt_autorotate_white__text=document.createElement('div'); this._tt_autorotate_white.className='ggskin ggskin_textdiv'; this._tt_autorotate_white.ggTextDiv=this._tt_autorotate_white__text; this._tt_autorotate_white.ggId="tt_autorotate_white"; this._tt_autorotate_white.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._tt_autorotate_white.ggVisible=true; this._tt_autorotate_white.className='ggskin ggskin_text '; this._tt_autorotate_white.ggType='text'; hs =''; hs+='height : 18px;'; hs+='left : -1px;'; hs+='position : absolute;'; hs+='top : -1px;'; hs+='visibility : inherit;'; hs+='width : 168px;'; hs+='pointer-events:auto;'; this._tt_autorotate_white.setAttribute('style',hs); this._tt_autorotate_white.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: 168px;'; hs+='height: 18px;'; 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._tt_autorotate_white__text.setAttribute('style',hs); this._tt_autorotate_white__text.innerHTML="Start\/Stop Autorotation"; this._tt_autorotate_white.appendChild(this._tt_autorotate_white__text); me._tt_autorotate_white.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._tt_autorotate_white.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._tt_autorotate_white.ggUpdatePosition=function (useTransition) { } this._tt_autorotate.appendChild(this._tt_autorotate_white); this._autorotate.appendChild(this._tt_autorotate); this._controller.appendChild(this._autorotate); this.divSkin.appendChild(this._controller); this._hide_template=document.createElement('div'); this._hide_template.ggId="hide_template"; this._hide_template.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._hide_template.ggVisible=false; this._hide_template.className='ggskin ggskin_container '; this._hide_template.ggType='container'; hs =''; hs+='height : 45px;'; hs+='left : 10px;'; hs+='overflow : hidden;'; hs+='position : absolute;'; hs+='top : 10px;'; hs+='visibility : hidden;'; hs+='width : 187px;'; hs+='pointer-events:none;'; this._hide_template.setAttribute('style',hs); this._hide_template.style[domTransform + 'Origin']='50% 50%'; me._hide_template.ggIsActive=function() { return false; } me._hide_template.ggElementNodeId=function() { return me.player.getCurrentNode(); } this._hide_template.ggUpdatePosition=function (useTransition) { } this._markertemplate=document.createElement('div'); this._markertemplate.ggMarkerNodeId=''; nodeMarker.push(this._markertemplate); this._markertemplate.ggId="markertemplate"; this._markertemplate.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._markertemplate.ggVisible=true; this._markertemplate.className='ggskin ggskin_mark '; this._markertemplate.ggType='mark'; hs =''; hs+='height : 5px;'; hs+='left : 60px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 5px;'; hs+='pointer-events:auto;'; this._markertemplate.setAttribute('style',hs); this._markertemplate.style[domTransform + 'Origin']='50% 50%'; me._markertemplate.ggIsActive=function() { return this.ggIsMarkerActive==true; } me._markertemplate.ggElementNodeId=function() { var hs=String(this.ggMarkerNodeId); if (hs.charAt(0)=='{') { return hs.substr(1, hs.length - 2); } return ''; } this._markertemplate.onmouseover=function (e) { me._marker_title.style[domTransition]='none'; me._marker_title.style.visibility=(Number(me._marker_title.style.opacity)>0||!me._marker_title.style.opacity)?'inherit':'hidden'; me._marker_title.ggVisible=true; } this._markertemplate.onmouseout=function (e) { me._marker_title.style[domTransition]='none'; me._marker_title.style.visibility='hidden'; me._marker_title.ggVisible=false; } this._markertemplate.ggUpdateConditionNodeChange=function () { me._markertemplate__normal.ggNodeChangeMain(); me._markertemplate__active.ggNodeChangeMain(); } this._markertemplate.ggUpdatePosition=function (useTransition) { } this._markertemplate.ggNodeChange=function () { me._markertemplate.ggUpdateConditionNodeChange(); } this._marker_title=document.createElement('div'); this._marker_title__text=document.createElement('div'); this._marker_title.className='ggskin ggskin_textdiv'; this._marker_title.ggTextDiv=this._marker_title__text; this._marker_title.ggId="marker_title"; this._marker_title.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._marker_title.ggVisible=false; this._marker_title.className='ggskin ggskin_text '; this._marker_title.ggType='text'; hs =''; hs+='z-index: 100;'; hs+='height : 17px;'; hs+='left : -60px;'; hs+='position : absolute;'; hs+='top : 35px;'; hs+='visibility : hidden;'; hs+='width : 145px;'; hs+='pointer-events:auto;'; this._marker_title.setAttribute('style',hs); this._marker_title.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='cursor: default;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: auto;'; hs+='height: auto;'; hs+='background: #ffffff;'; hs+='background: rgba(255,255,255,0.705882);'; hs+='border: 1px solid #000000;'; hs+='border-radius: 5px;'; hs+=cssPrefix + 'border-radius: 5px;'; hs+='color: rgba(0,0,0,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 1px 2px 1px 2px;'; hs+='overflow: hidden;'; this._marker_title__text.setAttribute('style',hs); this._marker_title.ggUpdateText=function() { var hs=me.ggUserdata.title; if (hs!=this.ggText) { this.ggText=hs; this.ggTextDiv.innerHTML=hs; if (this.ggUpdatePosition) this.ggUpdatePosition(); } } me._marker_title.ggUpdateText(); this._marker_title.appendChild(this._marker_title__text); me._marker_title.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._marker_title.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.player.getCurrentNode(); } this._marker_title.ggUpdatePosition=function (useTransition) { this.style[domTransition]='none'; this.ggTextDiv.style.left=((149-this.ggTextDiv.offsetWidth)/2) + 'px'; } this._markertemplate.appendChild(this._marker_title); this._hide_template.appendChild(this._markertemplate); this.divSkin.appendChild(this._hide_template); this._markertemplate__normal=new SkinElement_marker_normal_Class(this,this._markertemplate); this._markertemplate__normal.style.visibility='inherit'; this._markertemplate__normal.style.left='0px'; this._markertemplate__normal.style.top='0px'; this._markertemplate.ggMarkerNormal=this._markertemplate__normal; this._markertemplate__active=new SkinElement_marker_active_Class(this,this._markertemplate); this._markertemplate__active.style.visibility='hidden'; this._markertemplate__active.style.left='0px'; this._markertemplate__active.style.top='0px'; this._markertemplate.ggMarkerActive=this._markertemplate__active; if (this._markertemplate.firstChild) { this._markertemplate.insertBefore(this._markertemplate__active,this._markertemplate.firstChild); } else { this._markertemplate.appendChild(this._markertemplate__active); } if (this._markertemplate.firstChild) { this._markertemplate.insertBefore(this._markertemplate__normal,this._markertemplate.firstChild); } else { this._markertemplate.appendChild(this._markertemplate__normal); } this.divSkin.ggUpdateSize=function(w,h) { me.updateSize(me.divSkin); } this.divSkin.ggViewerInit=function() { } this.divSkin.ggLoaded=function() { } this.divSkin.ggReLoaded=function() { } this.divSkin.ggLoadedLevels=function() { } this.divSkin.ggReLoadedLevels=function() { } this.divSkin.ggEnterFullscreen=function() { } this.divSkin.ggExitFullscreen=function() { } this.skinTimerEvent(); }; this.hotspotProxyClick=function(id) { } this.hotspotProxyOver=function(id) { } this.hotspotProxyOut=function(id) { } this.changeActiveNode=function(id) { me.ggUserdata=me.player.userdata; me._markertemplate.ggNodeChange(); var newMarker=[]; var i,j; var tags=me.ggUserdata.tags; for (i=0;i0||!me._hstext.style.opacity)?'inherit':'hidden'; me._hstext.ggVisible=true; me.skin.hotspotProxyOver(me.hotspot.id); } this.__div.onmouseout=function (e) { 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 (useTransition) { } this._hsimage=document.createElement('div'); this._hsimage__img=document.createElement('img'); this._hsimage__img.className='ggskin ggskin_svg'; this._hsimage__img.setAttribute('src',basePath + 'images/hsimage.svg'); this._hsimage__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._hsimage__img['ondragstart']=function() { return false; }; this._hsimage.appendChild(this._hsimage__img); this._hsimage.ggId="hsimage"; this._hsimage.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._hsimage.ggVisible=true; this._hsimage.className='ggskin ggskin_svg '; this._hsimage.ggType='svg'; hs =''; hs+='cursor : pointer;'; hs+='height : 23px;'; hs+='left : -12px;'; hs+='position : absolute;'; hs+='top : -12px;'; hs+='visibility : inherit;'; hs+='width : 23px;'; hs+='pointer-events:auto;'; this._hsimage.setAttribute('style',hs); this._hsimage.style[domTransform + 'Origin']='50% 50%'; me._hsimage.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._hsimage.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._hsimage.ggUpdatePosition=function (useTransition) { } this.__div.appendChild(this._hsimage); 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=-38; this._hstext.ggTop=14; this._hstext.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._hstext.ggVisible=true; this._hstext.className='ggskin ggskin_text '; this._hstext.ggType='text'; hs =''; hs+='z-index: 100;'; hs+='cursor : pointer;'; hs+='height : 18px;'; hs+='left : -38px;'; hs+='position : absolute;'; hs+='top : 14px;'; hs+='visibility : inherit;'; hs+='width : 66px;'; hs+='pointer-events:auto;'; this._hstext.setAttribute('style',hs); this._hstext.style[domTransform + 'Origin']='50% 50%'; hs ='position:absolute;'; hs+='left: 0px;'; hs+='top: 0px;'; hs+='width: auto;'; hs+='height: auto;'; hs+='background: #ffffff;'; hs+='background: rgba(255,255,255,0.588235);'; hs+='border: 0px solid #000000;'; hs+='border-radius: 5px;'; hs+=cssPrefix + 'border-radius: 5px;'; hs+='color: rgba(51,51,51,1);'; hs+='text-align: center;'; hs+='white-space: nowrap;'; hs+='padding: 5px 6px 5px 6px;'; hs+='overflow: hidden;'; 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 (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.style[domTransition]='none'; this.ggTextDiv.style.left=((68-this.ggTextDiv.offsetWidth)/2) + 'px'; } this.__div.appendChild(this._hstext); } }; this.addSkinHotspot=function(hotspot) { return new SkinHotspotClass(me,hotspot); } function SkinElement_marker_normal_Class(skinObj,ggParent) { var me=this; var flag=false; this.player=skinObj.player; this.skin=skinObj; this.ggParent=ggParent; var nodeId=ggParent.ggElementNodeId(); this.ggNodeId=nodeId; this.ggUserdata=this.skin.player.getNodeUserdata(nodeId); this.elementMouseDown=[]; this.elementMouseOver=[]; this.findElements=function(id,regex) { return me.skin.findElements(id,regex); } this._marker_normal=document.createElement('div'); this._marker_normal__img=document.createElement('img'); this._marker_normal__img.className='ggskin ggskin_svg'; this._marker_normal__img.setAttribute('src',basePath + 'images/marker_normal.svg'); this._marker_normal__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._marker_normal__img['ondragstart']=function() { return false; }; this._marker_normal.appendChild(this._marker_normal__img); this._marker_normal.ggId="marker_normal"; this._marker_normal.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._marker_normal.ggVisible=true; this._marker_normal.className='ggskin ggskin_svg '; this._marker_normal.ggType='svg'; hs =''; hs+='height : 32px;'; hs+='left : 140px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 31px;'; hs+='pointer-events:auto;'; this._marker_normal.setAttribute('style',hs); this._marker_normal.style[domTransform + 'Origin']='50% 50%'; me._marker_normal.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._marker_normal.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._marker_normal.ggUpdatePosition=function (useTransition) { } this._marker_normal.ggNodeChangeMain=function() { } return this._marker_normal; }; function SkinElement_marker_active_Class(skinObj,ggParent) { var me=this; var flag=false; this.player=skinObj.player; this.skin=skinObj; this.ggParent=ggParent; var nodeId=ggParent.ggElementNodeId(); this.ggNodeId=nodeId; this.ggUserdata=this.skin.player.getNodeUserdata(nodeId); this.elementMouseDown=[]; this.elementMouseOver=[]; this.findElements=function(id,regex) { return me.skin.findElements(id,regex); } this._marker_active=document.createElement('div'); this._marker_active__img=document.createElement('img'); this._marker_active__img.className='ggskin ggskin_svg'; this._marker_active__img.setAttribute('src',basePath + 'images/marker_active.svg'); this._marker_active__img.setAttribute('style','position: absolute;top: 0px;left: 0px;width: 100%;height: 100%;-webkit-user-drag:none;pointer-events:none;'); this._marker_active__img['ondragstart']=function() { return false; }; this._marker_active.appendChild(this._marker_active__img); this._marker_active.ggId="marker_active"; this._marker_active.ggParameter={ rx:0,ry:0,a:0,sx:1,sy:1 }; this._marker_active.ggVisible=true; this._marker_active.className='ggskin ggskin_svg '; this._marker_active.ggType='svg'; hs =''; hs+='height : 31px;'; hs+='left : 105px;'; hs+='position : absolute;'; hs+='top : 0px;'; hs+='visibility : inherit;'; hs+='width : 31px;'; hs+='pointer-events:auto;'; this._marker_active.setAttribute('style',hs); this._marker_active.style[domTransform + 'Origin']='50% 50%'; me._marker_active.ggIsActive=function() { if ((this.parentNode) && (this.parentNode.ggIsActive)) { return this.parentNode.ggIsActive(); } return false; } me._marker_active.ggElementNodeId=function() { if ((this.parentNode) && (this.parentNode.ggElementNodeId)) { return this.parentNode.ggElementNodeId(); } return me.ggNodeId; } this._marker_active.ggUpdatePosition=function (useTransition) { } this._marker_active.ggNodeChangeMain=function() { } return this._marker_active; }; this.addSkin(); };