NGCMSLoader=new Object();NGCMSLoader.init=function(a,b){NGCMSLoader._vid=a;setTimeout((b?NGCMSLoader.start:NGCMSLoader.showMarker),0)};NGCMSLoader.start=function(){NGCMSLoader.incJS(["/js/ngcore.js","/js/ngdom.js","/ngcms/ngcms.js","/ngcms/fckeditor/fckeditor.js"],NGCMSLoader._start)};NGCMSLoader._start=function(){if(NGCMS){NGCMS.open(NGCMSLoader._vid)}NGCMSLoader.hideMarker()};NGCMSLoader.incJS=function(a,e){if(typeof a=="object"&&String(a.constructor)==String(Array)){if(a.length==0){e();return true}var b=a.splice(0,1)[0];return NGCMSLoader.incJS(b,function(){NGCMSLoader.incJS(a,e)})}if(NGCMSLoader.hasJS(a)){e();return true}var c=document.getElementsByTagName("head");if(c.length==0){c[0]=document.body.parentNode.appendChild(document.createElement("head"))}var d=document.createElement("script");d.type="text/javascript";d.src=a;if(e){if(d.addEventListener){d.addEventListener("load",e,false)}else{if(d.attachEvent){d.attachEvent("onreadystatechange",function(){if(d.readyState=="complete"||d.readyState=="loaded"){e()}})}}}c[0].appendChild(d);return true};NGCMSLoader.hasJS=function(a){var c=document.getElementsByTagName("script");for(var b=0;b<c.length;b++){if(c[b].getAttribute("type")=="text/javascript"&&c[b].getAttribute("src")==a){return true}}return false};NGCMSLoader.showMarker=function(){var a=document.createElement("div");a.innerHTML='<div class="ngmcs-marker" style="position:absolute; width:50px; height:50px; top:2px; right:17px; background:transparent url(/ngcms/img/marker.png) no-repeat top right; z-index:1000; cursor:pointer;" onclick="NGCMSLoader.start();" title="Edit this page" alt="Edit this page"></div>';document.body.appendChild(NGCMSLoader._marker=a.firstChild)};NGCMSLoader.hideMarker=function(){if(NGCMSLoader._marker&&NGCMSLoader._marker.parentNode){NGCMSLoader._marker.parentNode.removeChild(NGCMSLoader._marker)}delete NGCMSLoader._marker};NGCMSGA=new Object();NGCMSGA._profiles=new Object();NGCMSGA._GA=null;NGCMSGA._varcookiekey="__utmv";NGCMSGA._varcookie=null;NGCMSGA._vartimers=new Object();NGCMSGA.getGA=function(){return NGCMSGA._GA};NGCMSGA.includeGA=function(b){if(NGCMSGA._GA===null){var a=function(){NGCMSGA._GA=(typeof _gat!="undefined"?_gat:false);if(NGCMSGA._GA){b()}};if(/(\(|;) *MSIE 6\.0 *(;|\))/.exec(navigator.userAgent)){NGCMSLoader.incJS("/js/ga.js.php",a)}else{NGCMSLoader.incJS((("https:"==document.location.protocol)?"https://ssl.":"http://www.")+"google-analytics.com/ga.js",a)}}return NGCMSGA._GA};NGCMSGA.getProfile=function(c){if(typeof NGCMSGA._profiles[c]=="undefined"){NGCMSGA._profiles[c]=false;var b=NGCMSGA.getGA();if(b){try{NGCMSGA._profiles[c]=b._getTracker(c)}catch(a){}}}return NGCMSGA._profiles[c]};NGCMSGA.trackPageView=function(a){for(var d,b=0;b<arguments.length;b++){if(d=NGCMSGA.getProfile(arguments[b])){try{d._trackPageview()}catch(c){}}}};NGCMSGA.trackPageViewURL=function(a){for(var d,b=1;b<arguments.length;b++){if(d=NGCMSGA.getProfile(arguments[b])){try{d._trackPageview(a)}catch(c){}}}};NGCMSGA.getCookie=function(b){var a,c=new RegExp("(^|;)"+escape(b)+"=([^;]*)(;|$)");if(a=c.exec(document.cookie+"")){return unescape(a[2])}return""};NGCMSGA.getVars=function(){if(NGCMSGA._varcookie===null){NGCMSGA._varcookie=NGCMSGA.getCookie(NGCMSGA._varcookiekey)}var c=new Object();var b=NGCMSGA._varcookie.split("&");for(var e,d=0;d<b.length;d++){e=b[d].split("=");if(e.length==2){c[unescape(e[0])]=unescape(e[1])}}return c};NGCMSGA.setVar=function(d,f,h){var g=NGCMSGA.getProfile(d);if(g){var c=NGCMSGA.getVars();if(typeof c[f]!="undefined"&&c[f]==h){return c[f]}if(h===null){delete c[f]}else{c[f]=h}var b=[];for(var e in c){if(typeof c[e]=="string"||typeof c[e]=="number"){b[b.length]=escape(e)+"="+escape(c[e])}}if(NGCMSGA._varcookie!=b.join("&")){NGCMSGA._varcookie=b.join("&");g._setVar(NGCMSGA._varcookie)}}};NGCMSGA.setVarAfter=function(a,c,d,b){setTimeout(function(){NGCMSGA.setVar(a,c,d)},b*1000)};