﻿
		/*
 * Copyright (C) 2007 Trivantis Corporation
 */

	
var n=null;var t=true;var f=false;function webtoraAppl(){this.is=new browserProperties();if (this.designTime) this.designTime();};function browserProperties(){var A=navigator;var B=this;var C=A.appName;var D=A.appVersion;var E=A.platform;var F=A.userAgent.toLowerCase();if (C=="Netscape") C="ns";else if (C=="Microsoft Internet Explorer") C="ie";B.v=parseInt(D,10);B.ns=(C=="ns"&&B.v>=4);B.ns5=(B.ns&&B.v==5);B.nsMac=(B.ns&&E.indexOf("Mac")>=0);B.ie=(C=="ie"&&B.v>=4);B.ie6=(B.ie&&D.indexOf('MSIE 6')>0);B.ie7=(B.ie&&D.indexOf('MSIE 7')>0);B.ie8=(B.ie&&D.indexOf('MSIE 8')>0);B.ie9=(B.ie&&D.indexOf('MSIE 9')>0);B.ieVer=(B.ie&&F.match(/msie ([^\s]+);/)[1]);B.ieVerNum=(B.ie&&parseFloat(B.ieVer.split('.').splice(0,2).join('.')));B.ieMac=(B.ie&&E.indexOf("Mac")>=0);B.activeX=(B.ie?t:f);B.ff=F.indexOf('firefox/')!=-1;B.ffVer=(B.ff&&F.match(/firefox\/([^\s]+)/)[1]);B.ffVerNum=(B.ff&&parseFloat(B.ffVer.split('.').splice(0,2).join('.')));B.chrome=F.indexOf('chrome/')!=-1;B.chromeVer=(B.chrome&&F.match(/chrome\/([^\s]+)/)[1]);B.chromeVerNum=(B.chrome&&parseFloat(B.chromeVer.split('.').splice(0,2).join('.')));B.safari=(A.vendor&&A.vendor.indexOf('Apple')>=0?t:f);B.safariWin=(B.safari&&B.Win?t:f);B.safariVer=(B.safari&&F.match(/version\/([^\s]+)/)[1]);B.safariVerNum=(B.safari&&parseFloat(B.safariVer.split('.').splice(0,2).join('.')));B.webkit=F.indexOf(" applewebkit/")!=-1;B.opera=F.indexOf("opera/")!=-1;B.operaVer=(B.opera&&F.match(/opera\/([^\s]+)/)[1]);B.gecko=F.indexOf('gecko/')!=-1;if (B.gecko){var G=F.match(/gecko\/(\d+)/)[1];B.gecko10=G<20051111;}else B.IsGecko10=f;B.min=(B.ns||B.ie);B.Win=(E.indexOf("Win")>=0);B.Mac=(E.indexOf("Mac")>=0);B.iOS=F.indexOf("iphone")!=-1||F.indexOf("ipad")!=-1||F.indexOf("ipod")!=-1;B.mobile=F.indexOf("mobile")!=-1;B.html5FileDragDrop=(B.ff&&B.ffVerNum>=3.6);B.googleGearsInstallable=((B.ieVerNum!==f&&B.ieVerNum>=6&&B.ieVerNum<9)||(B.chromeVerNum!==f&&B.chromeVerNum>=4&&B.chromeVerNum<12)||(B.safariVerNum!==f&&B.safariVerNum>=3.1&&B.safariVerNum<5)||(B.ffVerNum!==f&&B.ffVerNum>=1.5&&B.ffVerNum<4));var H=f;if (B.ff) H=(B.ffVerNum>=2);else if (B.safari){if (F.indexOf('version')!=-1) H=(B.safariVerNum>=3);else if (F.indexOf('mozilla')!=-1) H=(F.match(/mozilla\/(\d+\.\d+)/)[1]>=5);}else if (B.ie) H=(B.ieVerNum>=7);else if (B.chrome) H=(B.chromeVerNum>=2);B.supportedBrowser=H;B.wmpVersion=6;var I=n;try{if (window.ActiveXObject) I=new ActiveXObject("WMPlayer.OCX.7");else if (window.GeckoActiveXObject) I=new GeckoActiveXObject("WMPlayer.OCX.7");else if (A.mimeTypes["application/x-mplayer2"]) I=A.mimeTypes["application/x-mplayer2"].enabledPlugin;}catch(e){};if (I&&I.versionInfo) B.wmpVersion=I.versionInfo.slice(0,I.versionInfo.indexOf('.'));B.getBrowserWidth=function(){return document.documentElement.offsetWidth;};B.getBrowserHeight=function(){return document.documentElement.offsetHeight;};B.console=function(){return typeof console!='undefined'&&(typeof console.log=='function'||(B.ie8&&typeof console.log=='object'));};};var TRgEx={};TRgEx.flash=/.*(\.SWF|\.SPL|\.FLV)$/i;function jsRect(x,y,w,h,A){this.set(x,y,w,h);if (A){this.width=w-x;this.height=h-y;}};jsRect.prototype.init=function(){this.set(0,0,0,0);};jsRect.prototype.set=function(x,y,w,h){if (isNaN(x)){this.x=0;if (typeof(x)!='undefined'&&theApp) theApp.error("invalid left specified for rectangle: "+x,t);}else this.x=x;if (isNaN(y)){this.y=0;if (typeof(y)!='undefined'&&theApp) theApp.error("invalid top specified for rectangle: "+y,t);}else this.y=y;if (isNaN(w)){this.width=0;if (typeof(w)!='undefined'&&theApp) theApp.error("invalid width specified for rectangle: "+w,t);}else this.width=w;if (isNaN(h)){this.height=0;if (typeof(h)!='undefined'&&theApp) theApp.error("invalid height specified for rectangle: "+h,t);}else this.height=h;};jsRect.prototype.setRect=function(r){this.set(r.x,r.y,r.width,r.height);};jsRect.prototype.left=function(){return this.x;};jsRect.prototype.top=function(){return this.y;};jsRect.prototype.right=function(){return this.x+this.width;};jsRect.prototype.bottom=function(){return this.y+this.height;};jsRect.prototype.isEqual=function(A){for (var i in this){if (this[i]!=A[i]) return f;};return t;};jsRect.prototype.copy=function(){return new jsRect(this.x,this.y,this.width,this.height);};jsRect.intersectRect=function(A,B){return!(B.x>(A.x+A.width)||(B.x+B.width)<A.x||B.y>(A.y+A.height)||(B.y+B.height)<A.y);};function jsPoint(x,y){this.set(x,y);};jsPoint.prototype.init=function(){this.set(0,0);};jsPoint.prototype.set=function(x,y){if (isNaN(x)){this.x=0;if (typeof(x)!='undefined'&&theApp) theApp.error("invalid X specified for point: "+x,t);}else this.x=x;if (isNaN(y)){this.y=0;if (typeof(y)!='undefined'&&theApp) theApp.error("invalid Y specified for point: "+y,t);}else this.y=y;};jsPoint.prototype.isEqual=function(A){for (var i in this){if (this[i]!=A[i]) return f;};return t;};jsPoint.prototype.copy=function(){return new jsPoint(this.x,this.y);};function isEnterKey(e){return (getKeyCode(e)===13);};function getKeyCode(e){if(!e) e=window.event;return e.keyCode;};function cancelEvent(e){if (document.all) e=event;if (!e) return f;if (e.preventDefault) e.preventDefault();if (e.stopPropagation) e.stopPropagation();else if (e.preventBubble) e.preventBubble();e.returnValue=f;e.cancelBubble=t;try {if (theApp&&theApp.is.ie) e.keyCode=0;} catch (e) {};return f;};String.prototype.IContains=function(A){return (this.toUpperCase().indexOf(A.toUpperCase())>-1);};function rand(X){return Math.floor(X*(Math.random() % 1));};function randMinMax(A,B){return A+rand(B-A+1);};function jsTrans(){};jsTrans.isFIFO=function(A){if(A>=24&&A<=31) return 1;return 0;};jsTrans.xlateTrans=function(A){if(A==33) return randMinMax(1,23);else if(A==32) return randMinMax(1,31);return A;};function trivIssueShowActs(A,B){trivArExec(A,function(wnd){var C=(B===1?wnd.isVis:wnd.dwFlags&0x20);if (C&&(wnd.isVisible()||wnd.cwObj.getTrans(t))) wnd.show();});};function trivArExec(A,B,C){var D=(A&&A.length?A.length:0);var E=C?-1:1;var i=C?(D-1):0;for (;(i>=0&&i<D);i+=E) if (B(A[i],i,A)===f) break;};webtoraAppl.prototype.SetTimeout=function(A,B,C,D,E){return (E||window).setTimeout(function(){if (D) A.apply(C,[].concat(D));else A.apply(C);},B);};function hasAncestor(A,B,C,D){if (typeof D=='string') D=[D];while (A&&A!=B){if (A.nodeType==1&&A.tagName.toUpperCase()==C.toUpperCase()){if (D){for (var i=0;i<D.length;i++){if (A.id==D[i]) return A;}}else{return A;}};A=A.parentNode;};return n;};function removeAllChildren(A,B){for (var i=A.childNodes.length-1;i>=0;i--){var C=f;for (var j=B.length-1;j>=0&&!C;j--){if (B[j]==A.childNodes[i]) C=t;};if (!C) A.removeChild(A.childNodes[i]);};for (i=A.childNodes.length-1;i>=0;i--) removeAllChildren(A.childNodes[i],B);};function getLocStr(A,B){if (A){var C=[];for (var i=0;i<arguments.length-1;i++) C[i]=arguments[i+1];var i=A.indexOf("##");var c,sStr,eStr;while (i>-1){c=A.charAt(i+2);c=c*1;sStr=A.substring(0,i);eStr=A.substring(i+3,A.length);A=sStr+(C.length>c?C[c]:'')+eStr;i=A.indexOf("##");}};return A;};

