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(b,a){if(typeof b=="object"&&String(b.constructor)==String(Array)){if(b.length==0){a();return true}var c=b.splice(0,1)[0];return NGCMSLoader.incJS(c,function(){NGCMSLoader.incJS(b,a)})}if(NGCMSLoader.hasJS(b)){a();return true}var d=document.getElementsByTagName("head");if(d.length==0){d[0]=document.body.parentNode.appendChild(document.createElement("head"))}var e=document.createElement("script");e.type="text/javascript";e.src=b;if(a){if(e.addEventListener){e.addEventListener("load",a,false)}else{if(e.attachEvent){e.attachEvent("onreadystatechange",function(){if(e.readyState=="complete"||e.readyState=="loaded"){a()}})}}}d[0].appendChild(e);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(c){for(var b,d=0;d<arguments.length;d++){if(b=NGCMSGA.getProfile(arguments[d])){try{b._trackPageview()}catch(a){}}}};NGCMSGA.trackPageViewURL=function(c){for(var b,d=1;d<arguments.length;d++){if(b=NGCMSGA.getProfile(arguments[d])){try{b._trackPageview(c)}catch(a){}}}};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(b,d,f){var c=NGCMSGA.getProfile(b);if(c){var g=NGCMSGA.getVars();if(typeof g[d]!="undefined"&&g[d]==f){return g[d]}if(f===null){delete g[d]}else{g[d]=f}var e=[];for(var h in g){if(typeof g[h]=="string"||typeof g[h]=="number"){e[e.length]=escape(h)+"="+escape(g[h])}}if(NGCMSGA._varcookie!=e.join("&")){NGCMSGA._varcookie=e.join("&");c._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(b,c,e,d){for(var a in NGCMSGA._profiles){NGCMSGA.setCustomVar(a,b,c,e,d);NGCMSGA.trackPageView(a)}};NGCMSGA.setVarAfter=function(c,a,b,d){setTimeout(function(){NGCMSGA.setVar(c,a,b)},d*1000)};
