 function jumpTo(page,id) {
		var mrTargetUrl;
		
		switch(page) {
			case 'abc':
				mrTargetUrl = '/racing/Abc/0,20186,thisisnotanoid,00.html';
				break;				
			case 'abcdetails':
				mrTargetUrl = '/racing/Abc_Details/0,20175,thisisnotanoid,00.html';
				break;				
			case 'race':
				mrTargetUrl = '/racing/Racecards/0,20196,thisisnotanoid,00.html#' + id;
				break;
			case 'arch_race':
				mrTargetUrl = '/racing/Arch_Race/0,20191,thisisnotanoid,00.html';
				break;	
			case 'arch_race_pup':
				mrTargetUrl = '/racing/Arch_Race_Pup/0,20192,thisisnotanoid,00.html';
				break;					
			case 'fastresults':
				var id = "";
				mrTargetUrl = '/racing/Results/0,20174,thisisnotanoid,00.html';
				break;
			case 'fullresult':
				var id = "";
				mrTargetUrl = '/racing/Results/0,20174,thisisnotanoid,00.html';
				break;
			case 'midx':
				mrTargetUrl = '/racing/Meetings/0,20173,thisisnotanoid,00.html';
				break;
			case 'ridx':
				mrTargetUrl = '/racing/Results/0,20174,thisisnotanoid,00.html';
				break;				
			case 'horse':
				mrTargetUrl = '/racing/Horse_Profile/0,20180,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = '/racing/Trainer_Profile/0,20188,thisisnotanoid,00.html';
				break;
			case 'jockey':
				mrTargetUrl = '/racing/Jockey_Profile/0,20183,thisisnotanoid,00.html';
				break;
			case '7daystats':
				mrTargetUrl = '/racing/stats/7day/0,20200,thisisnotanoid,00.html';
				break;
			case '14daystats':
				mrTargetUrl = '/racing/stats/14day/0,20199,thisisnotanoid,00.html';
				break;
			case 'seasonstats':
				mrTargetUrl = '/racing/stats/Season/0,20202,thisisnotanoid,00.html';
				break;	
			case 'courseregion':
				mrTargetUrl = '/racing/Courses/0,20168,thisisnotanoid,00.html';
				break;	
			case 'course':
				mrTargetUrl = '/racing/Course_Profile/0,20169,thisisnotanoid,00.html';
				break;	
			case 'engagements':			
				mrTargetUrl = '/racing/Future_Engagements/0,20179,thisisnotanoid,00.html';
				break;
			case 'headtohead':
				mrTargetUrl = '/racing/stats/Head_To_Head/0,20197,thisisnotanoid,00.html';
				break;		
			case 'fix':
				mrTargetUrl = '/racing/Fixtures/0,20171,thisisnotanoid,00.html';
				break;		
			case 'jtstats':	
				mrTargetUrl = '/racing/stats/Jockey_Trainer/0,20203,thisisnotanoid,00.html';
				break;									
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.location.href = mrTargetUrl;
		}
	
	}
	
	function profileJumpTo(page,id) {
		var mrTargetUrl;
		
		switch(page) {
			case 'card':
				mrTargetUrl = '/racing/Racecards/0,20196,thisisnotanoid,00.html';
				break;		
			case 'race':
				mrTargetUrl = '/racing/Full_Results/0,20195,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = '/racing/Arch_Race/0,20191,thisisnotanoid,00.html';
				break;					
			case 'course':
				mrTargetUrl = '/racing/Course_Profile/0,20169,thisisnotanoid,00.html';
				break;		
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			opener.window.location.href = mrTargetUrl;
		}
	}		

	function showProfile(ptype,id) {
		var mrTargetUrl;
		switch(ptype) {
			case 'horse':	
				mrTargetUrl = '/racing/Horse_Profile/0,20180,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = '/racing/Trainer_Profile/0,20188,thisisnotanoid,00.html';
				break;			
			case 'jockey':
				mrTargetUrl = '/racing/Jockey_Profile/0,20183,thisisnotanoid,00.html';
				break;		
			case 'stars':
				mrTargetUrl = '/racing/Star_Ratings/0,20187,thisisnotanoid,00.html';
				break;	
			case 'engagements':
				mrTargetUrl = '/racing/Future_Engagements/0,20179,thisisnotanoid,00.html';
				break;	
			case 'headtohead':
				mrTargetUrl = '/racing/stats/Head_To_Head/0,20197,thisisnotanoid,00.html';
				break;				
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.open(mrTargetUrl,ptype,'Height=600,Width=850,status=no,left=80,top=100,scrollbars=yes,resizable=yes');
		}
		
	}

	function showSmlProfile(ptype,id) {
		var mrTargetUrl;
		switch(ptype) {

			case 'stars':
				mrTargetUrl = '/racing/Star_Ratings/0,20187,thisisnotanoid,00.html';
				break;
			case 'or':
				mrTargetUrl = '/racing/Official_Ratings/0,20185,thisisnotanoid,00.html';
				break;				
			case 'coursetop':
				mrTargetUrl = '/racing/stats/Course/0,20201,thisisnotanoid,00.html';
				break;
			case 'coursefix':
				mrTargetUrl = '/racing/Course_Fixtures/0,20167,thisisnotanoid,00.html';
				break;
			case 'hotjockeys':
				mrTargetUrl = '/racing/Hot_Jockeys/0,20181,thisisnotanoid,00.html';
				break;
			case 'hottrainers':
				mrTargetUrl = '/racing/Hot_Trainers/0,20182,thisisnotanoid,00.html';
				break;	
			case 'canddwinners':
				mrTargetUrl = '/racing/CandD_Winners/0,20176,thisisnotanoid,00.html';
				break;							
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.open(mrTargetUrl,ptype,'Height=450,Width=380,status=no,left=120,top=120,scrollbars=yes,resizable=yes');
		}
		
	}	

	function showMedProfile(ptype,id) {
		var mrTargetUrl;
		switch(ptype) {
			case 'hotjockeys':
				mrTargetUrl = '/racing/Hot_Jockeys/0,20181,thisisnotanoid,00.html';
				break;
			case 'hottrainers':
				mrTargetUrl = '/racing/Hot_Trainers/0,20182,thisisnotanoid,00.html';
				break;	
			case 'canddwinners':
				mrTargetUrl = '/racing/CandD_Winners/0,20176,thisisnotanoid,00.html';
				break;		
			case 'ftheadgear':
				mrTargetUrl = '/racing/FT_Headgear/0,20178,thisisnotanoid,00.html';
				break;
			case 'cp':
				mrTargetUrl = '/racing/Cheekpieces/0,20177,thisisnotanoid,00.html';
				break;
			case 'ts':
				mrTargetUrl = '/racing/Tonguestraps/0,20204,thisisnotanoid,00.html';
				break;	
			case 'headtohead':
				mrTargetUrl = '/racing/stats/Head_To_Head/0,20197,thisisnotanoid,00.html';
				break;
			case 'fastcards':
				mrTargetUrl = '/racing/Fast_Cards/0,20193,thisisnotanoid,00.html';
				break;	
				
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.open(mrTargetUrl,ptype,'Height=450,Width=550,status=no,left=120,top=120,scrollbars=yes,resizable=yes');
		}
		
	}		

	function betSlip(id, odds) {
		var mrTargetUrl = 'http://guardian.oddschecker.com/guardian/mode/o/odds/' + id + 'x';
		//window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,status=yes,location=yes,menubar=yes,titlebar=yes,toolbar=yes');			
		window.open(mrTargetUrl,'mrWindow');
	}	

	function play(cname,rtime,atype,id) {
		var mrTargetUrl = '/racing/Audio_Player/0,20157,thisisnotanoid,00.html';
		mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',cname + '^' + rtime + '^' + atype + '^' + id);
		window.open(mrTargetUrl,'mrWindow','resizable=no,scrollbars=no,width=549,height=100,left=80,top=100');	
	
	}	