/*
	Copyright Code Computerlove Ltd 2007-2010
	Build: 1.0.0.35
	Date: 15/07/2010 14:07:34
*/

(function($j){

	Code.registerNamespace('Website.Pages');

	Website.Home = {
	
		content: null,
		
		_tagRedirect: function(tagNum) {
			top.location.href = $j(".js-tag" + tagNum).attr("href");
		},
		
		
		initSpotlightTags: function() {
		
			var _self = this;
			var spotpix = new Image(); 
			var axel, num;

		
			$j(".js-tag1").click(function(){
			
				axel = Math.random() + "";
				num = axel * 1000000000000000000;
				spotpix.src = "http://ad.uk.doubleclick.net/activity;src=2248830;type=world164;cat=wodbo719;ord=" + num;
				spotpix.onload = _self._tagRedirect(1);
				
				return false;
			});
			
			$j(".js-tag2").click(function(){
			
				axel = Math.random() + "";
				num = axel * 1000000000000000000;
				spotpix.src = "http://ad.uk.doubleclick.net/activity;src=2248830;type=world164;cat=wodre260;ord=" + num;
				spotpix.onload = _self._tagRedirect(2);
				
				return false;			
			
			});
			
			$j(".js-tag3").click(function(){
			
				axel = Math.random() + "";
				num = axel * 1000000000000000000;
				spotpix.src = "http://ad.uk.doubleclick.net/activity;src=2248830;type=world164;cat=wodre418;ord=" + num;
				spotpix.onload = _self._tagRedirect(3);

				return false;			
			
			});
		
		},
		
		onReady: function(){
		
			var _self = this;
			_self.initSpotlightTags();
			
		}
		
	};

	$j().ready(function(){
		Website.Home.onReady();
	});

})(jQuery);	
