 function jumpTo(page,id) {
		var mrTargetUrl;
		
		switch(page) {
			case 'abc':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Abc/0,14896,thisisnotanoid,00.html';
				break;
			case 'abcdetails':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Abc_Details/0,14885,thisisnotanoid,00.html';
				break;				
			case 'race':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Racecards/0,14883,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Arch_Race/0,14879,thisisnotanoid,00.html';
				break;	
			case 'arch_race_pup':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Arch_Race_Pup/0,14880,thisisnotanoid,00.html';
				break;					
			case 'fastresults':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Fast_Results/0,14881,thisisnotanoid,00.html';
				break;
			case 'fullresult':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Full_Results/0,14882,thisisnotanoid,00.html';
				break;
			case 'midx':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Meetings/0,14906,thisisnotanoid,00.html';
				break;
			case 'ridx':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Results/0,14907,thisisnotanoid,00.html';
				break;				
			case 'horse':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Horse_Profile/0,14890,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Trainer_Profile/0,14899,thisisnotanoid,00.html';
				break;
			case 'jockey':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Jockey_Profile/0,14893,thisisnotanoid,00.html';
				break;
			case '7daystats':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/7day/0,14874,thisisnotanoid,00.html';
				break;
			case '14daystats':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/14day/0,14873,thisisnotanoid,00.html';
				break;
			case 'seasonstats':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/Season/0,14878,thisisnotanoid,00.html';
				break;	
			case 'courseregion':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Courses/0,14909,thisisnotanoid,00.html';
				break;	
			case 'course':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Course_Profile/0,14910,thisisnotanoid,00.html';
				break;	
			case 'engagements':			
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Future_Engagements/0,14889,thisisnotanoid,00.html';
				break;
			case 'headtohead':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/Head_To_Head/0,28180,thisisnotanoid,00.html';
				break;		
			case 'fix':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Fixtures/0,14903,thisisnotanoid,00.html';
				break;		
			case 'jtstats':	
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/Jockey_Trainer/0,14876,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 = 'http://guardian.sportinglife.com/GU_Racecards/0,14883,thisisnotanoid,00.html';
				break;		
			case 'race':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Full_Results/0,14882,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Arch_Race/0,14879,thisisnotanoid,00.html';
				break;					
			case 'course':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Course_Profile/0,14910,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 = 'http://guardian.sportinglife.com/GU_Horse_Profile/0,14890,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Trainer_Profile/0,14899,thisisnotanoid,00.html';
				break;			
			case 'jockey':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Jockey_Profile/0,14893,thisisnotanoid,00.html';
				break;		
			case 'stars':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Star_Ratings/0,14897,thisisnotanoid,00.html';
				break;	
			case 'engagements':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Future_Engagements/0,14889,thisisnotanoid,00.html';
				break;	
			case 'headtohead':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/Head_To_Head/0,28180,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;
		var pageWidth = 380;
		switch(ptype) {

			case 'stars':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Star_Ratings/0,14897,thisisnotanoid,00.html';
				pageWidth = 300;
				break;
			case 'or':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Official_Ratings/0,14895,thisisnotanoid,00.html';
				pageWidth = 505;
				break;				
			case 'coursetop':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/Course/0,14875,thisisnotanoid,00.html';
				break;
			case 'coursefix':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Course_Fixtures/0,14908,thisisnotanoid,00.html';
				break;
			case 'hotjockeys':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Hot_Jockeys/0,28181,thisisnotanoid,00.html';
				pageWidth = 340;
				break;
			case 'hottrainers':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Hot_Trainers/0,28182,thisisnotanoid,00.html';
				pageWidth = 340;
				break;	
			case 'canddwinners':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_CandD_Winners/0,28183,thisisnotanoid,00.html';
				break;							
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.open(mrTargetUrl,ptype,'Height=450,Width=' + pageWidth + ',status=no,left=120,top=120,scrollbars=yes,resizable=yes');
		}
		
	}	

	function showMedProfile(ptype,id) {
		var mrTargetUrl;
		switch(ptype) {
			case 'hotjockeys':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Hot_Jockeys/0,28181,thisisnotanoid,00.html';
				break;
			case 'hottrainers':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Hot_Trainers/0,28182,thisisnotanoid,00.html';
				break;	
			case 'canddwinners':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_CandD_Winners/0,28183,thisisnotanoid,00.html';
				break;		
			case 'ftheadgear':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_FT_Headgear/0,28185,thisisnotanoid,00.html';
				break;
			case 'cp':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Cheekpieces/0,28184,thisisnotanoid,00.html';
				break;
			case 'ts':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Tonguestraps/0,28186,thisisnotanoid,00.html';
				break;	
			case 'headtohead':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Stats/Head_To_Head/0,28180,thisisnotanoid,00.html';
				break;
			case 'fastcards':
				mrTargetUrl = 'http://guardian.sportinglife.com/GU_Fast_Cards/0,14884,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(course, time) {
		var mrTargetUrl = 'http://guardian.oddschecker.com/horse-racing/' + course + '/' + time;
		window.open(mrTargetUrl,'mrWindow');
	}	  

	function play(cname,rtime,atype,id) {
		var mrTargetUrl = 'http://guardian.sportinglife.com/GU_Audio_Player/0,14921,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');	
	
	}	
