/* Copyright Ektron, Inc. 07/24/07 */if (typeof Array !="undefined" ){if (Array.prototype.shift !="function"){Array.prototype.shift=ektArrayShift;
 } if (Array.prototype.push !="function"){Array.prototype.push=ektArrayPush;}}
function ektArrayShift(){if (0==this.length) return;var value=this[0];for (var i=0;
 i < this.length - 1;i++){this[i]=this[i+1];} this.length--;return value;}
function ektArrayPush(value){return this[this.length]=value;}
function isVBScriptSupported(){var isWindows=(window.navigator.platform.indexOf("Win") > -1);
 var isIE=false;var ua=window.navigator.userAgent;var pOpera=ua.indexOf("Opera");
 if (pOpera==-1){var pIE=ua.indexOf("MSIE ");isIE=(pIE > -1);} return (isWindows && isIE);
}
function defaultEktODCMsgsFilename(){var strLanguageCode="";return"ektassetmessages.js";
 }
function ActiveXVersionInstalled(strProgId){var sVersionInstalled="";if (typeof ActiveXObject !="undefined"){
 var objEkVersion;try{objEkVersion=new ActiveXObject("EkVersion.ekVersionInterface");
 if ("object"==typeof objEkVersion){objEkVersion.AssignUID(strProgId);if (0 !=objEkVersion.Exists()){
 sVersionInstalled=objEkVersion.Version();} } } catch (e){sVersionInstalled="";} }
 return sVersionInstalled;}
var DMSLicenseKeys="Do not use license keys in this variable.";function onEktUserRequestHandler(strUserRequest){
 var sControlName=EktAsset.event.srcName;strUserRequest=strUserRequest +"";setTimeout('onEktUserRequestDeferred("' + sControlName +'", "' + strUserRequest +'")',1);
}
function onEktUserRequestDeferred(sControlName,strUserRequest){if (typeof EktAsset["onuserrequest"] !="undefined"){
 EktAsset.initEvent("onuserrequest");EktAsset.event.srcName=sControlName;EktAsset.event.userRequest=strUserRequest;
 EktAsset.raiseEvent("onuserrequest");}}
function onEktAssetEventHandler(strEventName,lItem,sData,lErrno,strErrormessage){
 var sControlName=EktAsset.event.srcName;lItem=lItem * 1;sData=sData +"";lErrno=lErrno * 1;
 strErrormessage=strErrormessage +"";setTimeout('onEktAssetEventDeferred("' + strEventName +'", "' + sControlName +'", "' + lItem +'", ' + toLiteral(sData)+', "' + lErrno +'", ' + toLiteral(strErrormessage) +')',1);
}
function onEktAssetEventDeferred(strEventName,sControlName,lItem,sData,lErrno,strErrormessage){
 if (typeof EktAsset[strEventName] !="undefined"){EktAsset.initEvent(strEventName);
 EktAsset.event.srcName=sControlName;EktAsset.event.item=lItem;EktAsset.event.data=sData;
 EktAsset.event.errno=lErrno;EktAsset.event.errormessage=strErrormessage;EktAsset.raiseEvent(strEventName);
 }}
function defaultEktODCInstallFilename(){var strLanguageCode="";return"dmsintro" + strLanguageCode +".htm";
}
function EktAssetDefaults(){this.path=DMSPath;var strCIFilename="dms400client";var strCIe=".e";
 this.clientInstall=this.path +"clientinstall/" + strCIFilename + strCIe +"xe";this.installPopupUrl=this.path +"clientinstall/" + defaultEktODCInstallFilename();
 this.installPopupWindowName="";this.installPopupWindowFeatures="height=540,width=680,resizable,scrollbars,status";
 this.installPopupQuery="";this.popupUrl=this.path +"ektassetpopup.htm";this.popupWindowName="";
 this.popupWindowFeatures="width=720,height=600,scrollbars,status,resizable";this.popupQuery="";
 this.popupButtonTagType="inputbutton";this.popupButtonTagTagAttributes="";this.maxContentSize=65000;
 this.embedAttributes="";this.objectAttributes="";this.textareaAttributes="";this.Subscribe=1;
 this.Titlebar=1;this.Toolbars=1;this.Protocol="";this.Server="";this.File="";this.TID="";
 this.AssetID="";this.Application="";this.VersionID="";this.Multiple=0;this.DomainName="";
 this.FileTypes="*.*";this.UserName="";this.Password="";this.ActivateInternalPost=0;
 this.oncheckout="onEktAssetEventHandler('oncheckout',item,data,errno,errormessage)";
 this.onundocheckout="onEktAssetEventHandler('onundocheckout',item,data,errno,errormessage)";
 this.oncheckin="onEktAssetEventHandler('oncheckin',item,data,errno,errormessage)";
 this.onpublish="onEktAssetEventHandler('onpublish',item,data,errno,errormessage)";
 this.onsavetoassetserver="onEktAssetEventHandler('onsavetoassetserver',item,data,errno,errormessage)";
 this.onrestore="onEktAssetEventHandler('onrestore',item,data,errno,errormessage)";
 this.onworkoffline="onEktAssetEventHandler('onworkoffline',item,data,errno,errormessage)";
 this.onuserrequest="onEktUserRequestHandler(userrequest)";}
var EktAssetDefaults=new EktAssetDefaults;var EktAssetMessages={popupButtonCaption:"Edit",installPrompt:"Click OK to install DMS400 Client.",waitingToLoad:"Waiting to load",loading:"Loading",doneLoading:"Done loading",errorLoading:"Error loading",saving:"Saving",doneSaving:"Done saving",querySave:"Click OK to preserve changes when moving to another page.\nClick Cancel to discard changes.",confirmAway:"Any changes will be lost.",saveFailed:"Unable to save. Continue and lose content?",sizeExceeded:"Content is too large to save. Please reduce the size and try again.",clientInstallMessage:'<br><font face="Arial" size="3" color="red"><b>DMS400 Client is not installed. Click to <a href="' + EktAssetDefaults.clientInstall +'">install DMS400 Client</a>.</b></font><br>',saveButtonCaption:"Save",cancelButtonCaption:"Cancel",MsgsTableNotSelected:"Please select a table to edit section 508 data table properties.",maximizedWindow:"The browser window must not be maximized to update the page.",clientAutoInstallMessage:'<font face="Arial" size="3" color="red"><b> Try to <a href="javascript:EktAsset.autoInstallRefresh()">automatically download and install</a>.</b></font>',invalidContent:"Continue saving invalid document?",clientInstallSP2Message:'<br><font face="Arial" size="3" color="red"><b>Unable to open the automatic download and installation window. The popup window might be blocked.\nYou can either enable the popup for the site or click to <a href="' + EktAssetDefaults.clientInstall +'">install DMS400 Client</a>.</b></font><br>',popupBlockedMessage:"Unable to open pop-up window. Please turn off your pop-up blocker and try again.",elementNotFoundMessage:'<br><font face="Arial" size="2" color="red"><b>Unable to find content field (typically a hidden field) within a form.</b><br>Please check the following:<ul><li>Form tag is required</li><li>Content field is required and must match the name specified when creating the editor</li><li>Content field must be declared prior to creating the editor</li></ul>Name specified: </font>',invalidFormMethodMessage:'<br><font face="Arial" size="2" color="red"><b>The form method must be set to "post".</b> For example, &lt;form method="post"&gt;. The submit will fail using "get".</font>'}
function CEktMonarch(){this.aryAutoInstall=[];this.requestAutoInstall=CEktMonarch_requestAutoInstall;
 this.autoInstallDone=CEktMonarch_autoInstallDone;}
function CEktMonarch_requestAutoInstall(objAutoInstall){if (!objAutoInstall || typeof objAutoInstall !="object"){
 return;} for (var iCounter=0;iCounter < this.aryAutoInstall.length;iCounter++){if (objAutoInstall==this.aryAutoInstall[iCounter]){
 return;} } this.aryAutoInstall.push(objAutoInstall);if (1==this.aryAutoInstall.length){
 if ("function"==typeof objAutoInstall.doInstall){objAutoInstall.doInstall();} }}
function CEktMonarch_autoInstallDone(){var bDoNext;do{bDoNext=false;this.aryAutoInstall.shift();
 if (0==this.aryAutoInstall.length){window.history.go(0);} else{var objAutoInstall=this.aryAutoInstall[0];
 if ("function"==typeof objAutoInstall.doInstall){objAutoInstall.doInstall();} else{
 bDoNext=true;} } } while (true==bDoNext);}
if ("undefined"==typeof ektMonarch){ektMonarch=new CEktMonarch;}
function JSEventModel(){this.eventHandlers=[];this.initEvent=JSEventModel_initEvent;
 this.raiseEvent=JSEventModel_raiseEvent;this.addEventHandler=JSEventModel_addEventHandler;
 this.invokeEventHandler=JSEventModel_invokeEventHandler;}
function JSEventModel_initEvent(eventName){this.event=new Object();if (eventName){
 this.event.eventName=eventName;} else{this.event.eventName="";} if (typeof this.status !="undefined"){
 this.event.status=this.status;}}
function JSEventModel_raiseEvent(name){if (this.eventHandlers[name]){for (var i=0;
 i < this.eventHandlers[name].length;i++){this.invokeEventHandler(this.eventHandlers[name][i]);
 } } return this.invokeEventHandler(this[name]);}
function JSEventModel_addEventHandler(name,handler){if (!this[name]){this[name]=function(){
 };} if (0==this.eventHandlers.length){this.eventHandlers=new Array();} if (typeof this.eventHandlers[name] !="object" || typeof this.eventHandlers[name].length !="number"){
 var objArray=new Array();this.eventHandlers[this.eventHandlers.length]=objArray;
 this.eventHandlers[name]=objArray;} this.eventHandlers[name][this.eventHandlers[name].length]=handler;
}
function JSEventModel_invokeEventHandler(handler){if (handler){this.vEventHandler=handler;
 switch (typeof this.vEventHandler){case"function": return this.vEventHandler();break;
 case"object": if (this.vEventHandler["raiseEvent"]){return this.vEventHandler.raiseEvent(name);
 } break;case"string": this.vEventHandler=new Function(this.vEventHandler);return this.vEventHandler();
 break;case"undefined": break;default: alert("Invalid type: " + typeof this.vEventHandler);
 } }}
function cloneObject(object){if ("object"==typeof object){var newObject=null;if (object !=null){
 newObject=new Object();for (var propName in object){if (typeof object[propName]=="object"){
 if (null==object[propName]){newObject[propName]=null;} else{newObject[propName]=cloneObject(object[propName]);
 } } else{newObject[propName]=object[propName];} } } return newObject;} else{return object;
 }}
function reconstructObject(sReconstructor){var newObject=new Object();extendObject(newObject,new Function(sReconstructor));
 return newObject;}
function extendObject(object,fnBase){object.overrideMethod=Inheritance_overrideMethod;
 object.extendObjectBase=fnBase;if (arguments.length <=2){object.extendObjectBase();
 } else{var strConstructorCall='object.extendObjectBase(arguments[2]';for (var i=3;
 i < arguments.length;i++){strConstructorCall +=', arguments[' + i +']';} strConstructorCall +=')';
 eval(strConstructorCall);} object.extendObjectBase=null;}
function Inheritance_overrideMethod(strMethodName,fnNewMethod,strBaseName){if (!strBaseName){
 strBaseName="super";} strBaseName +="_" + strMethodName;this[strBaseName]=this[strMethodName];
 this[strMethodName]=fnNewMethod;}
function notifyObject(objNotify,fnNotify,value){var vResult=value;if ("function"==typeof fnNotify){
 if ("object"==typeof objNotify && objNotify){objNotify.notify=fnNotify;vResult=objNotify.notify(value);
 } else{vResult=fnNotify(value);} } return vResult;}
function ClassModel(){this.properties=[];this.defineProperty=ClassModel_defineProperty;
 this.subclassEvent=ClassModel_subclassEvent;this.reconstructor=ClassModel_reconstructor;
 extendObject(this,JSEventModel);}
function ClassModel_defineProperty(name,value){if (0==this.properties.length){this.properties=new Array();
 } this.properties[this.properties.length]=name;this[name]=value;}
function ClassModel_reconstructor(){var sReconstructor="extendObject(this, ClassModel);\n";
 var name="";var value="";for (var i=0;i < this.properties.length;i++){name=this.properties[i];
 value=toLiteral(this[name]);if (value !="undefined"){sReconstructor +="this.defineProperty(\"" + name +"\", " + value +");\n";
 } } return sReconstructor;}
