if (typeof(RTR_NewsCarousels) == 'undefined') {
	function setDynamicModuleTrackingOnClick(trackingType) {
	  trackingType = typeof(trackingType) != 'undefined' ? trackingType : false;
	  trackingType = trackingType == 'load' ? false : trackingType;
	    var modules = new Array;
	    if (is_ie) {
	        var allSpans = document.getElementsByTagName("span");
	        if (allSpans) {
	            for (i=0; i<allSpans.length; i++) {                
					if(trackingType) {
						if (allSpans[i].getAttribute("name") && allSpans[i].getAttribute("name") == "trackingEnabledDynamicModule")
		                	modules.push(allSpans[i]);
					} else {
						if (allSpans[i].getAttribute("name") && allSpans[i].getAttribute("name") == "trackingEnabledModule")
	                    	modules.push(allSpans[i]);
					}
	            }
	        }
	    }
	    else
	        if(trackingType) {
				modules = document.getElementsByName("trackingEnabledDynamicModule");
			} else {
				modules = document.getElementsByName("trackingEnabledModule");
			}
	    
	    if (modules.length > 0) {
	        // get ContentChannel and ContentType
	        var metaTags = getMetaTags();
	        var contentChannel = metaTags["DCSext.ContentChannel"];
	        var contentType    = metaTags["DCSext.ContentType"];
	        if (!contentChannel)
	            contentChannel = "";
	        if (!contentType)
	            contentType = "";
	                
	        
	        // set onclick method
	        for (i=0; i<modules.length; i++) {
	            var module = modules[i];
	            var moduleName = module.getAttribute("moduleName");
	            var moduleId = module.getAttribute("moduleId");
	            var modId = contentChannel + "|" + contentType + "|";
	            if (moduleId)   // CMS modules
	                modId += moduleId + "_" + moduleName;
	            else            // CMS buddy modules
	                modId += moduleName;
	            
	            var links = module.getElementsByTagName("a");
	            for (j=0; j<links.length; j++) {
	                links[j].setAttribute("modId", modId);
	                if(links[j].href.indexOf('articlePrint') == -1) {
			  			reuters.addEventListener(links[j], "onclick", wtModTracking);
					}
	                //links[j].onclick = wtModTracking;
	            }
	        }
	    }
	}
	document.write('<link href="/resources/css/rcom-carousel-panels.css" rel="stylesheet" />');
	document.write('<link href="/resources/css/rcom-carousels.css" rel="stylesheet" />');
	document.write('<!--[if IE 7.0]><link href="/resources/css/rcom-carousel-panels-ie7.css" rel="stylesheet" /><![endif]-->');
	document.write('<scr'+'ipt language="javascr'+'ipt" src="/resources/js/newsCarousel-min.js"></scr'+'ipt>');	
}