if(typeof btDomLoaded!='function'){if(typeof DOMAssistant==='undefined'){DOMAssistant={};} DOMAssistant.DOMLoad=function(){var DOMLoaded=false,DOMLoadTimer=null,functionsToCall=[],addedStrings={},errorHandling=null,execFunctions=function(){for(var i=0,il=functionsToCall.length;i<\/script>"); document.getElementById("ieScriptLoad").onreadystatechange = function() { if (this.readyState === "complete") { DOMHasLoaded(); } }; @end @*/if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMHasLoaded,false);} if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){DOMLoadTimer=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){DOMHasLoaded();clearInterval(DOMLoadTimer);}},10);} if(!window.onload){window.onload=DOMHasLoaded;} return{DOMReady:function(){for(var i=0,il=arguments.length,funcRef;i';document.body.insertAdjacentHTML('beforeEnd',WebBrowser);WebBrowser1.ExecWB(6,2);}} function trim(s) {if(typeof s!="string"){return s;} else {while((s.substring(0,1)==' ')||(s.substring(0,1)=='\n')||(s.substring(0,1)=='\r')){s=s.substring(1,s.length);} while((s.substring(s.length-1,s.length)==' ')||(s.substring(s.length-1,s.length)=='\n')||(s.substring(s.length-1,s.length)=='\r')){s=s.substring(0,s.length-1);} return s;}} function addslashes(str){str=str.replace(/\'/g,'\\\'');str=str.replace(/\"/g,'\\"');str=str.replace(/\\/g,'\\\\');str=str.replace(/\0/g,'\\0');return str;} closetime=0;function Start(url,width,height){windowprops="left=50,top=50,width="+width+",height="+height;preview=window.open(url,"preview",windowprops);if(closetime)setTimeout("preview.close();",closetime*1000);} function doPopup(url,width,height,delay){url1=url;width1=width;height1=height;timer=setTimeout("Start(url1, width1, height1)",delay*1000);} function getDaysExpiry(noDays){var today=new Date();var expr=new Date(today.getTime()+noDays*24*60*60*1000);return expr.toGMTString();} function getHoursExpiry(noHours){var today=new Date();var expr=new Date(today.getTime()+noHours*60*60*1000);return expr.toGMTString();} function wwwPathToDomainName(www_path){var pattern1=/\bhttp:\/\//ig;var pattern2=/\bwww\./ig;var pattern3=/\bmembers\./ig;siteDomainA=www_path.replace(pattern1,"");siteDomainB=siteDomainA.replace(pattern2,"");siteDomain=siteDomainB.replace(pattern2,"");return siteDomain;} function readPopupCookie(siteID,url,width,height,delay,num_hours,www_path){var siteDomain=wwwPathToDomainName(www_path);var smShownPop='smShownPop'+siteID;var smSubscribed='smSubscribed'+siteID;var smShownPopC=document.cookie.indexOf(smShownPop);var smSubscribedC=document.cookie.indexOf(smSubscribed);if(smShownPopC==-1&&smSubscribedC==-1){doPopup(url,width,height,delay);document.cookie=smShownPop+"=shown; path=/; domain="+siteDomain+"; expires="+getHoursExpiry(num_hours);}} function subscribed(siteID,num_days,www_path){var siteDomain=wwwPathToDomainName(www_path);var smSubscribed='smSubscribed'+siteID;document.cookie=smSubscribed+"=subscribed; path=/; domain="+siteDomain+"; expires="+getDaysExpiry(num_days);} function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);} if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i=0)} function is_object(v){return(typeof(v)=="object");} function urlencode(str){str=escape(str);str=str.replace('+','%2B');str=str.replace('%20','+');str=str.replace('*','%2A');str=str.replace('/','%2F');str=str.replace('@','%40');str=str.replace('&','%26');str=str.replace('=','%3D');return str;} function urldecode(str){str=str.replace('+',' ');str=unescape(str);return str;} function http_build_query(formdata,numeric_prefix,key){var numeric_prefix=(typeof(numeric_prefix)=="undefined")?null:numeric_prefix;var key=(typeof(key)=="undefined")?null:key;var res=new Array();for(var k in formdata){var v=formdata[k];if(typeof(v)=='function')continue;var tmp_key=encodeURI(is_int(k)?new Number(numeric_prefix)+new Number(k):k);if(key)tmp_key=key+'['+tmp_key+']';add_to_res=((is_array(v)||is_object(v))?http_build_query(v,key,tmp_key):tmp_key+"="+escape(v));res.push(add_to_res);} separator='&';return res.join(separator);} function get_checked_radioObj_value(radioObj){if(!radioObj) return"";var radioLength=radioObj.length;if(radioLength==undefined) if(radioObj.checked) return radioObj.value;else return"";for(var i=0;i0)?toFixedFix(n,prec):toFixedFix(Math.round(n),prec);var abs=toFixedFix(Math.abs(n),prec);var _,i;if(abs>=1000){_=abs.split(/\D/);i=_[0].length%3||3;_[0]=s.slice(0,i+(n<0))+ _[0].slice(i).replace(/(\d{3})/g,sep+'$1');s=_.join(dec);}else{s=s.replace('.',dec);} var decPos=s.indexOf(dec);if(prec>=1&&decPos!==-1&&(s.length-decPos-1)=1&&decPos===-1){s+=dec+new Array(prec).join(0)+'0';} return s;};TOOLBOX=(typeof TOOLBOX!=='undefined')?TOOLBOX:{};TOOLBOX.use=function() {var args=Array.prototype.slice.call(arguments);var resources=args.slice(0,args.length-1) var callback=args[args.length-1];var loaded=0;var TOLOAD=resources.length;var ERROR={callback:'The last argument must be a callabck function to be invoked once the resources listed have been loaded',unavailableName:'The resource name has not been registered with this function',noNameOrSource:'Please include either a name or a source property with your resource object',noNamewithVersion:'Please include a name of the resource with your version number',dependenciesNotArray:'The dependencies property must be an array of source strings',includesNotArray:'The includes property must be an array of source strings'};var MAP={'jquery':{defaultVersion:'1.9.1',version:{'1.6.2':{src:['/baseapp/scripts/jquery/1.6.2/jquery.min.js'],dependencies:[],includes:[]},'1.9.1':{src:['/baseapp/scripts/libs/jquery/1.9.1/jquery.min.js'],dependencies:[],includes:[]}},},'bootstrap':{defaultVersion:'3.3.5',version:{'3.3.5':{src:['baseapp/scripts/libs/bootstrap/js/bootstrap.js'],dependencies:['/baseapp/scripts/libs/jquery/1.9.1/jquery.min.js'],includes:['/baseapp/scripts/libs/bootstrap/css/bootstrap.css']}}}} for(var i=0,l=resources.length;i=internalResources[type]['toLoad']){switch(type){case'dependencies':loadType('src');break;case'src':loadType('includes');break;case'includes':updateResourceLoaded();break;}}} function getExtension(src){return src.match(/js$/)?'js':'css';}} function updateResourceLoaded(){loaded+=1;if(loaded===TOLOAD){if(typeof callback!=='function'){throw new Error(ERROR.callback);} else{callback();}}} function typeOf(value){var s=typeof value;if(s==='object'){if(value){if(value instanceof Array){s='array';}}else{s='null';}} return s;}};;var UFO={requiredAttrParams:["movie","width","height","majorversion","build"],optionalAttrEmb:["name","swliveconnect","align"],optionalAttrObj:["id","align"],optionalAttrParams:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",is_w3cdom:(typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined")),is_ie:(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1),is_safari:(navigator.userAgent.toLowerCase().indexOf("safari")!=-1),is_win:(navigator.userAgent.toLowerCase().indexOf("win")!=-1),is_mac:(navigator.userAgent.toLowerCase().indexOf("mac")!=-1),is_XML:(typeof document.contentType!="undefined"&&document.contentType.indexOf("xml")>-1),foList:[],create:function(FO,id){if(!UFO.is_w3cdom)return;UFO.foList[id]=UFO.updateFO(FO);UFO.createStyleRule("#"+id,"visibility:hidden;");UFO.domLoad(id);},updateFO:function(FO){if(typeof FO.xi!="undefined"&&FO.xi=="true"){if(typeof FO.ximovie=="undefined")FO.ximovie=UFO.ximovie;if(typeof FO.xiwidth=="undefined")FO.xiwidth=UFO.xiwidth;if(typeof FO.xiheight=="undefined")FO.xiheight=UFO.xiheight;} else{FO.xi=false;} FO.domLoaded=false;return FO;},domLoad:function(id){var timer=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(id)!=null){UFO.main(id);clearInterval(timer);}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(id);clearInterval(timer);},null);}},main:function(id){var FO=UFO.foList[id];if(FO.domLoaded)return;UFO.foList[id].domLoaded=true;document.getElementById(id).style.visibility="hidden";if(UFO.hasRequiredAttrParams(id)){if(UFO.hasFlashVersion(FO.majorversion,FO.build)){UFO.writeFlashObject(id);} else if(FO.xi&&UFO.hasFlashVersion("6","65")){UFO.createModalDialog(id);}} document.getElementById(id).style.visibility="visible";},createStyleRule:function(selector,declaration){if(UFO.is_ie&&UFO.is_mac)return;var head=document.getElementsByTagName("head")[0];var style=UFO.createElement("style");if(!(UFO.is_ie&&UFO.is_win)){var styleRule=document.createTextNode(selector+" {"+declaration+"}");style.appendChild(styleRule);} style.setAttribute("type","text/css");style.setAttribute("media","screen");head.appendChild(style);if(UFO.is_safari&&UFO.is_XML){head.innerHTML+="";} if(UFO.is_ie&&UFO.is_win&&document.styleSheets&&document.styleSheets.length>0){var lastStyle=document.styleSheets[document.styleSheets.length-1];if(typeof lastStyle.addRule=="object"){lastStyle.addRule(selector,declaration);}}},createElement:function(el){return(typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",el):document.createElement(el);},hasRequiredAttrParams:function(id){var FO=UFO.foList[id];for(var i=0;i=reqVersion?true:false);},getFlashVersion:function(){if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var desc=navigator.plugins["Shockwave Flash"].description;if(desc){var versionStr=desc.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var major=parseInt(versionStr.replace(/^(.*)\..*$/,"$1"));var build=parseInt(versionStr.replace(/^.*r(.*)$/,"$1"));var flashVersion=parseFloat(major+"."+build);}} else if(window.ActiveXObject){try{var flashObj=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");var desc=flashObj.GetVariable("$version");if(desc){var versionArr=desc.replace(/^\S+\s+(.*)$/,"$1").split(",");var major=parseInt(versionArr[0]);var build=parseInt(versionArr[2]);var flashVersion=parseFloat(major+"."+build);}} catch(e){}} if(typeof flashVersion!="undefined"){return(flashVersion);}else{return 0;}},writeFlashObject:function(id){var el=document.getElementById(id);if(typeof el.innerHTML=="undefined")return;var FO=UFO.foList[id];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){try{el.innerHTML="ufo-test";} catch(e){} if(el.innerHTML!="ufo-test"){while(el.hasChildNodes()){el.removeChild(el.firstChild);} var embed=UFO.createElement("embed");embed.setAttribute("type","application/x-shockwave-flash");embed.setAttribute("pluginspage","http://www.macromedia.com/go/getflashplayer");embed.setAttribute("src",FO.movie);embed.setAttribute("width",FO.width);embed.setAttribute("height",FO.height);for(var i=0;i';}} else{var objAttrHTML="";for(var i=0;i';}} var protocol=(window.location.protocol=="https:"?"https:":"http:");el.innerHTML=''+objParamHTML+'';}},createModalDialog:function(id){var FO=UFO.foList[id];UFO.createStyleRule("html","height:100%; overflow:hidden;");UFO.createStyleRule("body","height:100%; overflow:hidden;");UFO.createStyleRule("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#333; filter:alpha(opacity:50); -khtml-opacity:0.5; -moz-opacity:0.5; opacity:0.5;");UFO.createStyleRule("#xi-mod","position:absolute; left:50%; top:50%; margin-left: -"+(parseInt(FO.xiwidth)/2)+"px; margin-top: -"+(parseInt(FO.xiheight)/2)+"px; width:"+FO.xiwidth+"px; height:"+FO.xiheight+"px;");var body=document.getElementsByTagName("body")[0];var container=UFO.createElement("div");container.setAttribute("id","xi-con");var dialog=UFO.createElement("div");dialog.setAttribute("id","xi-mod");container.appendChild(dialog);body.appendChild(container);var MMredirectURL=window.location;document.title=document.title.slice(0,47)+" - Flash Player Installation";var MMdoctitle=document.title;if(UFO.is_ie&&UFO.is_win){var xiFO={movie:FO.ximovie,width:FO.xiwidth,height:FO.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+MMredirectURL+"&MMplayerType=ActiveX&MMdoctitle="+MMdoctitle};} else{var xiFO={movie:FO.ximovie,width:FO.xiwidth,height:FO.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+MMredirectURL+"&MMplayerType=PlugIn&MMdoctitle="+MMdoctitle};} UFO.foList["xi-mod"]=xiFO;UFO.writeFlashObject("xi-mod");},expressInstallCallback:function(){var body=document.getElementsByTagName("body")[0];var dialog=document.getElementById("xi-con");body.removeChild(dialog);UFO.createStyleRule("body","height:auto; overflow:auto;");UFO.createStyleRule("html","height:auto; overflow:auto;");}};ufo_counter=0;function embedFlash(m,w,h,wm,sc,fv){ufo_counter++;if((typeof(m)=="object")){if(typeof(m.build)=="undefined")m.build=(m.majorversion=="undefined")?"40":"0";if(typeof(m.majorversion)=="undefined")m.majorversion="6";if(typeof(m.movie_v8)!="undefined"){if(UFO.getFlashVersion()>8) m.movie=m.movie_v8;}} m.build=1;var undefined_text=(typeof(m)=="object"&&typeof(m.undefined_text)!="undefined")?m.undefined_text:"
";var id='flashDiv'+ufo_counter;document.write("
"+undefined_text+"
");var FO=(typeof(m)=="object")?m:{movie:m,width:w,height:h,majorversion:"6",build:"40",flashvars:fv,wmode:wm,scale:sc};UFO.create(FO,id);} function embedFlashInContainer(id,m,w,h,wm,sc,fv){if((typeof(m)=="object")){if(typeof(m.build)=="undefined")m.build=(m.majorversion=="undefined")?"40":"0";if(typeof(m.majorversion)=="undefined")m.majorversion="6";if(typeof(m.movie_v8)!="undefined"){if(UFO.getFlashVersion()>8) m.movie=m.movie_v8;}} m.build=1;var FO=(typeof(m)=="object")?m:{movie:m,width:w,height:h,majorversion:"6",build:"40",flashvars:fv,wmode:wm,scale:sc};UFO.create(FO,id);}