﻿
		/*
 * 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.userAgent.toLowerCase();if (C=="Netscape") C="ns";else if (C=="Microsoft Internet Explorer") C="ie";B.v=parseInt(A.appVersion,10);B.ns=(C=="ns"&&B.v>=4);B.ns5=(B.ns&&B.v==5);B.nsMac=(B.ns&&A.platform.indexOf("Mac")>=0);B.ie=(C=="ie"&&B.v>=4);B.ie6=(B.ie&&A.appVersion.indexOf('MSIE 6')>0);B.ie7=(B.ie&&A.appVersion.indexOf('MSIE 7')>0);B.ie8=(B.ie&&A.appVersion.indexOf('MSIE 8')>0);B.ieMac=(B.ie&&A.platform.indexOf("Mac")>=0);B.min=(B.ns||B.ie);B.Win=(A.platform.indexOf("Win")>=0);B.Mac=(A.platform.indexOf("Mac")>=0);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=D.indexOf('gecko/')!=-1;B.ff=D.indexOf('firefox/')!=-1;B.chrome=D.indexOf('chrome/')!=-1;B.op=D.indexOf("opera/")!=-1;B.supportedBrowser=false;if (B.gecko){var E=D.match(/gecko\/(\d+)/)[1];B.gecko10=E<20051111;}else B.IsGecko10=false;if (B.ff) B.supportedBrowser=(D.match(/firefox\/(\d+\.\d+)/)[1]>=2);else if (B.safari) B.supportedBrowser=(D.match(/version\/(\d+\.\d+)/)[1]>=3);else if (B.ie) B.supportedBrowser=B.ie7||B.ie8;else if (B.chrome) B.supportedBrowser=(D.match(/chrome\/(\d+\.\d+)/)[1]>=2);B.wmpVersion=6;var F=null;try{if (window.ActiveXObject) F=new ActiveXObject("WMPlayer.OCX.7");else if (window.GeckoActiveXObject) F=new GeckoActiveXObject("WMPlayer.OCX.7");else if (A.mimeTypes["application/x-mplayer2"]) F=A.mimeTypes["application/x-mplayer2"].enabledPlugin;}catch(e){};if (F&&F.versionInfo) B.wmpVersion=F.versionInfo.slice(0,F.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={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{e.keyCode=0;}catch(err){};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);if (C&0x20&&(wnd.isVisible()||wnd.cwObj.getTrans(t))) wnd.show();});};function trivArExec(a,f){var l=(a&&a.length?a.length:0);for (var i=0;i<l;i++) if (f(a[i],i)==false) 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){while (A&&A!=B) {if (A.nodeType==1&&A.tagName.toUpperCase()==C.toUpperCase()) return A;A=A.parentNode;};return null;};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;};