var g_ClassModel_eventCount=0;function ClassModel_subclassEvent(fnOldEvent,sNewEvent){
 if (typeof sNewEvent !="string" || !sNewEvent["length"]){return fnOldEvent;} g_ClassModel_eventCount++;
 var objHook=new ClassModel();var sNewEventName="fnNewEvent" + g_ClassModel_eventCount;
 objHook.defineProperty(sNewEventName,new Function(sNewEvent));if (fnOldEvent){var sOldEventName="fnOldEvent" + g_ClassModel_eventCount;
 objHook.defineProperty(sOldEventName,fnOldEvent);} var sCode="";sCode +="extendObject(this, new Function(unescape('" + escape(objHook.reconstructor()) +"')));\n";
 sCode +="var bResult = this." + sNewEventName +"();\n";if (fnOldEvent){sCode +="if (bResult || 'undefined' == typeof bResult) bResult = this." + sOldEventName +"();\n";
 } sCode +="return bResult;\n";return new Function(sCode);}
function toIdentifier(name){var sId=name +"";sId=sId.replace(/\W/g,"_");sId=sId.replace(/(^\d)/,"id$1");
 return sId;}
function toLiteral(object){var sLiteral="";switch (typeof object){case"undefined": sLiteral="undefined";
 break;case"string": sLiteral=object.replace(/[\r\n]/g,' ');sLiteral='"' + sLiteral.replace(/\"/g,'\\\"') +'"';
 break;case"object": if (null==object){sLiteral="null";} else if ("undefined"==typeof object.length){
 for (var propName in object){if (sLiteral.length > 0){sLiteral +=", ";} sLiteral +="'" + propName +"':" + toLiteral(object[propName]);
 } if (sLiteral.length > 0){sLiteral="{" + sLiteral +"}";} else{sLiteral="new Object()";
 } } else if ("function"==typeof object.sort){for (var i=0;i < object.length;i++){
 if (sLiteral.length > 0){sLiteral +=", ";} sLiteral +=toLiteral(object[i]);} if (sLiteral.length > 0){
 sLiteral="[" + sLiteral +"]";} else{sLiteral="new Array()";} } else{sLiteral=object.toString();
 } break;default: sLiteral=object.toString();} return sLiteral;}
function toFunction(object){var fn;switch (typeof object){case"function": fn=object;
 break;case"undefined": case"string": case"object": if (object){eval("fn = " + object.toString());
 } else{fn=new Function();} break;default: fn=new Function("return " + toLiteral(object));
 } return fn;}
function PlatformInfo(){var ua=window.navigator.userAgent.toLowerCase();this.isWindows=(ua.indexOf("win") > -1);
 this.isWinXPSP2=(ua.indexOf("SV1") > -1);this.isMac=(ua.indexOf("mac") > -1);this.isSun=(ua.indexOf("sunos") > -1);
 this.isUnix=( this.isSun || (ua.indexOf("x11") > -1) || (ua.indexOf("irix") > -1) || (ua.indexOf("hp-ux") > -1) || (ua.indexOf("sco") > -1) || (ua.indexOf("unix_sv") > -1) || (ua.indexOf("unix_system_v") > -1) || (ua.indexOf("ncr") > -1) || (ua.indexOf("reliantunix") > -1) || (ua.indexOf("dec") > -1) || (ua.indexOf("osf1") > -1) || (ua.indexOf("dec_alpha") > -1) || (ua.indexOf("alphaserver") > -1) || (ua.indexOf("ultrix") > -1) || (ua.indexOf("alphastation") > -1) || (ua.indexOf("sinix") > -1) || (ua.indexOf("aix") > -1) || (ua.indexOf("inux") > -1) || (ua.indexOf("bsd") > -1) || (ua.indexOf("freebsd") > -1));
 var pOpera=ua.indexOf("opera");this.isOpera=(pOpera > -1);this.isSafari=((ua.indexOf("safari") !=-1) && (!this.isOpera));
 this.isNetscape=((window.navigator.appName=="Netscape") && !this.isOpera);this.isFirefox=((ua.indexOf("firefox/1.") !=-1) && (!this.isOpera));
 this.isNetscape60=false;var pIE=ua.indexOf("msie ");this.isIE=((pIE > -1) && !this.isOpera);
 if (this.isFirefox){this.isNetscape=true;this.isOpera=false;this.isNetscape60=false;
 } if (this.isOpera){this.browserVersion=parseFloat(ua.substring(pOpera + 6));} else if (this.isIE){
 this.browserVersion=parseFloat(ua.substring(pIE + 5));} else if (this.isNetscape){
 var pNetscape=ua.indexOf("netscape/");if (pNetscape > -1){this.browserVersion=parseFloat(ua.substring(pNetscape + 9));
 } else{var pNetscape6=ua.indexOf("netscape6");if (pNetscape6 > -1){this.browserVersion=parseFloat(ua.substring(pNetscape6 + 10));
 this.isNetscape60=(this.browserVersion >=6.0 && this.browserVersion < 6.1);} else{
 this.browserVersion=parseFloat(window.navigator.appVersion);if (this.browserVersion >=5.0){
 var pMozilla=ua.indexOf("rv:");if (pMozilla > -1){if (ua.indexOf("rv:0.9.4") > -1){
 this.browserVersion=6.2;} else{var nRVversion=parseFloat(ua.substring(pMozilla + 3));
 if (nRVversion >=1.0 && nRVversion < 1.4){this.browserVersion=7.0;} else if (nRVversion >=1.4 && nRVversion < 1.5){
 this.browserVersion=7.1;} else if (nRVversion >=1.7 && nRVversion < 1.8){this.browserVersion=7.2;
 } else if (nRVversion >=1.8){this.browserVersion=7.23;} else{this.isNetscape=false;
 } } } else{this.isNetscape=false;} } } } } else{this.browserVersion=parseFloat(window.navigator.appVersion);
 }}
function EktAssetUtil(){this.trim=EktAssetUtil_trim;this.lTrim=EktAssetUtil_lTrim;
 this.rTrim=EktAssetUtil_rTrim;this.HTMLEncode=EktAssetUtil_HTMLEncode;this.isOpenerAvailable=EktAssetUtil_isOpenerAvailable;
 this.getOpenerInstance=EktAssetUtil_getOpenerInstance;this.languageCode=EktAssetUtil_getLanguageCode();
 this.queryArgs=[];var objQuery=EktAssetUtil_parseQuery();for (var p in objQuery){
 this.queryArgs[this.queryArgs.length]=objQuery[p];this.queryArgs[p]=objQuery[p];
 } this.editorName=this.queryArgs["editorName"];if ("undefined"==typeof this.editorName){
 this.editorName=this.queryArgs["editorname"];}}
function EktAssetUtil_trim(s){var s=s +"";s=EktAssetUtil_lTrim(s);s=EktAssetUtil_rTrim(s);
 return s;}
function EktAssetUtil_lTrim(s){var s=s +"";s=s.replace(/^\s+/,"");return s;}
function EktAssetUtil_rTrim(s){var s=s +"";s=s.replace(/\s+$/,"");return s;}
function EktAssetUtil_HTMLEncode(s){var strHTML=s +"";strHTML=strHTML.replace(/\&/g,"&amp;");
 strHTML=strHTML.replace(/\</g,"&lt;");strHTML=strHTML.replace(/\>/g,"&gt;");strHTML=strHTML.replace(/\"/g,"&quot;");
 return strHTML;}
function EktAssetUtil_getLanguageCode(){var strLanguageCode="";if (navigator.language){
 strLanguageCode=navigator.language;} if (navigator.userLanguage){strLanguageCode=navigator.userLanguage;
 } var strTranslatedLangCodes="zh-tw";if (strTranslatedLangCodes.indexOf(strLanguageCode)==-1){
 strLanguageCode=strLanguageCode.substring(0,2);var strTranslatedLanguages="ar,da,de,es,fr,he,it,ja,ko,nl,pt,ru,sv,zh";
 if (strTranslatedLanguages.indexOf(strLanguageCode)==-1){strLanguageCode="";} } return strLanguageCode;
}
function EktAssetUtil_isOpenerAvailable(){if (top.opener && !(top.opener.closed) && top.opener.EktAsset){
 return true;} else{return false;}}
function EktAssetUtil_getOpenerInstance(editorName){if (!editorName) editorName=this.editorName;
 if (this.isOpenerAvailable() && editorName){return top.opener.EktAsset.instances[editorName];
 } else{return null;}}
function EktAssetUtil_parseQuery(){var objQuery=new Object();var strQuery=top.location.search.substring(1);
 var aryQuery=strQuery.split("&");var pair=[];for (var i=0;i < aryQuery.length;i++){
 pair=aryQuery[i].split("=");if (2==pair.length){objQuery[unescape(pair[0])]=unescape(pair[1]);
 } } return objQuery;}
var EktAssetUtil=new EktAssetUtil;function EktODCPluginElement(strTagName){this.tagName=strTagName.toLowerCase();
 this.isEmpty=("embed"==this.tagName);this.width=0;this.height=0;this.parameters=[];
 this.events=[];if (this.isEmpty){this.defineParam=EktODCPluginElement_Attr_defineParam;
 } else{this.defineParam=EktODCPluginElement_Param_defineParam;} this.defineEvent=EktODCPluginElement_defineEvent;
 this.copyHTMLAttributes=EktODCPluginElement_copyHTMLAttributes;this.HTMLEncode=EktAssetUtil_HTMLEncode;
 this.createHTML=EktODCPluginElement_createHTML;this.createHTMLAttributes=EktODCPluginElement_createHTMLAttributes;
 this.createParametersHTML=EktODCPluginElement_createParametersHTML;this.createEventsHTML=EktODCPluginElement_createEventsHTML;
 this.defineDocParams=EktODCPluginElement_defineDocParams;this.defineNamedParams=EktODCPluginElement_defineNamedParams;
 this.defineNamedEvents=EktODCPluginElement_defineNamedEvents;}
function EktODCPluginElement_copyHTMLAttributes(objSource){this.id=objSource.id;this.name=objSource.name;
 this.width=objSource.width;this.height=objSource.height;}
function EktODCPluginElement_Param_defineParam(name,value){if (0==this.parameters.length){
 this.parameters=new Array();} var strValue=value +"";if (strValue.indexOf('"') >=0){
 strValue=this.HTMLEncode(strValue);} this.parameters[this.parameters.length]='\n<param name="' + name +'" value="' + strValue +'">';
}
function EktODCPluginElement_Attr_defineParam(name,value){if (0==this.parameters.length){
 this.parameters=new Array();} var strValue=value +"";if (strValue.indexOf('"') >=0){
 strValue=this.HTMLEncode(strValue);} this.parameters[this.parameters.length]='\n' + name +'="' + strValue +'"';
}
function EktODCPluginElement_defineEvent(name,value){var errCode=0;if (0==this.events.length){
 this.events=new Array();} if (this["name"]){this.events[this.events.length]='\n<scr' +'ipt language="JavaScript1.2" type="text/javascript"><' +'!--' +'\nfunction ' + toIdentifier(this.name) +'_' + name +'\n{\n' + value +'\n}\n// --' +'><' +'/sc' +'ript>\n';
 } return errCode;}
function EktODCPluginElement_createHTML(){var strHTML="";if ("function"==typeof this.createBeforeHTML){
 strHTML +=this.createBeforeHTML();} strHTML +='\n<' + this.tagName +' ';strHTML +=this.createHTMLAttributes();
 if (this.isEmpty || this.defineParam==EktODCPluginElement_Attr_defineParam){strHTML +=this.createParametersHTML();
 strHTML +='>';} else{strHTML +='>';strHTML +=this.createParametersHTML();strHTML +='\n</' + this.tagName +'>';
 } if ("function"==typeof this.createAfterHTML){strHTML +=this.createAfterHTML();
 } return strHTML;}
function EktODCPluginElement_createHTMLAttributes(){var strHTML="";if (this["id"]){
 strHTML +='\nid="' + this.id +'"';strHTML +='\nname="' + this.id +'"';} else if (this["name"]){
 strHTML +='\nid="' + this.name +'"';strHTML +='\nname="' + this.name +'"';} if ("object"==this.tagName){
 if (this["classid"]){strHTML +='\nclassid="CLSID:' + this.classid +'"';} if (this["codebase"]){
 strHTML +='\ncodebase="' + this.codebase +'"';} } if ("embed"==this.tagName){if (this["mimetype"]){
 strHTML +='\ntype="' + this.mimetype +'"';} if (this["pluginspage"]){strHTML +='\npluginspage="' + this.pluginspage +'"';
 } } if (!this.width || this.width=="0"){this.width=500;} strHTML +='\nwidth="' + this.width +'"';
 if (!this.height || this.height=="0"){this.height=300;} strHTML +='\nheight="' + this.height +'"';
 if (this[this.tagName +"Attributes"]){strHTML +='\n' + this[this.tagName +"Attributes"];
 } return strHTML;}
function EktODCPluginElement_createParametersHTML(){var strHTML="";for (var i=0;i < this.parameters.length;
 i++){strHTML +=this.parameters[i];} return strHTML;}
function EktODCPluginElement_createEventsHTML(){var strHTML="";for (var i=0;i < this.events.length;
 i++){strHTML +=this.events[i];} return strHTML;}
function EktODCPluginElement_defineDocParams(parameters){if (!parameters["charset"]){
 var objDoc=findDocument(parameters.getEditorDocument(),parameters.editorWindow);
 if (objDoc && objDoc.charset){this.defineParam("charset",objDoc.charset);} else{
 this.defineParam("charset","iso-8859-1");} }}
function EktODCPluginElement_defineNamedParams(parameters){var sParamName;var vParamValue;
 for (var i=0;i < parameters.names.length;i++){sParamName=parameters.names[i];vParamValue=parameters[sParamName];
 if (vParamValue){this.defineParam(sParamName,vParamValue);} }}
function EktODCPluginElement_defineNamedEvents(parameters){var sEventName;var sEventApi;
 var vEventValue;for (var i=0;i < parameters.events.length;i++){sEventName=parameters.events[i].name;
 sEventApi=sEventName +"(" + parameters.events[i].args +")";vEventValue=parameters[sEventName];
 if (typeof vEventValue=="string"){if (vEventValue.length > 0){var sEventType=sEventName.toLowerCase();
 if ("on"==sEventType.substring(0,2)){sEventType=sEventType.substring(2);} var strEvtObj="EktAsset.event = {type:'" + sEventType +"', srcName:'" + this.name +"'};";
 var strEventHandler=strEvtObj + vEventValue;var errCode=this.defineEvent(sEventApi,strEventHandler);
 var strMsg="";if (2==errCode){strMsg="Double quotes are not allowed in an event handler. Please use single quotes.";
 } else{strMsg="Unknown error in event handler. Error code: " + errCode;} if (errCode !=0){
 strMsg +="\n\nEditor name: " + this.name;strMsg +="\nEvent name: " + sEventName;
 strMsg +="\nEvent handler: " + vEventValue;alert(strMsg);} } } else if (typeof vEventValue !="undefined"){
 alert("Event '" + sEventName +"' must be a string.");} }}
function EktAssetParameters(){var i;this.defineProperty("path",EktAssetDefaults.path);
 this.defineProperty("maxContentSize",EktAssetDefaults.maxContentSize);this.defineProperty("editorGetMethod",EktAssetDefaults.editorGetMethod);
 this.defineProperty("names",new Array());i=0;this.names[i++]="Subscribe";this.names[i++]="Titlebar";
 this.names[i++]="Toolbars";this.names[i++]="Protocol";this.names[i++]="Server";this.names[i++]="File";
 this.names[i++]="TID";this.names[i++]="AssetID";this.names[i++]="Application";this.names[i++]="VersionID";
 this.names[i++]="Multiple";this.names[i++]="DomainName";this.names[i++]="FileTypes";
 this.names[i++]="UserName";this.names[i++]="Password";this.names[i++]="ActivateInternalPost";
 var name;for (i=0;i < this.names.length;i++){name=this.names[i];if (typeof EktAssetDefaults[name] !="undefined"){
 this.defineProperty(name,EktAssetDefaults[name]);} } this.defineProperty("events",new Array());
 i=0;this.events[i++]={name:"oncheckout",args:"item,data,errno,errormessage"};this.events[i++]={
name:"onundocheckout",args:"item,data,errno,errormessage"};this.events[i++]={name:"oncheckin",args:"item,data,errno,errormessage"}
;this.events[i++]={name:"onpublish",args:"item,data,errno,errormessage"};this.events[i++]={
name:"onsavetoassetserver",args:"item,data,errno,errormessage"};this.events[i++]={
name:"onrestore",args:"item,data,errno,errormessage"};this.events[i++]={name:"onworkoffline",args:"item,data,errno,errormessage"}
;this.events[i++]={name:"onuserrequest",args:"userrequest"};for (i=0;i < this.events.length;
 i++){name=this.events[i].name;if (typeof EktAssetDefaults[name] !="undefined"){this[name]=EktAssetDefaults[name];
 } } if ("function"==typeof EktAssetButtonTag){this.buttonTag=new EktAssetButtonTag();
 } if ("function"==typeof EktAssetPopup){this.popup=new EktAssetPopup();} if ("function"==typeof EktAssetInstallPopup){
 this.installPopup=new EktAssetInstallPopup();} this.getOptionalParameter=EktAssetParameters_getOptionalParameter;
 this.getEditorDocument=EktAssetParameters_getEditorDocument;this.relocate=EktAssetParameters_relocate;
 this.reset=EktAssetParameters_reset;this.definePropertyName=EktAssetParameters_definePropertyName;
 this.isLicense=EktAssetParameters_isLicense;}
EktAssetParameters.prototype=new ClassModel;function EktAssetParameters_reset(){var i;
 var name;for (i=0;i < this.properties.length;i++){name=this.properties[i];if (typeof this[name] !="object" && typeof EktAssetDefaults[name] !="undefined"){
 this[name]=EktAssetDefaults[name];} } for (i=0;i < this.names.length;i++){name=this.names[i];
 if (typeof EktAssetDefaults[name] !="undefined"){this[name]=EktAssetDefaults[name];
 } } for (i=0;i < this.events.length;i++){name=this.events[i].name;if (typeof EktAssetDefaults[name] !="undefined"){
 this[name]=EktAssetDefaults[name];} }}
function EktAssetParameters_getOptionalParameter(name,defaultValue){if (typeof this[name] !="undefined"){
 return this[name];} else if (typeof EktAssetDefaults[name] !="undefined"){return EktAssetDefaults[name];
 } else{return defaultValue;}}
function EktAssetParameters_definePropertyName(name){var bDefine=true;if ("undefined"==typeof this[name]){
 if ("undefined"==typeof EktAssetDefaults[name]){bDefine=false;} else{this[name]=EktAssetDefaults[name];
 } } else{for (var i=0;i < this.properties.length;i++){if (this.properties[i]==name){
 bDefine=false;} } if (bDefine){this.defineProperty(name,this[name]);} } return bDefine;
}
function EktAssetParameters_relocate(evalWindow){var prevWindow=this.EktAssetWindow;
 this.EktAssetWindow=evalWindow;for (var i=0;i < this.events.length;i++){var vHandler=this[this.events[i].name];
 if ("string"==typeof vHandler && vHandler.length > 0){if (prevWindow){var re=new RegExp("^" + prevWindow +"\.");
 vHandler=vHandler.replace(re,"");} if (this.EktAssetWindow){this[this.events[i].name]=this.EktAssetWindow +"." + vHandler;
 } } }}
function EktAssetParameters_getEditorDocument(){var evalDocument="document";if (this.editorDocument){
 evalDocument=this.editorDocument;} else if (this.editorDocumentLayer){evalDocument=this.editorDocumentLayer;
 } return evalDocument;}
function EktAssetParameters_isLicense(strModifier,strLicense){if ("string"==typeof strLicense){
 var re=new RegExp("\(([^\)]+\-)?" + strModifier +"(\-[^\(]+)?\)");return (strLicense.search(re) >=0);
 } else{return false;}}
function conditional_write(strHTML,objHtml,parameters){if (objHtml){objHtml.html +=strHTML;
 } if (!parameters.writeDisabled){var evalWindowDocument="";if (parameters.editorWindow){
 evalWindowDocument=parameters.editorWindow +".";} evalWindowDocument +=parameters.getEditorDocument();
 eval("var objDoc = " + evalWindowDocument);objDoc.write(strHTML);}}
function findWindow(evalWindow){var objWin=window;if (typeof evalWindow=="string" && evalWindow.length > 0){
 objWin=eval(evalWindow);} return objWin;}
function findDocument(evalDocument,evalWindow){var objDoc=null;if (!evalDocument){
 evalDocument="document";} var objWin=findWindow(evalWindow);if (objWin){if ((("unknown"==typeof objWin.closed) || !objWin.closed) && ("object"==typeof objWin["document"])){
 objDoc=eval('objWin.' + evalDocument);} else{objDoc=null;} } else{objDoc=eval(evalDocument);
 } return objDoc;}
function findElementDocumentLayer(name,evalWindow){var objInfo=findFormAndElement(name,evalWindow);
 return objInfo.evalDocument;}
function findElementForm(name,evalWindow){var objInfo=findFormAndElement(name,evalWindow);
 return objInfo.objForm;}
function findElement(name,evalWindow){var objInfo=findFormAndElement(name,evalWindow);
 return objInfo.objElem;}
function findElementFormName(name,evalWindow){var objInfo=findFormAndElement(name,evalWindow);
 return objInfo.formName;}
function findFormAndElementName(name,evalWindow){var aryNames=new Array(3);var objInfo=findFormAndElement(name,evalWindow);
 aryNames[0]=objInfo.formName;aryNames[1]=objInfo.elemName;aryNames[2]=objInfo.evalDocument;
 return aryNames;}
function findFormAndElement(name,evalWindow){var objInfo={evalDocument:"document",formName:"",objForm:null,elemName:"",objElem:null}
;var aryNames=splitFormAndElementName(name);objInfo.formName=aryNames[0];objInfo.elemName=aryNames[1];
 var objDoc=findDocument(objInfo.evalDocument,evalWindow);findFormAndElementInfo(objDoc,objInfo);
 return objInfo;}
function findFormAndElementInfo(objDoc,objInfo){var bFound=false;var formName=objInfo.formName;
 var elemName=objInfo.elemName;var foundForm=null;var foundElem=null;if (objDoc && objDoc.forms && elemName){
 var aForm;var anElem;if (formName){aForm=findFormByName(objDoc,formName);if (aForm){
 anElem=findElementByName(aForm,elemName);if (anElem){foundForm=aForm;foundElem=anElem;
 bFound=true;} } if (!foundForm){elemName=formName +"." + elemName;formName="";} }
 if (!foundForm){var aryFoundFormNames=new Array();for (var i=0;i < objDoc.forms.length;
 i++){aForm=objDoc.forms[i];anElem=findElementByName(aForm,elemName);if (anElem){
 var formName=aForm.name;if (!formName){formName=i +"";} if (!foundForm){foundForm=aForm;
 } if (!foundElem){foundElem=anElem;} aryFoundFormNames[aryFoundFormNames.length]=formName;
 bFound=true;} } if (aryFoundFormNames.length > 1){var sMsg="Ambiguous element name: " + elemName +"\n" +"Please specify a form name: " + aryFoundFormNames.toString() +"\n" +"Example: " + formName +"." + elemName +"\n";
 alert(sMsg);} } } if (bFound){objInfo.formName=formName;objInfo.elemName=elemName;
 objInfo.objForm=foundForm;objInfo.objElem=foundElem;} else if (objDoc && objDoc.layers){
 for (var i=0;i < objDoc.layers.length;i++){bFound=findFormAndElementInfo(objDoc.layers[i].document,objInfo);
 if (bFound){objInfo.evalDocument="document.layers[" + i +"]." + objInfo.evalDocument;
 break;} } } return bFound;}
function findFormByName(objDoc,formName){for (var i=0;i < objDoc.forms.length;i++){
 if (objDoc.forms[i].name==formName){return objDoc.forms[i];} } return objDoc.forms[formName];
}
function findElementByName(objForm,elemName){for (var i=0;i < objForm.elements.length;
 i++){if (objForm.elements[i].name==elemName){return objForm.elements[i];} } return objForm.elements[elemName];
}
function splitFormAndElementName(name){var aryNames=new Array(2);var i=name.indexOf(".");
 if (-1==i){aryNames[0]="";aryNames[1]=name;} else{aryNames[0]=name.substring(0,i);
 aryNames[1]=name.substring(i + 1);} return aryNames;}
var g_EktAssetCookie_Count=0;function EktAssetCookie(name,evalDocument,evalWindow){
 if (name){this.name=name;} else{this.name="cookie" + g_EktAssetCookie_Count++;} this.evalDocument=evalDocument;
 this.evalWindow=evalWindow;this.expiresInSeconds=3 * 365 * 24 * 60 * 60;this.setCookie=EktAssetCookie_setCookie;
 this.getCookie=EktAssetCookie_getCookie;this.removeCookie=EktAssetCookie_removeCookie;
}
function EktAssetCookie_setCookie(args){var expDateDefault=new Date();expDateDefault.setTime(expDateDefault.getTime() + this.expiresInSeconds * 1000);
 var argv=this.setCookie.arguments;var argc=this.setCookie.arguments.length;var name="";
 var value="";if (argc==1){name=this.name;value=argv[0];} else if (argc==2){name=argv[0];
 value=argv[1];} var expires=(argc > 2) ? argv[2] : expDateDefault;var path=(argc > 3) ? argv[3] : null;
 var domain=(argc > 4) ? argv[4] : null;var secure=(argc > 5) ? argv[5] : false;if ("object"==typeof expires){
 expires=expires.toGMTString();} var objDoc=findDocument(this.evalDocument,this.evalWindow);
 objDoc.cookie=name +"=" + escape(value) + (expires ?"; expires=" + expires :"") + (path ?"; path=" + path :"") + (domain ?"; domain=" + domain :"") + (secure ?"; secure" :"");
}
function EktAssetCookie_getCookie(name){if (!name){name=this.name;} var objDoc=findDocument(this.evalDocument,this.evalWindow);
 var strCookie=objDoc.cookie +"";var aryPairs=strCookie.split(";");var pair=[];for (var i=0;
 i < aryPairs.length;i++){pair=aryPairs[i].split("=");if (pair.length==2){var key;
 key=pair[0] +"";key=EktAssetUtil_trim(key);if (key==name){return unescape(pair[1]);
 } } } return;}
function EktAssetCookie_removeCookie(name){if (!name){name=this.name;} var expDate=new Date();
 expDate.setTime(expDate.getTime() - 1);var objDoc=findDocument(this.evalDocument,this.evalWindow);
 objDoc.cookie=name +"=; expires=" + expDate.toGMTString();}
EWEP_STATUS_INSTALLED="installed";EWEP_STATUS_NOTLOADED="notloaded";EWEP_STATUS_LOADING="loading";
EWEP_STATUS_LOADED="loaded";EWEP_STATUS_SAVING="saving";EWEP_STATUS_SAVED="saved";
EWEP_STATUS_NOTSUPPORTED="notsupported";EWEP_STATUS_NOTINSTALLED="notinstalled";EWEP_STATUS_FATALERROR="fatalerror";
EWEP_STATUS_UNABLETOSAVE="unabletosave";EWEP_STATUS_SIZEEXCEEDED="sizeexceeded";EWEP_STATUS_MISSINGNOTIFY="missingnotify";
EWEP_STATUS_CANCELED="canceled";g_dmsInstanceTypes=new Array();function EktAssetAddInstanceType(fnInstanceType){
 if ("function"==typeof fnInstanceType){g_dmsInstanceTypes[g_dmsInstanceTypes.length]=fnInstanceType;
 if ("object"==typeof EktAsset){EktAsset.addInstanceType(fnInstanceType);} } else{
 alert("EktAssetAddInstanceType argument must be a function.\nIt is " + typeof fnInstanceType);
 }}
function EktAssetInstanceType(){this.description="";this.type="unknown";this.parameterPropertyNames=[];
 this.refreshStatus=EktAssetInstanceType_refreshStatus;this.valid=EktAssetInstanceType_valid;
 this.currentPreference=EktAssetInstanceType_currentPreference;this.create=EktAssetInstanceType_create;
 this.clear=EktAssetInstanceType_clear;this.fixDimension=EktAssetInstanceType_fixDimension;
}
function EktAssetInstanceType_refreshStatus(parameters){this.isSupported=false;this.isAutoInstallSupported=false;
 this.isInstalled=false;this.upgradeNeeded=false;}
function EktAssetInstanceType_valid(){return (this.isSupported && (this.isInstalled || this.isAutoInstallSupported));
}
function EktAssetInstanceType_currentPreference(width,height,parameters){return 0;
}
function EktAssetInstanceType_create(name,width,height,parameters){return null;}
function EktAssetInstanceType_clear(){}
function EktAssetInstanceType_fixDimension(dimension){var newDimension=dimension;
 if ("string"==typeof dimension){if (dimension.indexOf("%") >=0){newDimension=600;
 } } return newDimension;}
function EktAssetInstance(name,width,height,parameters){if (typeof parameters !="object" || (null==parameters)){
 parameters=EktAsset.parameters;} extendObject(this,JSEventModel);this.id=name;this.name="" + name;
 this.width=width;this.height=height;this.editor=null;this.asyncActive=false;this.receivedEvent=false;
 extendObject(this,AsyncMethods);this.editorDocument=parameters.getEditorDocument();
 this.editorWindow=parameters.editorWindow;this.maxContentSize=parameters.maxContentSize;
 this.isSizeExceeded=EktAssetInstance_isSizeExceeded;this.linkTo=EktAssetInstance_linkTo;
 this.linkedElement=EktAssetInstance_linkedElement;this.linkedWindow=EktAssetInstance_linkedWindow;
 this.linkedInstance=EktAssetInstance_linkedInstance;this.linkedPopup=EktAssetInstance_linkedPopup;
 this.isInstance=EktAssetInstance_isInstance;this.writeHTML=EktAssetInstance_writeHTML;
 if (!parameters.editorSetMethod){if (typeof cODC_SETMETHOD !="undefined"){this.editorSetMethod=cODC_SETMETHOD;
 } } else{this.editorSetMethod=parameters.editorSetMethod;} if (!parameters.editorGetMethod){
 if (typeof cODC_GETMETHOD !="undefined"){this.editorGetMethod=cODC_GETMETHOD;} }
 else{this.editorGetMethod=parameters.editorGetMethod;} this.writeValue=EktAssetInstance_writeValue;
 this.readValue=EktAssetInstance_readValue;this.estimateContentSize=EktAssetInstance_estimateContentSize;
 this.raiseSizeExceededError=EktAssetInstance_raiseSizeExceededError;this.load=EktAssetInstance_load;
 this.clear=EktAssetInstance_clear;this.focus=EktAssetInstance_focus;this.getReadOnly=EktAssetInstance_getReadOnly;
 this.setReadOnly=EktAssetInstance_setReadOnly;this.isChanged=EktAssetInstance_isChanged;
 this.insertMediaFile=EktAssetInstance_insertMediaFile;this.insertMediaFileDeferred=EktAssetInstance_insertMediaFileDeferred;
 this.status=EWEP_STATUS_NOTLOADED;this.html="";if (parameters.linkToName && parameters.linkToWindow){
 this.linkTo(parameters.linkToName,parameters.linkToWindow);} else{this.linkTo(this.name,this.editorWindow);
 }}
 function EktAssetInstance_writeHTML(strHTML,parameters){if (strHTML.length > 0){
 if (parameters.showPluginElement || parameters.showActiveXElement){strHTML='<textarea rows="10" cols="60">' + strHTML +'</textarea><br>' + strHTML;
 } conditional_write(strHTML,this,parameters);}}
function EktAssetInstance_getReadOnly(){if (this.isReady()){if ("string"==typeof cREADONLY){
 return this.editor.getPropertyBoolean(cREADONLY);} else{return false;} } else{return false;
 }}
function EktAssetInstance_setReadOnly(bValue){if (this.isReady()){if ("string"==typeof cREADONLY){
 this.editor.setProperty(cREADONLY,bValue);} }}
function EktAssetInstance_isChanged(){if (this.isReady()){if ("string"==typeof cCHANGEDMETHOD){
 return eval('this.editor.' + cCHANGEDMETHOD);} else{return true;} } else{return false;
 }}
function EktAssetInstance_writeValue(strValue,fnNotify){if (this.editorSetMethod){
 eval('this.editor.' + this.editorSetMethod +'(strValue)');} notifyObject(this,fnNotify);
}
function EktAssetInstance_readValue(fnNotify){var vResult=eval('this.editor.' + this.editorGetMethod +'()');
 notifyObject(this,fnNotify,vResult);}
function EktAssetInstance_estimateContentSize(editorEstimateContentSize){var nContentSize=0;
 if ("string"==typeof editorEstimateContentSize && editorEstimateContentSize){nContentSize=this.editor.EstimateContentSize(editorEstimateContentSize);
 } return nContentSize;}
function EktAssetInstance_load(valueSource,objNotify,fnNotify){if (2==arguments.length || 4 <=arguments.length){
 alert("Incorrect number of arguments for EktAsset.Instance.load method.");return false;
 } var bReturnValue=(EWEP_STATUS_LOADED==this.status);if (this.isReady()){this.initEvent("onbeforeload");
 if (this.raiseEvent("onbeforeload") !=false){this.status=EWEP_STATUS_LOADING;bReturnValue=(EWEP_STATUS_LOADED==this.status);
 var strValue="";switch (typeof valueSource){case"undefined": case"function": var objElem=this.linkedElement();
 if (objElem){strValue=objElem.value;} else{this.linkTo(null);strValue="";} break;
 case"object": if (typeof valueSource.value !="undefined"){strValue=valueSource.value;
 } else if (valueSource){strValue=valueSource.toString();} else{strValue="";} break;
 case"string": strValue=valueSource;break;default: strValue="";} this.writeValue(strValue,function (){
 this.status=EWEP_STATUS_LOADED;this.initEvent("onload");this.raiseEvent("onload");
 bReturnValue=(EWEP_STATUS_LOADED==this.status);bReturnValue=notifyObject(objNotify,fnNotify,bReturnValue);
 return bReturnValue;});return bReturnValue;} } else{this.status=EWEP_STATUS_NOTLOADED;
 } bReturnValue=(EWEP_STATUS_LOADED==this.status);return bReturnValue;}
function EktAssetInstance_raiseSizeExceededError(nContentSize){this.status=EWEP_STATUS_SIZEEXCEEDED;
 this.initEvent("onerror");this.event.source="save";this.event.contentSize=nContentSize;
 this.event.maxContentSize=this.maxContentSize;if (this.raiseEvent("onerror") !=false){
 if (EktAssetMessages.sizeExceeded){alert(EktAssetMessages.sizeExceeded);} }}
function EktAssetInstance_clear(){this.editor=null;this.receivedEvent=false;this.status=EWEP_STATUS_NOTLOADED;
}
function EktAssetInstance_focus(){if (this.isReady()){this.editor.focus();}}
function EktAssetInstance_isSizeExceeded(size){var bIsSizeExceeded=false;if (this.maxContentSize > 0){
 bIsSizeExceeded=(size > this.maxContentSize);} return bIsSizeExceeded;}
function EktAssetInstance_linkTo(name,evalWindow){this.linkName=name;this.formName="";
 this.elemName="";this.evalDocument="document";this.evalWindow=evalWindow;}
function EktAssetInstance_linkedElement(){var objElem=null;if (this.linkName && !this.elemName && !this.formName){
 var aryNames=findFormAndElementName(this.linkName,this.evalWindow);this.formName=aryNames[0];
 this.elemName=aryNames[1];this.evalDocument=aryNames[2];} if (this.formName && this.elemName){
 var objDoc=findDocument(this.evalDocument,this.evalWindow);if (objDoc){var objForm=findFormByName(objDoc,this.formName);
 if (objForm){objElem=findElementByName(objForm,this.elemName);} } } return objElem;
}
function EktAssetInstance_linkedWindow(){return findWindow(this.evalWindow);}
function EktAssetInstance_linkedInstance(){var objInstance=null;var objWin=this.linkedWindow();
 if (objWin && objWin.EktAsset){objInstance=objWin.EktAsset.instances[this.linkName];
 } return objInstance;}
function EktAssetInstance_linkedPopup(){var objPopup=null;var objWin=this.linkedWindow();
 if (objWin && objWin.EktAsset){objPopup=objWin.EktAsset.popups[this.linkName];} return objPopup;
}
function EktAssetInstance_isInstance(objField){if (!objField) return false;var strFieldName=objField.name;
 return (this.name==strFieldName || this.id==strFieldName);}
function EktAssetInstance_insertMediaFile(strSrcFileLocation,bLocalFile,strFileTitle,strFileType,nWidth,nHeight){
 setTimeout('EktAsset.instances["' + this.name +'"].insertMediaFileDeferred(' + toLiteral(strSrcFileLocation) +', ' + bLocalFile +', ' + toLiteral(strFileTitle) +', ' + toLiteral(strFileType) +', ' + nWidth +', ' + nHeight +')',1);
}
function EktAssetInstance_insertMediaFileDeferred(strSrcFileLocation,bLocalFile,strFileTitle,strFileType,nWidth,nHeight){
 var objMedia=this.editor.MediaFile();objMedia.setProperty("IsLocal",bLocalFile);
 objMedia.setProperty("SrcFileLocationName",strSrcFileLocation);objMedia.setProperty("FileTitle",strFileTitle);
 objMedia.setProperty("FileType","IMAGE");objMedia.setProperty("ImageWidth",nWidth);
 objMedia.setProperty("ImageHeight",nHeight);this.editor.ExecCommand("cmdmfuinsert",strSrcFileLocation,bLocalFile);
}
function AsyncMethods(){this.asyncCallMethod=AsyncMethods_asyncCallMethod;this.asyncSetProperty=AsyncMethods_asyncSetProperty;
 this.asyncGetProperty=AsyncMethods_asyncGetProperty;this.asyncGetPropertyString=AsyncMethods_asyncGetPropertyString;
 this.asyncGetPropertyInteger=AsyncMethods_asyncGetPropertyInteger;this.asyncGetPropertyBoolean=AsyncMethods_asyncGetPropertyBoolean;
 this.validAsyncArguments=AsyncMethods_validAsyncArguments;this.localCall=AsyncMethods_localCall;
 }
function AsyncMethods_asyncCallMethod(methodName,argv,objNotify,fnNotify){return this.localCall(methodName,argv,objNotify,fnNotify);
}
function AsyncMethods_asyncSetProperty(propertyName,value,objNotify,fnNotify){var methodName="setProperty";
 var argv=[propertyName,value];return this.localCall(methodName,argv,objNotify,fnNotify);
}
function AsyncMethods_asyncGetProperty(propertyName,objNotify,fnNotify){var methodName="getProperty";
 var argv=[propertyName];return this.localCall(methodName,argv,objNotify,fnNotify);
}
function AsyncMethods_asyncGetPropertyString(propertyName,objNotify,fnNotify){var methodName="getPropertyString";
 var argv=[propertyName];return this.localCall(methodName,argv,objNotify,fnNotify);
}
function AsyncMethods_asyncGetPropertyInteger(propertyName,objNotify,fnNotify){var methodName="getPropertyInteger";
 var argv=[propertyName];return this.localCall(methodName,argv,objNotify,fnNotify);
}
function AsyncMethods_asyncGetPropertyBoolean(propertyName,objNotify,fnNotify){var methodName="getPropertyBoolean";
 var argv=[propertyName];return this.localCall(methodName,argv,objNotify,fnNotify);
}
function AsyncMethods_validAsyncArguments(methodName,argv,objNotify,fnNotify){var strErrorMsg="Error in asynchronous call.\n";
 if (!methodName){alert(strErrorMsg +"The name of the method to call is missing.");
 return false;} if (typeof argv !="object" || typeof argv.length !="number"){alert(strErrorMsg +"The method arguments must be passed as an array.");
 return false;} if (typeof objNotify !="object"){alert(strErrorMsg +"The objNotify argument must be an object or 'null'.");
 return false;} if (typeof fnNotify !="function"){alert(strErrorMsg +"The fnNotify argument must be a function.");
 return false;} return true;}
function AsyncMethods_localCall(methodName,argv,objNotify,fnNotify){if (!this.validAsyncArguments(methodName,argv,objNotify,fnNotify)){
 return false;} var sCode=methodName +"(";for (var i=0;i < argv.length;i++){if (i !=0){
 sCode +=", ";} sCode +=toLiteral(argv[i]);} sCode +=")";var result=eval("this.editor." + sCode);
 notifyObject(objNotify,fnNotify,result);return true;}
function EktPlaceholderType(){extendObject(this,EktAssetInstanceType);this.description="Standard HTML placeholder.";
 this.type="placeholder";this.parameterPropertyNames=["divAttributes"];this.refreshStatus=EktPlaceholderType_refreshStatus;
 this.currentPreference=EktPlaceholderType_currentPreference;this.create=EktPlaceholderType_create;
 }
EktAssetAddInstanceType(EktPlaceholderType);function EktPlaceholderType_refreshStatus(parameters){
 this.isSupported=true;this.isAutoInstallSupported=false;this.isInstalled=true;this.upgradeNeeded=false;
 }
function EktPlaceholderType_currentPreference(width,height,parameters){return 1;}
function EktPlaceholderType_create(name,width,height,parameters){var objInstance=new EktPlaceholder(name,width,height,parameters);
 return objInstance;}
function EktPlaceholder(name,width,height,parameters){if (typeof parameters !="object" || (null==parameters)){
 parameters=EktAsset.parameters;} this.type="placeholder";extendObject(this,EktAssetInstance,name,width,height,parameters);
 this.value="";this.createHTML=EktPlaceholder_createHTML;this.isReady=EktPlaceholder_isReady;
 this.writeValue=EktPlaceholder_writeValue;this.readValue=EktPlaceholder_readValue;
 this.estimateContentSize=EktPlaceholder_estimateContentSize;this.clear=EktPlaceholder_clear;
 this.focus=EktPlaceholder_focus;this.getReadOnly=EktPlaceholder_getReadOnly;this.setReadOnly=EktPlaceholder_setReadOnly;
 this.isChanged=EktPlaceholder_isChanged;var strHTML=this.createHTML(parameters);
 this.writeHTML(strHTML,parameters);}
 function EktPlaceholder_createHTML(parameters){var sWidth;var sHeight;if (typeof this.width=="number"){
 sWidth=this.width +"px";} else if (this.width.indexOf("%") > 0){sWidth=this.width;
 } else{sWidth="60px";} if (typeof this.height=="number"){sHeight=this.height +"px";
 } else if (this.height.indexOf("%") > 0){sHeight=this.height;} else{sHeight="20px";
 } var sMsg="";if (parameters.installPopup.isBlocked && EktAssetMessages.clientInstallSP2Message){
 sMsg=EktAssetMessages.clientInstallSP2Message;} else if (EktAssetMessages.clientInstallMessage){
 sMsg=EktAssetMessages.clientInstallMessage;} if (EktAssetMessages.clientAutoInstallMessage){
 sMsg +=EktAssetMessages.clientAutoInstallMessage;} var sHtml='<div id="' + this.id +'" style="display:block;border: 1px black solid;background-color:white;text-align:center;width:' + sWidth +';height:' + sHeight +'"';
 if (parameters.divAttributes){sHtml +=' ' + parameters.divAttributes;} sHtml +='>' + sMsg +'</div>';
 return sHtml;}
function EktPlaceholder_isReady(){return true;}
function EktPlaceholder_getReadOnly(){return true;}
function EktPlaceholder_setReadOnly(bValue){}
function EktPlaceholder_isChanged(){return false;}
function EktPlaceholder_writeValue(strValue,fnNotify){this.value=strValue;notifyObject(this,fnNotify);
 }
function EktPlaceholder_readValue(fnNotify){var vResult=this.value;notifyObject(this,fnNotify,vResult);
}
function EktPlaceholder_estimateContentSize(editorEstimateContentSize){var nContentSize=this.value.length;
 return nContentSize;}
function EktPlaceholder_clear(){if (this.isReady()){this.value="";} this.status=EWEP_STATUS_NOTLOADED;
}
function EktPlaceholder_focus(){}
function EktODCAxEskerElem(){extendObject(this,EktODCPluginElement,"embed");this.pluginName="Ektron Plug-in for EktAsset";
 if (this.browserVersion < 5.0){this.mimetype="application/x-eskerplus";} else{this.mimetype="application/x-eskeractivex";
 } this.defineEvent=EktODCAxEskerElem_defineEvent;this.createBeforeHTML=null;this.createAfterHTML=null;
 this.overrideMethod("createHTMLAttributes",EktODCAxEskerElem_createHTMLAttributes);
 this.overrideMethod("defineDocParams",EktODCAxEskerElem_defineDocParams);this.pluginInstalled=EktODCAxEskerElem_pluginInstalled;
 this.pluginVersionInstalled=EktODCAxEskerElem_pluginVersionInstalled;}
function EktODCAxEskerElem_defineEvent(name,value){var errCode=0;if (0==this.events.length){
 this.events=new Array();} var strValue=value +"";if (strValue.indexOf('"') >=0){
 strValue="alert('ERROR: Event handler contains double quotes. Event: " + name +"')";
 errCode=2;} var sValueFn='function() {' + strValue +'} ()';if (this.browserVersion < 6.1){
 this.events[this.events.length]='\n' + name +'="' + sValueFn +'"';} else{this.events[this.events.length]='\nevent' + this.events.length +'="' + name +'=' + sValueFn +'"';
 } return errCode;}
function EktODCAxEskerElem_createHTMLAttributes(){var strHTML="";if (this["classid"]){
 if (this.browserVersion < 5.0){strHTML +='\nclassid="CLSID:' + this.classid +'"';
 } else{strHTML +='\nclsid="' + this.classid +'"';} } if (this["codebase"]){if (this["deployer"]){
 } else{} } strHTML +=this.super_createHTMLAttributes();strHTML +=this.createEventsHTML();
return strHTML;}
function EktODCAxEskerElem_defineDocParams(parameters){var objDoc=findDocument(parameters.getEditorDocument(),parameters.editorWindow);
 if (!objDoc){objDoc=document;} this.defineParam("href",objDoc.location.href);this.defineParam("cookie",objDoc.cookie);
 this.super_defineDocParams(parameters);}
function EktODCAxEskerElem_pluginInstalled(){var bInstalled=false;if (this.browserVersion >=4.0 && this.browserVersion < 5.0){
 if (window.navigator.plugins["Esker ActiveX Plug-in"] && window.navigator.plugins[this.pluginName]){
 var pluginDesc=window.navigator.plugins["Esker ActiveX Plug-in"].description +"";
 var pluginVersion=parseFloat(pluginDesc.substring(30,40));if (pluginVersion >=4.5){
 bInstalled=true;} } } else if (this.browserVersion >=6.0 && this.browserVersion < 7.0){
 if (window.navigator.plugins["Esker ActiveX Plug-in for Netscape 6"] && window.navigator.plugins[this.pluginName]){
 var pluginDesc=window.navigator.plugins["Esker ActiveX Plug-in for Netscape 6"].description +"";
 var pluginVersion=parseFloat(pluginDesc.substring(30,40));if ((this.browserVersion >=6.0 && this.browserVersion < 6.1) && pluginVersion==6.4){
 bInstalled=true;} else if (this.browserVersion==6.1 && pluginVersion==6.5){bInstalled=true;
 } else if (this.browserVersion >=6.2 && pluginVersion >=6.6){bInstalled=true;} }
 } else if (this.browserVersion >=7.0 && this.browserVersion < 7.23){if (window.navigator.plugins["Esker ActiveX Plug-in for Netscape 7"] && window.navigator.plugins[this.pluginName]){
 var pluginDesc=window.navigator.plugins["Esker ActiveX Plug-in for Netscape 7"].description +"";
 var pluginVersion=parseFloat(pluginDesc.substring(30,40));if (this.browserVersion < 7.1 && (pluginVersion >=7.0 && pluginVersion < 7.2)){
 bInstalled=true;} else if ((this.browserVersion >=7.1 && this.browserVersion < 7.2) && (pluginVersion >=7.2 && pluginVersion < 7.6)){
 bInstalled=true;} else if (this.browserVersion >=7.2 && pluginVersion >=7.8){bInstalled=true;
 } } } else if (this.browserVersion >=7.23){if (window.navigator.plugins["Esker ActiveX Plug-in for Netscape 7"] && window.navigator.plugins[this.pluginName]){
 var pluginDesc=window.navigator.plugins["Esker ActiveX Plug-in for Netscape 7"].description +"";
 var pluginVersion=parseFloat(pluginDesc.substring(30,40));if (pluginVersion >=7.93){
 bInstalled=true;} } } return bInstalled;}
function EktODCAxEskerElem_pluginVersionInstalled(){var versionInstalled="";if (window.navigator.plugins[this.pluginName]){
 versionInstalled=window.navigator.plugins[this.pluginName].description +"";} return versionInstalled;
}
function EktODCActiveXElement(strProgId){this.progid=strProgId;extendObject(this,PlatformInfo);
 this.isSupported=(this.isWindows && ((this.isIE && this.browserVersion >=4.0) || (this.isNetscape && this.browserVersion >=4.0)));
 this.isAutoInstallSupported=false;this.isInstalled=false;if (this.isSupported && this.isNetscape){
 extendObject(this,EktODCAxEskerElem);this.isAutoInstallSupported=false;this.isInstalled=this.pluginInstalled();
 this.versionInstalled=this.pluginVersionInstalled();} else if (this.isSupported){
 extendObject(this,EktODCAxObjectElem);var bActiveXVersionInstalledAvailable=false;
 if (this.isIE && this.browserVersion < 5.0){this.isAutoInstallSupported=false;if ("function"==typeof isVBScriptSupported){
 if (isVBScriptSupported()){bActiveXVersionInstalledAvailable=true;} } } else{this.isAutoInstallSupported=true;
 bActiveXVersionInstalledAvailable=(typeof ActiveXVersionInstalled !="undefined");
 } if (bActiveXVersionInstalledAvailable && this.progid){this.versionInstalled=ActiveXVersionInstalled(this.progid) +"";
 this.isInstalled=(this.versionInstalled.indexOf(",") > 0);if (this.isInstalled){
 this.isAutoInstallSupported=true;} } else{this.isInstalled=this.isAutoInstallSupported;
 } } this.compareVersion=EktODCActiveXElement_compareVersion;}
function EktODCActiveXElement_compareVersion(strVersion,strVersionInstalled){if (typeof strVersion !="string"){
 return 0;} if (typeof strVersionInstalled !="string"){return 0;} var aryVersion=strVersion.split(",");
 var aryInstalled=strVersionInstalled.split(",");var nCount=Math.min(aryVersion.length,aryInstalled.length);
 var nVersion=0;var nVersionInstalled=0;for (var i=0;i < nCount;i++){nVersion=aryVersion[i] - 0;
 nVersionInstalled=aryInstalled[i] - 0;if (nVersionInstalled < nVersion){return -1;
 } else if (nVersionInstalled > nVersion){return 1;} } return 0;}
function EktODCAxObjectElem(){extendObject(this,EktODCPluginElement,"object");this.defineEvent=EktODCAxObjectElem_defineEvent;
 this.createBeforeHTML=null;this.createAfterHTML=this.createEventsHTML;}
function EktODCAxObjectElem_defineEvent(name,value){var errCode=0;if (0==this.events.length){
 this.events=new Array();} var strValue=value +"";if (strValue.indexOf('"') >=0){
 strValue="alert('ERROR: Event handler contains double quotes. Event: " + name +"')";
 errCode=2;} if (this["id"]){this.events[this.events.length]='\n<scr' +'ipt language="JavaScript1.2" type="text/javascript" for="' + this.id +'" event="' + name +'">\n' + strValue +'\n<' +'/sc' +'ript>';
 } return errCode;}
var cODC_PROGID="EktMgd.ManagedControl";var cODC_CLASSID="A1672C6B-8E1C-4e0d-BC2A-8C148160513B";
var cODC_VERSION="3,0,0,12";var cODC_SETMETHOD="";var cODC_GETMETHOD="SaveToAssetServer";
 var cDMSLPKOBJECT="";var editorEstimateContentSize="whole";function EktAssetActiveXType(){
 extendObject(this,EktAssetInstanceType);this.description="ActiveX control";this.type="activex";
 this.parameterPropertyNames=["objectAttributes","embedAttributes"];this.numInstances=0;
 this.isNetscape60=false;this.refreshStatus=EktAssetActiveXType_refreshStatus;this.overrideMethod("valid",EktAssetActiveXType_valid);
 this.currentPreference=EktAssetActiveXType_currentPreference;this.create=EktAssetActiveXType_create;
 this.clear=EktAssetActiveXType_clear;this.checkLicense=EktAssetActiveXType_checkLicense;
 }
EktAssetAddInstanceType(EktAssetActiveXType);function EktAssetActiveXType_refreshStatus(parameters){
 if (typeof parameters !="object" || (null==parameters)){parameters=EktAsset.parameters;
 } var objPluginElement=new EktODCActiveXElement(cODC_PROGID);this.isSupported=objPluginElement.isSupported && this.checkLicense(parameters);
 this.isAutoInstallSupported=objPluginElement.isAutoInstallSupported;this.isInstalled=objPluginElement.isInstalled;
 this.versionInstalled=objPluginElement.versionInstalled;this.upgradeNeeded=(objPluginElement.compareVersion(cODC_VERSION,this.versionInstalled) < 0);
 this.isNetscape60=objPluginElement.isNetscape60;objPluginElement=null;}
function EktAssetActiveXType_checkLicense(parameters){return true;}
function EktAssetActiveXType_valid(){if (this.isNetscape60 && this.numInstances >=1){
 return false;} return (this.super_valid());}
function EktAssetActiveXType_currentPreference(width,height,parameters){var wd=width * 1;
 var ht=height * 1;if (this.numInstances < 3 && (wd >=500 || isNaN(wd)) && (ht >=150 || isNaN(ht))){
 return 500;} else{return 350;}}
function EktAssetActiveXType_create(name,width,height,parameters){if (this.isNetscape60){
 width=this.fixDimension(width);height=this.fixDimension(height);} var objInstance=new EktAssetEditor(name,width,height,parameters);
 this.numInstances++;return objInstance;}
function EktAssetActiveXType_clear(){this.numInstances=0;}
function EktAssetEditor(name,width,height,parameters){if (typeof parameters !="object" || (null==parameters)){
 parameters=EktAsset.parameters;} this.type="activex";extendObject(this,EktAssetInstance,name,width,height,parameters);
 this.createHTML=EktAssetEditor_createHTML;this.isReady=EktAssetEditor_isReady;this.writeValue=EktAssetEditor_writeValue;
 this.createNewAsset=EktAssetEditor_createNewAsset;this.checkOut=EktAssetEditor_checkOut;
 this.undoCheckOut=EktAssetEditor_undoCheckOut;this.checkIn=EktAssetEditor_checkIn;
 this.publish=EktAssetEditor_publish;this.saveToAssetServer=EktAssetEditor_saveToAssetServer;
 this.restore=EktAssetEditor_restore;this.viewAsset=EktAssetEditor_viewAsset;this.workOffline=EktAssetEditor_workOffline;
 this.saveLocalCopy=EktAssetEditor_saveLocalCopy;this.isInWorkOffline=EktAssetEditor_isInWorkOffline;
 this.cancelWorkOffline=EktAssetEditor_cancelWorkOffline;this.requestProperties=EktAssetEditor_requestProperties;
 this.publishAsType=EktAssetEditor_publishAsType;this.checkInAsType=EktAssetEditor_checkInAsType;
 this.saveAsType=EktAssetEditor_saveAsType;var strHTML=this.createHTML(parameters);
 this.writeHTML(strHTML,parameters);this.isReady();}
 var s_numInstances=0;function EktAssetEditor_createHTML(parameters){var sHtml="";
 var objActiveXElement=new EktODCActiveXElement(cODC_PROGID);this.isIE=objActiveXElement.isIE;
 this.isNetscape=objActiveXElement.isNetscape;this.isNetscape60=objActiveXElement.isNetscape60;
 this.browserVersion=objActiveXElement.browserVersion;this.isSupported=objActiveXElement.isSupported;
 this.isInstalled=objActiveXElement.isInstalled;if (this.isSupported){s_numInstances++;
 if (typeof cDMSLPKOBJECT=="string" && cDMSLPKOBJECT.length > 0 && objActiveXElement.isIE && s_numInstances==1){
 sHtml +=cDMSLPKOBJECT;} if (!objActiveXElement.isInstalled && !objActiveXElement.isAutoInstallSupported){
 this.status=EWEP_STATUS_NOTINSTALLED;} objActiveXElement.copyHTMLAttributes(this);
 objActiveXElement.classid=cODC_CLASSID;if (parameters["embedAttributes"]){objActiveXElement.embedAttributes=parameters.embedAttributes;
 } if (parameters["objectAttributes"]){objActiveXElement.objectAttributes=parameters.objectAttributes;
 } var strMajorVersion=cODC_VERSION.substring(0,1);if (objActiveXElement.isIE){objActiveXElement.codebase=parameters.path +'dms400.cab#version=' + cODC_VERSION;
 } else{objActiveXElement.codebase="ektexplorer" + strMajorVersion +".ocx#version=" + cODC_VERSION;
 } objActiveXElement.defineDocParams(parameters);objActiveXElement.defineNamedParams(parameters);
 objActiveXElement.defineNamedEvents(parameters);sHtml +=objActiveXElement.createHTML();
 if(this.isIE && this.name!="MyAsset1" ){if(this.width !="0%"){sHtml="";EktAsset.parameters.width=this.width;
 EktAsset.parameters.height=this.height;EktAsset.parameters.name=this.name;sHtml='<div id="DivID"></div><script>EktAssetEditor_CreateElement();</script>';
 sHtml +=objActiveXElement.createEventsHTML();} } } else{this.status=EWEP_STATUS_NOTSUPPORTED;
 } objActiveXElement=null;return sHtml;}
function EktAssetEditor_CreateElement(){var myObject=document.createElement('object');
 DivID.appendChild(myObject);myObject.width=EktAsset.parameters.width;myObject.height=EktAsset.parameters.height;
 myObject.name=EktAsset.parameters.name;myObject.id=EktAsset.parameters.name;myObject.classid="CLSID:" + cODC_CLASSID;
 myObject.Multiple=EktAsset.parameters.Multiple;myObject.path=EktAsset.parameters.path;
 myObject.Protocol=EktAsset.parameters.Protocol ;myObject.Server=EktAsset.parameters.Server;
 myObject.Application=EktAsset.parameters.Application ;myObject.DomainName=EktAsset.parameters.DomainName ;
 myObject.UserName=EktAsset.parameters.UserName ;myObject.Password=EktAsset.parameters.Password;
 myObject.FileTypes=EktAsset.parameters.FileTypes;myObject.editorSetMethod=EktAsset.parameters.editorSetMethod;
 myObject.File=EktAsset.parameters.File ;myObject.Titlebar=EktAsset.parameters.Titlebar;
 myObject.AssetID=EktAsset.parameters.AssetID;myObject.TID=EktAsset.parameters.TID;
 if(typeof EktAsset.parameters.VersionID !="undefined") myObject.VersionID=EktAsset.parameters.VersionID;
 myObject.ActivateInternalPost=EktAsset.parameters.ActivateInternalPost;myObject.Multiple=EktAsset.parameters.Multiple;
}
function EktAssetEditor_isReady(){var isReady=false;if (("undefined"==typeof this.editor) || (null==this.editor)){
 var id=this.id;if (this.isIE){var evalWindowDocument="";if (this.editorWindow){evalWindowDocument=this.editorWindow +".";
 } evalWindowDocument +=this.editorDocument;this.editor=eval(evalWindowDocument)[id];
 } else if (this.isNetscape){if (this.editorWindow){this.editor=eval(this.editorWindow)[id];
 } else{this.editor=window[id];} } else{this.editor=null;} } if ((typeof this.editor !="undefined") && (this.editor !=null)){
 if (this.isIE && this.browserVersion < 5.0){if (this.receivedEvent){isReady=(typeof this.editor.Application !="undefined");
 } else{isReady=false;} } else if (this.isNetscape && this.browserVersion >=6.0){
 isReady=(typeof this.editor.Application !="undefined");} else if (this.editorSetMethod){
 isReady=(eval('typeof this.editor.' + this.editorSetMethod +' != "undefined"'));
 } else if (this.editorGetMethod){isReady=(eval('typeof this.editor.' + this.editorGetMethod +' != "undefined"'));
 } else{isReady=true;} } else{isReady=false;} return isReady;}
function EktAssetEditor_writeValue(strValue,fnNotify){if (this.editorSetMethod){eval('this.editor.' + this.editorSetMethod +'()');
 } notifyObject(this,fnNotify);}
function EktAssetEditor_createNewAsset(){if (this.isReady()){}}
function EktAssetEditor_checkOut(){if (this.isReady()){return this.editor.CheckOut();
 }}
function EktAssetEditor_undoCheckOut(){if (this.isReady()){return this.editor.UndoCheckOut();
 }}
function EktAssetEditor_checkIn(sFileName){if (this.isReady()){return this.editor.CheckInTitle(sFileName);
 }}
function EktAssetEditor_publish(sFileName){if (this.isReady()){return this.editor.PublishTitle(sFileName);
 }}
function EktAssetEditor_publishAsType(sFileName,type){if (this.isReady()){return this.editor.PublishAsType(type);
 }}
function EktAssetEditor_checkInAsType(sFileName,type){if (this.isReady()){return this.editor.CheckInAsType(type);
 }}
function EktAssetEditor_saveAsType(sFileName,type){if (this.isReady()){return this.editor.SaveAsType(type);
 }}
function EktAssetEditor_saveToAssetServer(sFileName){if (this.isReady()){return this.editor.SaveToAssetServerTitle(sFileName);
 }}
function EktAssetEditor_restore(){if (this.isReady()){return this.editor.Restore();
 }}
function EktAssetEditor_viewAsset(){if (this.isReady()){return this.editor.ViewAsset();
 }}
function EktAssetEditor_workOffline(){if (this.isReady()){return this.editor.WorkOffline();
 }}
function EktAssetEditor_saveLocalCopy(){if (this.isReady()){return this.editor.SaveLocalCopy();
 }}
function EktAssetEditor_isInWorkOffline(strID){if (this.isReady()){return this.editor.IsInWorkOffline(strID);
 }}
function EktAssetEditor_cancelWorkOffline(strID){if (this.isReady()){return this.editor.CancelWorkOffline(strID);
 }}
function EktAssetEditor_requestProperties(){if (this.isReady()){return this.editor.RequestProperties();
 }}
function EktAssetPopup(){extendObject(this,commonPopup);this.url=EktAssetDefaults.popupUrl;
 this.windowName=EktAssetDefaults.popupWindowName;this.windowFeatures=EktAssetDefaults.popupWindowFeatures;
 this.query=EktAssetDefaults.popupQuery;this.open=EktAssetPopup_open;this.getInstance=EktAssetPopup_getInstance;
}
function EktAssetPopup_open(){if (this.url){var strUrl=this.url;if (this.elementName){
 strUrl +="?element=" + escape(this.elementName);if (this.elementWindow){strUrl +="&elementWindow=" + escape(this.elementWindow);
 } if (this.parametersName){strUrl +="&parameters=" + this.parametersName;} if (this.query){
 strUrl +="&" + this.query;} } this.objWindow=window.open(strUrl,this.windowName,this.windowFeatures);
 } else{this.objWindow=null;} return this.objWindow;}
function EktAssetPopup_getInstance(){var objInstance=null;if (this.isOpen() && this.objWindow.EktAsset){
 objInstance=this.objWindow.EktAsset.instances[0];} return objInstance;}
function EktAssetInstallPopup(){extendObject(this,commonPopup);this.isBlocked=false;
 this.url=EktAssetDefaults.installPopupUrl;this.windowName=EktAssetDefaults.installPopupWindowName;
 this.windowFeatures=EktAssetDefaults.installPopupWindowFeatures;this.query=EktAssetDefaults.installPopupQuery;
 this.open=EktAssetInstallPopup_open;}
function EktAssetInstallPopup_open(){this.isBlocked=false;if (this.url){var strUrl=this.url;
 if (this.query){strUrl +="?" + this.query;} this.objWindow=window.open(strUrl,this.windowName,this.windowFeatures);
 this.isBlocked=(null==this.objWindow);} else{this.objWindow=null;} return this.objWindow;
 }
function commonPopup(){this.objWindow=null;this.isOpen=commonPopup_isOpen;this.isClosedWindow=commonPopup_isClosedWindow;
 this.close=commonPopup_close;this.focus=commonPopup_focus;this.getWindow=commonPopup_getWindow;
}
function commonPopup_isOpen(){var bRet=false;try{bRet=(this.objWindow && !this.objWindow.closed);
 } catch (ex){bRet=false;} return bRet;}
function commonPopup_isClosedWindow(){try{return (this.objWindow && this.objWindow.closed);
 } catch (ex){return true;}}
function commonPopup_close(){if (this.isOpen()){try{this.objWindow.close();} catch (ex){
 } } this.objWindow=null;}
function commonPopup_focus(){if (this.isOpen()){this.objWindow.focus();}}
function commonPopup_getWindow(){if (this.isOpen()){return this.objWindow;} else{
 return null;}}
var EWEP_ONUNLOAD_PROMPT="prompt";var EWEP_ONUNLOAD_SAVE="save";var EWEP_ONUNLOAD_NOSAVE="nosave";
var g_EktAssetFactory_singleton=false;function EktAssetFactory(){if (g_EktAssetFactory_singleton){
 alert("Only one instance of EktAssetFactory may be created.");return;} g_EktAssetFactory_singleton=true;
 this.delayOnLoadRetry=100;this.timeLimitOnLoadRetry=3000;this.parameters=new EktAssetParameters;
 if (typeof cODC_VERSION !="undefined"){this.version=cODC_VERSION;} this.addInstanceType=EktAssetFactory_addInstanceType;
 this.refreshStatus=EktAssetFactory_refreshStatus;this.valid=EktAssetFactory_valid;
 this.validButton=EktAssetFactory_validButton;this.autoInstallExpected=EktAssetFactory_autoInstallExpected;
 this.instances=[];this.create=EktAssetFactory_create;this.popups=[];this.createButton=EktAssetFactory_createButton;
 this.edit=EktAssetFactory_edit;this.findPopup=EktAssetFactory_findPopup;this.createPopup=EktAssetFactory_createPopup;
 this.checkPopupsInterval=100;this.checkPopups=EktAssetFactory_checkPopups;this.defineParameterPropertyNames=EktAssetFactory_defineParameterPropertyNames;
 this.hookOnSubmit=EktAssetFactory_hookOnSubmit;this.load=EktAssetFactory_load;this.clear=EktAssetFactory_clear;
 this.isChanged=EktAssetFactory_isChanged;this.nextFormField=EktAssetFactory_nextFormField;
 this.searchFormElements=EktAssetFactory_searchFormElements;this.parseQuery=EktAssetUtil_parseQuery;
 this.resolvePath=EktAssetFactory_resolvePath;this.openDialog=EktAssetFactory_openDialog;
 this.autoInstallCookie=new EktAssetCookie("autoinstallunk");this.autoInstallRefresh=EktAssetFactory_autoInstallRefresh;
 this.autoInstallChecks=EktAssetFactory_autoInstallChecks;this.doInstall=EktAssetFactory_doInstall;
 this.instanceTypes=[];for (var i=0;i < g_dmsInstanceTypes.length;i++){this.addInstanceType(g_dmsInstanceTypes[i]);
 } this.selectedType=this.instanceTypes[this.instanceTypes.length-1].type;this.refreshStatus();
}
 EktAssetFactory.prototype=new ClassModel;function EktAssetFactory_addInstanceType(fnInstanceType){
 var objInstanceType=new fnInstanceType();if ("undefined"==typeof this.instanceTypes[objInstanceType.type]){
 this.instanceTypes[this.instanceTypes.length]=objInstanceType;} this.instanceTypes[objInstanceType.type]=objInstanceType;
 if (this.parameters){objInstanceType.refreshStatus(this.parameters);}}
function EktAssetFactory_refreshStatus(parameters){if (typeof parameters !="object" || (null==parameters)){
 parameters=this.parameters;} extendObject(this,PlatformInfo);if (parameters["preferredType"]){
 if (this.instanceTypes[parameters["preferredType"]]){EktAsset.selectedType=parameters["preferredType"];
 } } for (var i=0;i < this.instanceTypes.length;i++){this.instanceTypes[i].refreshStatus(parameters);
 } var objInstanceType=this.instanceTypes[this.selectedType];if (objInstanceType){
 this.isSupported=objInstanceType.isSupported;this.isAutoInstallSupported=objInstanceType.isAutoInstallSupported;
 this.isInstalled=objInstanceType.isInstalled;this.upgradeNeeded=objInstanceType.upgradeNeeded;
 this.versionInstalled=objInstanceType.versionInstalled;} else{this.isSupported=false;
 this.isAutoInstallSupported=false;this.isInstalled=false;this.upgradeNeeded=false;
 } this.status=(this.isSupported ? (this.isInstalled ? EWEP_STATUS_INSTALLED : EWEP_STATUS_NOTINSTALLED) : EWEP_STATUS_NOTSUPPORTED);
 return this.status;}
function EktAssetFactory_valid(){var bValid=(this.isSupported && (this.isInstalled || this.isAutoInstallSupported));
 var objInstanceType=this.instanceTypes[this.selectedType];if (bValid && objInstanceType){
 return objInstanceType.valid();} else{return bValid;}}
function EktAssetFactory_validButton(){return (this.isSupported);}
function EktAssetFactory_autoInstallExpected(){return (this.valid() && this.isAutoInstallSupported && (!this.isInstalled || this.upgradeNeeded));
}
function EktAssetFactory_autoInstallRefresh(){if (this.autoInstallCookie){this.autoInstallCookie.removeCookie();
 location.reload();location.href="#";}}
function EktAssetFactory_doInstall(){if (this.parameters.installPopup && this.parameters.installPopup.url){
 this.parameters.installPopup.open();if (!this.parameters.installPopup.isBlocked){
 if (this.autoInstallCookie){this.autoInstallCookie.setCookie(this.version);} setTimeout("EktAsset.autoInstallChecks()",this.checkPopupsInterval);
 } } else{if (ektMonarch){ektMonarch.autoInstallDone();} }}
function EktAssetFactory_autoInstallChecks(){var objInstallPopup=this.parameters.installPopup;
 if ( null !=objInstallPopup ){if (objInstallPopup.isClosedWindow()){objInstallPopup.close();
 if (ektMonarch){ektMonarch.autoInstallDone();} } else{setTimeout("EktAsset.autoInstallChecks()",this.checkPopupsInterval);
 } } else{if (ektMonarch){ektMonarch.autoInstallDone();} }}
function EktAssetFactory_create(name,width,height,parameters){if (typeof parameters !="object" || (null==parameters)){
 parameters=this.parameters;} this.defineParameterPropertyNames(parameters);if (this.autoInstallExpected()){
 this.refreshStatus(parameters);} this.initEvent("oncreate");this.event.name=name;
 this.event.width=width;this.event.height=height;this.event.parameters=parameters;
 if (this.raiseEvent("oncreate")==false){return null;} name=this.event.name;width=this.event.width;
 height=this.event.height;parameters=this.event.parameters;if (typeof parameters !="object" || (null==parameters)){
 parameters=this.parameters;} var objInstance=null;parameters.isPopup=false;parameters.linkToName="";
 parameters.linkToWindow="";var strPopupElementWindow="top.opener";if (top.opener && top.location.search){
 var args=EktAssetUtil.queryArgs;if (args["element"]){parameters.isPopup=true;if (args["elementWindow"]){
 strPopupElementWindow +="." + args["elementWindow"];} if (args["parameters"]){var objElem=findElement(args["parameters"],strPopupElementWindow);
 if (objElem && objElem["value"]){var sParameters=unescape(objElem.value);if (sParameters.length > 0){
 extendObject(parameters,new Function(sParameters));this.refreshStatus(parameters);
 } } } parameters.linkToName=args["element"];parameters.linkToWindow=strPopupElementWindow;
 } args=null;} if (!this.isNetscape60){parameters.editorDocumentLayer=findElementDocumentLayer(name,parameters.editorWindow);
 } var bShowAutoInstallMessage=false;if (this.autoInstallCookie){this.autoInstallCookie.evalDocument=parameters.getEditorDocument();
 this.autoInstallCookie.evalWindow=parameters.editorWindow;} var bExpectReload;bExpectReload=false;
 if (this.autoInstallExpected() && parameters.installPopup && parameters.installPopup.url){
 this.isAutoInstallSupported=false;if (this.upgradeNeeded){this.isInstalled=false;
 } bShowAutoInstallMessage=true;var bNeedAutoInstall=true;if (this.autoInstallCookie){
 bNeedAutoInstall=(this.version !=this.autoInstallCookie.getCookie());} if (bNeedAutoInstall){
 if (ektMonarch){this.parameters=parameters;ektMonarch.requestAutoInstall(EktAsset);
 } bExpectReload=true;} } else if (this.isAutoInstallSupported && parameters.installPopup){
 if (this.autoInstallCookie){this.autoInstallCookie.removeCookie();} } var objInstanceType=null;
 var iPreferredType=0;var maxPreference=1;for (var i=0;i < this.instanceTypes.length;
 i++){objInstanceType=this.instanceTypes[i];if (objInstanceType){if (objInstanceType.type==this.selectedType){
 objInstanceType.isSupported=objInstanceType.isSupported && this.isSupported;objInstanceType.isAutoInstallSupported=objInstanceType.isAutoInstallSupported && this.isAutoInstallSupported;
 objInstanceType.isInstalled=objInstanceType.isInstalled && this.isInstalled;objInstanceType.upgradeNeeded=objInstanceType.upgradeNeeded && this.upgradeNeeded;
 } if (objInstanceType.valid()){var preference=objInstanceType.currentPreference(width,height,parameters);
 if (objInstanceType.type==parameters["preferredType"]){maxPreference=1000;iPreferredType=i;
 break;} else if (preference >=maxPreference){maxPreference=preference;iPreferredType=i;
 } } } } objInstanceType=this.instanceTypes[iPreferredType];objInstanceType.isSupported=objInstanceType.isSupported && this.isSupported;
 objInstanceType.isAutoInstallSupported=objInstanceType.isAutoInstallSupported && this.isAutoInstallSupported;
 objInstanceType.isInstalled=objInstanceType.isInstalled && this.isInstalled;objInstanceType.upgradeNeeded=objInstanceType.upgradeNeeded && this.upgradeNeeded;
 if (objInstanceType.upgradeNeeded){objInstanceType.isInstalled=false;} if (iPreferredType >=0){
 objInstanceType=this.instanceTypes[iPreferredType];if (false==bExpectReload){if (!objInstanceType.isInstalled && this.isNetscape){
 if (parameters.installPopup.isBlocked && EktAssetMessages.clientInstallSP2Message){
 conditional_write(EktAssetMessages.clientInstallSP2Message,objInstance,parameters);
 } else if (EktAssetMessages.clientInstallMessage){conditional_write(EktAssetMessages.clientInstallMessage,objInstance,parameters);
 } } else{objInstance=objInstanceType.create(name,width,height,parameters);} } if (1==maxPreference){
 objInstanceType=this.instanceTypes["activex"];if (objInstanceType){if (objInstanceType.isSupported && !objInstanceType.isInstalled){
 if (EktAssetMessages.clientInstallMessage){} } } if (bShowAutoInstallMessage){if (EktAssetMessages.clientAutoInstallMessage){
 } } } } if (!objInstance){return null;} if (this.instances.length==0){this.instances=new Array();
 } this.instances[this.instances.length]=objInstance;this.instances[name]=objInstance;
 if (!window["EktAssetUnloadHandled"]){window.EktAssetUnloadHandled=true;} if (typeof this.actionOnUnload=="undefined"){
 this.actionOnUnload=EWEP_ONUNLOAD_NOSAVE;} if (!window["EktAssetLoadHandled"]){window.EktAssetLoadHandled=true;
 window.onload=this.subclassEvent(window.onload,'EktAsset.load()');} if (objInstance){
 objInstance.totalDelayOnLoadRetry=0;} return objInstance;}
function EktAssetFactory_createButton(buttonName,elementName,parameters){var oPopup=null;
 this.initEvent("oncreatebutton");this.event.buttonName=buttonName;this.event.elementName=elementName;
 this.event.parameters=parameters;if (this.raiseEvent("oncreatebutton")==false){return;
 } buttonName=this.event.buttonName;elementName=this.event.elementName;parameters=this.event.parameters;
 if (this.validButton()){if (typeof parameters !="object" || (null==parameters)){
 parameters=this.parameters;} if (!this.isNetscape60){parameters.editorDocumentLayer=findElementDocumentLayer(elementName,parameters.editorWindow);
 } this.defineParameterPropertyNames(parameters);var aryNames=findFormAndElementName(elementName);
 var name=aryNames[0] + aryNames[1];var i=this.popups.length;oPopup=this.createPopup(parameters.popup,elementName,parameters.editorWindow,"dmsParameters" + i);
 oPopup.html="";if (!aryNames[0]){if (EktAssetMessages.elementNotFoundMessage){conditional_write(EktAssetMessages.elementNotFoundMessage + elementName,null,parameters);
 } } conditional_write('<input type="hidden" name="' + oPopup.parametersName +'" value="' + escape(parameters.reconstructor()) +'">',oPopup,parameters);
 if (buttonName && parameters.buttonTag && parameters.buttonTag.valid()){var sButtonHtml=parameters.buttonTag.createHTML(buttonName,elementName);
 conditional_write(sButtonHtml,oPopup,parameters);} } return oPopup;}
function EktAssetFactory_edit(elementName){this.initEvent("onbeforeedit");this.event.elementName=elementName;
 if (this.raiseEvent("onbeforeedit")==false){return;} elementName=this.event.elementName;
 var oPopup=this.popups[elementName];if (!oPopup){oPopup=this.createPopup(this.parameters.popup,elementName,this.parameters.editorWindow);
 } oPopup.changed=false;oPopup.open();setTimeout("EktAsset.checkPopups()",EktAsset.checkPopupsInterval);
}
function EktAssetFactory_findPopup(elementName){var oPopup=null;for (var i=0;i < this.popups.length;
 i++){if (this.popups[i].elementName==elementName){oPopup=this.popups[i];break;} }
 return oPopup;}
function EktAssetFactory_createPopup(oPopupPrototype,elementName,elementWindow,parametersName){
 var oPopup=null;if (oPopupPrototype){oPopup=cloneObject(oPopupPrototype);} else{
 oPopup=new EktAssetPopup;} if (elementName){oPopup.elementName=elementName;} if (elementWindow){
 oPopup.elementWindow=elementWindow;} if (parametersName){oPopup.parametersName=parametersName;
 } if (this.popups.length==0){this.popups=new Array();} this.popups[this.popups.length]=oPopup;
 if (elementName){this.popups[elementName]=oPopup;} return oPopup;}
function EktAssetFactory_checkPopups(){var objPopup=null;var numOpenPopups=0;for (var i=0;
 i < this.popups.length;i++){objPopup=this.popups[i];if (objPopup.isOpen()){numOpenPopups++;
 } else if (objPopup.isClosedWindow()){this.initEvent("onedit");this.event.elementName=this.popups[i].elementName;
 this.event.popup=this.popups[i];this.raiseEvent("onedit");objPopup.close();} } objPopup=null;
 if (numOpenPopups > 0){setTimeout("EktAsset.checkPopups()",EktAsset.checkPopupsInterval);
 }}
function EktAssetFactory_defineParameterPropertyNames(parameters){parameters.definePropertyName("preferredType");
 for (var iType=0;iType < this.instanceTypes.length;iType++){var aryParameterPropertyNames=this.instanceTypes[iType].parameterPropertyNames;
 for (var iName=0;iName < aryParameterPropertyNames.length;iName++){parameters.definePropertyName(aryParameterPropertyNames[iName]);
 } }}
function EktAssetFactory_resolvePath(strURL){return this.parameters.path + strURL;
}
function EktAssetFactory_openDialog(editorName,fileName,query,windowName,windowFeatures){
 var strUrl=fileName +"";if (strUrl.indexOf("?") < 0){strUrl +="?";} else{strUrl +="&";
 } strUrl +="editorName=" + escape(editorName) +"&editorname=" + escape(editorName);
 if (query){strUrl +="&" + query;} var oWin=window.open(strUrl,windowName,windowFeatures);
 if (null==oWin && EktAssetMessages.popupBlockedMessage){alert(EktAssetMessages.popupBlockedMessage);
 } return oWin;}
function EktAssetFactory_isChanged(){for (var i=0;i < this.instances.length;i++){
 if (this.instances[i].isChanged()){return true;} } return false;}
function EktAssetFactory_hookOnSubmit(objForm){if (!objForm || typeof objForm !="object"){
 return;} var bHook=false;if (objForm.onsubmit){bHook=true;var objHook=new ClassModel();
 objHook.defineProperty("fnOldOnSubmit",objForm.onsubmit);} var sCode="";if (bHook){
 sCode +="extendObject(this, new Function(unescape('" + escape(objHook.reconstructor()) +"')));\n";
 } sCode +="var bReturned = false;\n";sCode +="var bResult = false;\n";if (bHook){
 sCode +="if (bResult || 'undefined' == typeof bResult) bResult = this.fnOldOnSubmit();\n";
 } sCode +="if (bResult && bReturned) {\n";sCode +='  if (("function" == typeof this.submit) || (("object" == typeof this.submit) && ("undefined" == typeof this.submit.value))) { this.submit() } \n';
 sCode +='  else {\n';sCode +='    var sMsg = "Asynchronous EktAsset methods require the form.submit method.\\n";\n';
 sCode +='	  sMsg += "A form element named \\\'submit\\\' already exists that replaced the form.submit method.\\n";\n';
 sCode +='	  sMsg += "\\nPlease change the name of the \\\'submit\\\' element to another name.\\n";\n';
 sCode +='	  if (this.submit.outerHTML) {\n';sCode +='	    sMsg += "The \\\'submit\\\' element is defined as: " + this.submit.outerHTML + "\\n";\n';
 sCode +='	  }\n';sCode +='	  sMsg += "\\nThe form cannot be submitted asynchronously until this is fixed.\\n";\n';
 sCode +='	  alert(sMsg);\n';sCode +='  }\n';sCode +="}\n";sCode +="return bResult; });\n";
 sCode +="bReturned = true;\n";sCode +="return bResult;\n";var fnNewOnSubmit=new Function(sCode);
 objForm.onsubmit=fnNewOnSubmit;return fnNewOnSubmit;}
function EktAssetFactory_load(instanceId,bLoad){if (3 <=arguments.length){alert("Incorrect number of arguments for EktAsset.load method.");
 return;} var bComplete=false;var idType=typeof instanceId;if ("undefined"==idType){
 setTimeout('EktAsset.load(true)',1);return;} else if ("boolean"==idType){this.initEvent("onbeforeload");
 if (this.raiseEvent("onbeforeload")==false){return;} if (this.instances.length > 0){
 this.status=EWEP_STATUS_LOADING;for (var i=0;i < this.instances.length;i++){var objInstance=this.instances[i];
 objInstance.totalDelayOnLoadRetry=0;if (instanceId || objInstance.isReady()){this.load(i);
 } else{objInstance.loadWhenReady=true;} } } else{bComplete=true;} } else{var objInstance=null;
 if ("number"==idType){var i=instanceId;if (0 <=i && i < this.instances.length){objInstance=this.instances[i];
 } } else if ("string"==idType){objInstance=this.instances[instanceId];} else if ("object"==idType){
 objInstance=instanceId;} if (objInstance){if (this.isNetscape60){var myForm=findElementForm(objInstance.name,objInstance.evalWindow);
 if (myForm && !myForm["EktAssetSubmitHandled"]){myForm.EktAssetSubmitHandled=true;
 if (!objInstance.asyncActive){myForm.onsubmit=this.subclassEvent(myForm.onsubmit,'return EktAsset.save()');
 } else{this.hookOnSubmit(myForm);} } } objInstance.factoryTimedout=false;objInstance.factoryLoaded=false;
 if (EktAssetMessages.loading){window.status=EktAssetMessages.loading +" " + objInstance.name +"...";
 } if (objInstance.status !=EWEP_STATUS_LOADING && (false !=bLoad)){objInstance.load();
 } if (EWEP_STATUS_LOADED==objInstance.status){this[objInstance.name]=objInstance.editor;
 objInstance.factoryLoaded=true;objInstance.loadWhenReady=false;} else if (EWEP_STATUS_LOADING==objInstance.status){
 setTimeout('EktAsset.load("' + objInstance.name +'", false)',this.delayOnLoadRetry);
 } else if (objInstance.loadWhenReady){objInstance.factoryTimedout=true;objInstance.loadWhenReady=false;
 } else{if (this.timeLimitOnLoadRetry==-1 || (objInstance.totalDelayOnLoadRetry < this.timeLimitOnLoadRetry)){
 if (this.timeLimitOnLoadRetry !=-1){objInstance.totalDelayOnLoadRetry +=this.delayOnLoadRetry;
 } setTimeout('EktAsset.load("' + objInstance.name +'")',this.delayOnLoadRetry);}
 else{if ((this.isIE && this.browserVersion < 5.0) || (this.isNetscape && this.browserVersion < 5.0) || ("java"==objInstance.type)){
 objInstance.loadWhenReady=true;} else{objInstance.factoryTimedout=true;} } } } else{
 this.initEvent("onerror");this.event.source="load";this.event.name=instanceId +"";
 this.event.instance=null;this.raiseEvent("onerror");} var objInstance=null;var numLoaded=0;
 var iInstanceTimedout=-1;var iInstanceToLoad=-1;for (var i=0;i < this.instances.length;
 i++){objInstance=this.instances[i];if (objInstance.factoryLoaded){numLoaded++;} else if (!objInstance.factoryTimedout){
 if (-1==iInstanceToLoad){iInstanceToLoad=i;} } else{if (-1==iInstanceTimedout){iInstanceTimedout=i;
 } } } objInstance=null;var strStatus=window.status;if (0 <=iInstanceToLoad && iInstanceToLoad < this.instances.length){
 objInstance=this.instances[iInstanceToLoad];if (EktAssetMessages.waitingToLoad){
 strStatus=EktAssetMessages.waitingToLoad +" " + objInstance.name +"...";} bComplete=false;
 objInstance=null;} else if (0 <=iInstanceTimedout && iInstanceTimedout < this.instances.length){
 objInstance=this.instances[iInstanceTimedout];if (EktAssetMessages.errorLoading){
 strStatus=EktAssetMessages.errorLoading +" " + objInstance.name;} this.status=objInstance.status;
 this.initEvent("onerror");this.event.source="load";this.event.name=objInstance.name;
 this.event.instance=objInstance;if (this.raiseEvent("onerror") !=false){if (0==numLoaded){
 if (this.isActiveXSupported && EktAssetMessages.installPrompt && EktAssetDefaults.clientInstall){
 if (confirm(EktAssetMessages.installPrompt)){window.open(EktAssetDefaults.clientInstall,"","");
 } } } } bComplete=true;objInstance=null;} else{if (EktAssetMessages.doneLoading){
 strStatus=EktAssetMessages.doneLoading;} this.status=EWEP_STATUS_LOADED;bComplete=true;
 } if (strStatus !=window.status){window.status=strStatus;} } if (bComplete){this.initEvent("onload");
 setTimeout('EktAsset.raiseEvent("onload")',1);}}
function EktAssetFactory_clear(){if (this.instanceTypes.length > 0){for (var i=this.instanceTypes.length - 1;
 i >=0;i--){this.instanceTypes[i].clear();} } if (this.instances.length > 0){for (var i=this.instances.length - 1;
 i >=0;i--){var name=this.instances[i].name;this[name]=null;this.instances[i].clear();
 this.instances[name]=null;this.instances[i]=null;this.instances.length--;} this.instances=[];
 } if (this.popups.length > 0){for (var i=this.popups.length - 1;i >=0;i--){var elementName=this.popups[i].elementName;
 this.popups[i].close();this.popups[i]=null;if (elementName){this.popups[elementName]=null;
 } this.popups.length--;} this.popups=new Array();} }
function EktAssetFactory_nextFormField(objInstance){var objField=this.searchFormElements(objInstance,false);
 if (!objField){objField=this.searchFormElements(objInstance,true);} return objField;
}
function EktAssetFactory_searchFormElements(objInstance,bSearchForNextField){for (var iForm=0;
 iForm < document.forms.length;iForm++){for (var iElem=0;iElem < document.forms[iForm].elements.length;
 iElem++){var objElem=document.forms[iForm].elements[iElem];if (objInstance.isInstance(objElem)){
 bSearchForNextField=true;} else if (bSearchForNextField){if (canElementReceiveFocus(objElem)){
 return objElem;} else{for (var i=0;i < this.instances[i].length;i++){if (this.instances[i].isInstance(objElem)){
 return this.instances[i];} } } } } } return null;}
function canElementReceiveFocus(objElem){if (!objElem) return false;var strType=objElem.type +"";
 if ("hidden"==strType) return false;var strDisabled=objElem.disabled +"";if ("true"==strDisabled) return false;
 var strIsTextEdit=objElem.isTextEdit +"";if ("false"==strIsTextEdit) return false;
 var strFocusMethod=typeof objElem.focus;if ("function" !=strFocusMethod &&"object" !=strFocusMethod) return false;
 return true;}
var EktAsset=new EktAssetFactory;