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(c,b){if(typeof c=="object"&&String(c.constructor)==String(Array)){if(c.length==0){b();return true}var d=c.splice(0,1)[0];return NGCMSLoader.incJS(d,function(){NGCMSLoader.incJS(c,b)})}if(NGCMSLoader.hasJS(c)){b();return true}var e=document.getElementsByTagName("head");if(e.length==0){e[0]=document.body.parentNode.appendChild(document.createElement("head"))}var a=document.createElement("script");a.type="text/javascript";a.src=c;if(b){if(a.addEventListener){a.addEventListener("load",b,false)}else{if(a.attachEvent){a.attachEvent("onreadystatechange",function(){if(a.readyState=="complete"||a.readyState=="loaded"){b()}})}}}e[0].appendChild(a);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(c){if(NGCMSGA._GA===null){var a=function(){NGCMSGA._GA=(typeof _gat!="undefined"?_gat:false);if(NGCMSGA._GA){c()}};var b="ga.js";if(/(\(|;) *MSIE 6\.0 *(;|\))/.exec(navigator.userAgent)){if(/(\(|;) *SV[1-9] *(;|\))/.exec(navigator.userAgent)){b="msie6sv1/ga.js"}else{b="msie6/ga.js"}}NGCMSLoader.incJS((("https:"==document.location.protocol)?"https://ssl.":"http://www.")+"google-analytics.com/"+b,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._createTracker(c);NGCMSGA._profiles[c].trackPageView()}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.trackEvent=function(a,c,b,f){for(var g in NGCMSGA._profiles){if(p=NGCMSGA.getProfile(g)){try{p._trackEvent(a,c,b,f)}catch(d){}}}};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,b,c){var g=NGCMSGA.getProfile(d);if(g){var e=NGCMSGA.getVars();if(typeof e[b]!="undefined"&&e[b]==c){return e[b]}if(c===null){delete e[b]}else{e[b]=c}var h=[];for(var f in e){if(typeof e[f]=="string"||typeof e[f]=="number"){h[h.length]=escape(f)+"="+escape(e[f])}}if(NGCMSGA._varcookie!=h.join("&")){NGCMSGA._varcookie=h.join("&");g._setVar(NGCMSGA._varcookie)}}};NGCMSGA.setCustomVar=function(a,b,c,f,d){var e=NGCMSGA.getProfile(a);if(e){if(arguments.length>4&&d>=1&&d<=3){e._setCustomVar(b,c,f,d)}else{e._setCustomVar(b,c,f)}}};NGCMSGA.setCustomVarAllProfile=function(c,d,a,e){for(var b in NGCMSGA._profiles){NGCMSGA.setCustomVar(b,c,d,a,e);NGCMSGA.trackPageView(b)}};NGCMSGA.setVarAfter=function(a,c,d,b){setTimeout(function(){NGCMSGA.setVar(a,c,d)},b*1000)};
