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