﻿
		/*
 * 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.ieMac=(B.ie&&E.indexOf("Mac")>=0);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.safari=(A.vendor&&A.vendor.indexOf('Apple')>=0?true:false);B.safariWin=(B.safari&&B.Win?true:false);B.activeX=(B.ie?true:false);B.gecko=F.indexOf('gecko/')!=-1;B.ff=F.indexOf('firefox/')!=-1;B.chrome=F.indexOf('chrome/')!=-1;B.opera=F.indexOf("opera/")!=-1;B.mobile=F.indexOf("mobile")!=-1;B.webkit=F.indexOf(" applewebkit/")!=-1;var G=false;if (B.gecko){var H=F.match(/gecko\/(\d+)/)[1];B.gecko10=H<20051111;}else B.IsGecko10=false;if (B.ff) G=(F.match(/firefox\/(\d+\.\d+)/)[1]>=2);else if (B.safari){if(F.indexOf('version')!=-1) G=(F.match(/version\/(\d+\.\d+)/)[1]>=3);else if(F.indexOf('mozilla')!=-1) G=(F.match(/mozilla\/(\d+\.\d+)/)[1]>=5);}else if (B.ie) G=B.ie7||B.ie8;else if (B.chrome) G=(F.match(/chrome\/(\d+\.\d+)/)[1]>=2);B.supportedBrowser=G;B.ffVer=(B.ff&&F.match(/firefox\/([^\s]+)/)[1]);B.html5Download=(B.ff&&F.match(/firefox\/(\d+\.\d+)/)[1]>=3.6);B.wmpVersion=6;var I=null;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.x=x?x:0;this.y=y?y:0;this.width=w?w:0;this.height=h?h:0;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){this.x=x;this.y=y;this.width=w;this.height=h;};jsRect.prototype.setRect=function(r){this.x=r.x;this.y=r.y;this.width=r.width;this.height=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 false;};return true;};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.x=x?x:0;this.y=y?y:0;};jsPoint.prototype.init=function(){this.set(0,0);};jsPoint.prototype.set=function(x,y){this.x=x;this.y=y;};jsPoint.prototype.isEqual=function(A){for(var i in this){if(this[i]!=A[i]) return false;};return true;};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 false;if (e.preventDefault) e.preventDefault();if (e.stopPropagation) e.stopPropagation();else if (e.preventBubble) e.preventBubble();e.returnValue=false;e.cancelBubble=true;try {if (theApp&&theApp.is.ie) e.keyCode=0;} catch (e) {};return false;};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.cwObj.dwFlags:wnd.dwFlags);var D=wnd.cwObj.par;var E=(D&&(D.type==14||D.type==13)&&((D.dwFlags&0x20)==0))?f:t;if (C&0x20&&E&&(wnd.isVisible()||wnd.cwObj.getTrans(t))) wnd.show();else wnd.hide();});};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 null;};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;};

