/* 
﻿Copyright © 1998, 2012, Oracle and/or its affiliates.  All rights reserved.*/ 
function Cookie(a,b,c,d,e,f){this.$document=a;this.$name=b;if(c=="today"){a=new Date;a.setHours(23);a.setMinutes(59);a.setSeconds(59);this.$exp=a}else this.$exp=c?new Date((new Date).getTime()+c*864E5):null;this.$path=d?d:null;this.$domain=e?e:null;this.$secure=f?true:false}
Cookie.prototype.Store=function(){if(PlayerConfig.EnableCookies){var a="",b;for(b in this)if(!(b.charAt(0)=="$"||typeof this[b]=="function")){if(a!="")a+="&";a+=b+":"+escape(this[b])}a=this.$name+"="+a;if(this.$exp)a+="; expires="+this.$exp.toGMTString();if(this.$path)a+="; path="+this.$path;if(this.$domain)a+="; domain="+this.$domain;if(this.$secure)a+="; secure=";this.$document.cookie=a}};
Cookie.prototype.Load=function(){if(!PlayerConfig.EnableCookies)return false;var a=this.$document.cookie;if(a=="")return false;var b=a.indexOf(this.$name+"=");if(b==-1)return false;b+=this.$name.length+1;var c=a.indexOf(";",b);if(c==-1)c=a.length;a=a.substring(b,c).split("&");for(b=0;b<a.length;b++){c=a[b].split(":");this[c[0]]=unescape(c[1])}return true};
Cookie.prototype.Remove=function(){if(PlayerConfig.EnableCookies){var a=this.$name+"=";if(this.$path)a+="; path="+this.$path;if(this.$domain)a+="; domain="+this.$domain;a+="; expires=Fri, 02-Jan-1970 00:00:00 GMT";this.$document.cookie=a}};var _simulate_120_dpi=false;function IsTouchDevice(){return window.Touch}function IsMacOs(){return k=navigator.userAgent.indexOf("Macintosh")>=0}function IsFF3(){if(this.navigator)if(this.navigator.userAgent)if(this.navigator.userAgent.indexOf("Firefox/3")>0)return true;return false}function IsFF(){var a=new BrowserInfo;GetBrowserInfo(a);return a.name=="Firefox"}function IsFF4(){var a=new BrowserInfo;GetBrowserInfo(a);if(a.name!="Firefox")return false;return a.version==4}
function checkFFVersion(a){var b=new BrowserInfo;GetBrowserInfo(b);if(b.name!="Firefox")return false;return b.version==a}function IsSafari(){var a=new BrowserInfo;GetBrowserInfo(a);return a.name=="Safari"||a.name=="Chrome"}function IsExplorer(){var a=new BrowserInfo;GetBrowserInfo(a);return a.name=="MSIE"}function IsIE7(){var a=new BrowserInfo;GetBrowserInfo(a);if(a.name!="MSIE")return false;return a.version==7}
function IsIE8(){var a=new BrowserInfo;GetBrowserInfo(a);if(a.name!="MSIE")return false;return a.version==8||a.trident&&a.tridentVersion==4}function IsIE9(){var a=new BrowserInfo;GetBrowserInfo(a);if(a.name!="MSIE")return false;return a.version==9||a.trident&&a.tridentVersion==5}function IsIE10(){var a=new BrowserInfo;GetBrowserInfo(a);if(a.name!="MSIE")return false;return a.version==10||a.trident&&a.tridentVersion==6}
function IsActiveXEnabled(){var a=null;try{a=!!new ActiveXObject("htmlfile")}catch(b){a=false}return a}function IsIE10Modern(){if(IsIE10()==false)return false;return!IsActiveXEnabled()}function IsiOS(){p=navigator.platform;if(p==="iPad"||p==="iPad Simulator"||p==="iPhone"||p==="iPod")return true;return false}function IsiOS5(){p=navigator.userAgent;return p.indexOf("CPU OS 5_")>=0}function IsiOS6(){p=navigator.userAgent;return p.indexOf("CPU OS 6_")>=0}
function IsSoundSupported(){if(IsiOS())return false;swfobject.getFlashPlayerVersion();return true}function BrowserInfo(){this.name="";this.subversion=this.version=0;this.trident=false;this.tridentVersion=0}
function GetBrowserInfo(a){s=navigator.userAgent;k=-1;if(s.indexOf("Chrome")>=0){a.name="Chrome";k=s.indexOf("Chrome")+7}else if(s.indexOf("Opera")>=0){a.name="Opera";k=s.indexOf("Opera")+6}else if(s.indexOf("Firefox")>=0){a.name="Firefox";k=s.indexOf("Firefox")+8}else if(s.indexOf("Safari")>=0){a.name="Safari";k=s.indexOf("Version")+8}else if(s.indexOf("MSIE")>=0){a.name="MSIE";k=s.indexOf("MSIE")+5;var b=s.indexOf("Trident/");if(b>=0){a.trident=true;a.tridentVersion=parseInt(s.substr(b+8))}}else{a.name=
"other";a.version=0;return}a.version=parseInt(s.substr(k));a.subversion=parseInt(s.substr(k+2,1))}function IsSupportedBrowser(){var a=new BrowserInfo;GetBrowserInfo(a);k=false;if(a.name=="MSIE"&&a.version>=7)k=true;if(a.name=="Firefox"&&(a.version>=3&&a.subversion>=5||a.version>=4))k=true;if(a.name=="Safari"&&a.version>=4)k=true;if(a.name=="Chrome"&&a.version>=18)k=true;return k}
function getDIV(a){try{if(document.all)return document.all(a);else if(document.getElementById)return document.getElementById(a);else if(document.layers){var b=document.layers.screen.document.layers[a];b||(b=document.layers[a]);return b}return 0}catch(c){return null}}
function getDIVstyle(a){try{if(document.all)return document.all(a).style;else if(document.getElementById){if(document.getElementById(a).style!=null)return document.getElementById(a).style}else if(document.layers){var b=document.layers.screen.document.layers[a];b||(b=document.layers[a]);return b}return 0}catch(c){return null}}function shiftTo(a,b,c){a=getDIVstyle(a);if(a.moveTo)a.moveTo(b,c);else{a.left=b+"px";a.top=c+"px"}}
function getUniWidth(a){try{var b=getDIV(a),c;if(a.style.width)c=parseInt(a.style.width);else if(a.style.pixelWidth)c=a.style.pixelWidth;else if(a.offsetWidth)c=a.offsetWidth;else if(document.defaultView&&document.defaultView.getComputedStyle)c=document.defaultView.getComputedStyle(b,"").getPropertyValue("width");if(typeof c=="string")c=parseInt(c);return c}catch(d){return null}}
function getUniHeight(a){try{var b=getDIV(a),c;if(a.style.height)c=parseInt(a.style.height);else if(a.style.pixelHeight)c=a.style.pixelHeight;else if(a.offsetHeight)c=a.offsetHeight;else if(document.defaultView&&document.defaultView.getComputedStyle)c=document.defaultView.getComputedStyle(b,"").getPropertyValue("height");if(typeof c=="string")c=parseInt(c);return c}catch(d){return null}}
function getClientWidth(a){try{var b=getDIV(a);return b.clientWidth?b.clientWidth:parseInt(b.width)}catch(c){return a.offsetWidth}}function getClientHeight(a){try{var b=getDIV(a);return b.clientHeight?b.clientHeight:parseInt(b.height)}catch(c){return a.offsetHeight}}function getObjHeight(a){a=getDIV(a);return a.clip?a.clip.height:a.offsetHeight}function getObjWidth(a){a=getDIV(a);return a.clip?a.clip.width:a.offsetWidth}
function getObjLeft(a){try{var b=getDIVstyle(a);return b.pixelLeft?b.pixelLeft:parseInt(b.left)}catch(c){return parseInt(a.offsetLeft)}}function getObjTop(a){try{var b=getDIVstyle(a);return b.pixelTop?b.pixelTop:parseInt(b.top)}catch(c){return parseInt(a.offsetTop)}}function getInsideWindowWidth(){return window.innerWidth?window.innerWidth:document.body.clientWidth}function getInsideWindowHeight(){return window.innerHeight?window.innerHeight:document.body.clientHeight}
function getScrollLeft(){return window.pageXOffset||window.pageXOffset==0?window.pageXOffset:document.body.scrollLeft}function getScrollTop(){return window.pageYOffset||window.pageYOffset==0?window.pageYOffset:document.body.scrollTop}function show(a,b){getDIVstyle(a).visibility="visible";if(b&&IsiOS())try{playMode=="S"&&showActObj.type=="Input"&&$("#"+a+" input").attr("readonly",true)}catch(c){}}function hide(a){getDIVstyle(a).visibility="hidden"}var __DPIwidth=0;
function getDpiInfo(){var a=document.getElementById("DPIInfoDiv");if(a!=null){__DPIwidth=a.clientWidth;__DPIwidth!=0&&document.getElementsByTagName("body")[0].removeChild(a)}return _simulate_120_dpi==true?120:__DPIwidth}function initDpiInfo(){document.write('<div id="DPIInfoDiv" style="visibility:hidden; width: 72pt; height: 1pt;">DPIINFODIV</div>')}function checkIEDPI(){return true};function IsMozilla(){return window.navigator.appName=="Netscape"}function IsSafari(){if(!IsMozilla())return false;s=window.navigator.userAgent;return k=s.indexOf("Safari")>=0}function Get_Element(a){if(document.all)return document.all(a);else if(document.getElementById)return document.getElementById(a);else if(document.layers){var b=document.layers.screen.document.layers[a];b||(b=document.layers[a]);return b}return 0}
function Get_Element_Style(a){if(document.all)return document.all(a).style;else if(document.getElementById)return document.getElementById(a).style;else if(document.layers){var b=document.layers.screen.document.layers[a];b||(b=document.layers[a]);return b}return 0}function Shift_Element_To(a,b,c){a=Get_Element_Style(a);if(a.moveTo)a.moveTo(b,c);else{a.left=b+"px";a.top=c+"px"}}function Get_Element_Height(a){a=Get_Element(a);return a.clip?a.clip.height:a.offsetHeight}
function Get_Element_Width(a){a=Get_Element(a);return a.clip?a.clip.width:a.offsetWidth}function Get_Element_Left(a){var b=Get_Element(a);if(b.offsetLeft!=null){for(a=b.offsetLeft;(b=b.offsetParent)!=null;)a+=b.offsetLeft;return a}b=Get_Element_Style(a);return b.pixelLeft?b.pixelLeft:parseInt(b.left)}
function Get_Element_Top(a){var b=Get_Element(a);if(b.offsetTop!=null){for(a=b.offsetTop;(b=b.offsetParent)!=null;)a+=b.offsetTop;return a}b=Get_Element_Style(a);return b.pixelTop?b.pixelTop:parseInt(b.top)}function Get_InsideWindowWidth(){return window.innerWidth?window.innerWidth:document.body.clientWidth}function Get_InsideWindowHeight(){return window.innerHeight?window.innerHeight:document.body.clientHeight}
function Get_ScrollLeft(){return window.pageXOffset||window.pageXOffset==0?window.pageXOffset:document.body.scrollLeft}function Get_ScrollTop(){return window.pageYOffset||window.pageYOffset==0?window.pageYOffset:document.body.scrollTop}function Show_Element(a){Get_Element_Style(a).visibility="visible"}function Hide_Element(a){Get_Element_Style(a).visibility="hidden"};
