	function showStory(id) {
		
		var mrTargetUrl = 'http://horses.sportinglife.com/Story/1,12502,thisisnotanoid,00.html';
		
		mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
		window.location.href = mrTargetUrl;
	}
	
	function jumpTo(page,id) {
		var mrTargetUrl;
		
		switch(page) {
			case 'abc':
				mrTargetUrl = 'http://horses.sportinglife.com/Abc/0,12527,thisisnotanoid,00.html';
				break;
			case 'abcdetails':
				mrTargetUrl = 'http://horses.sportinglife.com/Abc_Details/0,12692,thisisnotanoid,00.html';
				break;				
			case 'meeting':
				mrTargetUrl = 'http://horses.sportinglife.com/Meeting_Home/0,12497,thisisnotanoid,00.html';
				break;
			case 'race':
				mrTargetUrl = 'http://horses.sportinglife.com/Racecards/0,12495,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = 'http://horses.sportinglife.com/Arch_Race/0,12658,thisisnotanoid,00.html';
				break;	
			case 'arch_race_pup':
				mrTargetUrl = 'http://horses.sportinglife.com/Arch_Race_Pup/0,13215,thisisnotanoid,00.html';
				break;					
			case 'fastresults':
				mrTargetUrl = 'http://horses.sportinglife.com/Fast_Results/0,12492,thisisnotanoid,00.html';
				break;
			case 'fullresult':
				mrTargetUrl = 'http://horses.sportinglife.com/Full_Results/0,12493,thisisnotanoid,00.html';
				break;
			case 'midx':
				mrTargetUrl = 'http://horses.sportinglife.com/Meetings/0,12496,thisisnotanoid,00.html';
				break;
			case 'ridx':
				mrTargetUrl = 'http://horses.sportinglife.com/Results/0,12520,thisisnotanoid,00.html';
				break;				
			case 'horse':
				mrTargetUrl = 'http://horses.sportinglife.com/Horse_Profile/0,12491,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = 'http://horses.sportinglife.com/Trainer_Profile/0,12487,thisisnotanoid,00.html';
				break;
			case 'jockey':
				mrTargetUrl = 'http://horses.sportinglife.com/Jockey_Profile/0,12488,thisisnotanoid,00.html';
				break;
			case '7daystats':
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/SL_7day_Stats/0,12675,thisisnotanoid,00.html';
				break;
			case '14daystats':
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/SL_14day_Stats/0,12676,thisisnotanoid,00.html';
				break;
			case 'seasonstats':
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/SL_Season_Stats/0,12677,thisisnotanoid,00.html';
				break;	
			case 'courseregion':
				mrTargetUrl = 'http://horses.sportinglife.com/Courses/0,12528,thisisnotanoid,00.html';
				break;	
			case 'course':
				mrTargetUrl = 'http://horses.sportinglife.com/Course_Profile/0,12530,thisisnotanoid,00.html';
				break;	
			case 'nagme':
				mrTargetUrl = 'http://nagme.sportinglife.com/Horse_Profile/0,,thisisnotanoid,00.html';
				break;	
			case 'pointers':
				mrTargetUrl = 'http://horses.sportinglife.com/Pointers/0,12521,thisisnotanoid,00.html';
				break;		
			case 'engagements':			
				mrTargetUrl = 'http://horses.sportinglife.com/Future_Engagements/0,12646,thisisnotanoid,00.html';
				break;
			case 'headtohead':
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/Head_To_Head/0,13214,thisisnotanoid,00.html';
				break;		
			case 'fix':
				mrTargetUrl = 'http://horses.sportinglife.com/Fixtures/0,13369,thisisnotanoid,00.html';
				break;		
			case 'jtstats':	
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/SL_Jockey_Trainer_Stats/0,13376,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://horses.sportinglife.com/Racecards/0,12495,thisisnotanoid,00.html';
				break;		
			case 'race':
				mrTargetUrl = 'http://horses.sportinglife.com/Full_Results/0,12493,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = 'http://horses.sportinglife.com/Arch_Race/0,12658,thisisnotanoid,00.html';
				break;					
			case 'course':
				mrTargetUrl = 'http://horses.sportinglife.com/Course_Profile/0,12530,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://horses.sportinglife.com/Horse_Profile/0,12491,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = 'http://horses.sportinglife.com/Trainer_Profile/0,12487,thisisnotanoid,00.html';
				break;			
			case 'jockey':
				mrTargetUrl = 'http://horses.sportinglife.com/Jockey_Profile/0,12488,thisisnotanoid,00.html';
				break;		
			case 'stars':
				mrTargetUrl = 'http://horses.sportinglife.com/Star_Ratings/0,12705,thisisnotanoid,00.html';
				break;	
			case 'engagements':
				mrTargetUrl = 'http://horses.sportinglife.com/Future_Engagements/0,12646,thisisnotanoid,00.html';
				break;	
			case 'headtohead':
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/Head_To_Head/0,13214,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 = 'http://horses.sportinglife.com/Star_Ratings/0,12705,thisisnotanoid,00.html';
				break;
			case 'or':
				mrTargetUrl = 'http://horses.sportinglife.com/Official_Ratings/0,12872,thisisnotanoid,00.html';
				break;				
			case 'coursetop':
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/SL_Course_Stats/0,12709,thisisnotanoid,00.html';
				break;
			case 'coursefix':
				mrTargetUrl = 'http://horses.sportinglife.com/Course/SL_Course_Fixtures/0,12816,thisisnotanoid,00.html';
				break;
			case 'hotjockeys':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/SL_Hot_Jockeys/0,12885,thisisnotanoid,00.html';
				break;
			case 'hottrainers':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/SL_Hot_Trainers/0,12886,thisisnotanoid,00.html';
				break;	
			case 'canddwinners':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/SL_CandD_Winners/0,12887,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 = 'http://horses.sportinglife.com/Profiles/SL_Hot_Jockeys/0,12885,thisisnotanoid,00.html';
				break;
			case 'hottrainers':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/SL_Hot_Trainers/0,12886,thisisnotanoid,00.html';
				break;	
			case 'canddwinners':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/SL_CandD_Winners/0,12887,thisisnotanoid,00.html';
				break;		
			case 'ftheadgear':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/FT_Headgear/0,13104,thisisnotanoid,00.html';
				break;
			case 'cp':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/Cheekpieces/0,13166,thisisnotanoid,00.html';
				break;
			case 'ts':
				mrTargetUrl = 'http://horses.sportinglife.com/Profiles/Tonguestraps/0,13167,thisisnotanoid,00.html';
				break;	
			case 'headtohead':
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/Head_To_Head/0,13214,thisisnotanoid,00.html';
				break;
			case 'fastcards':
				mrTargetUrl = 'http://horses.sportinglife.com/SL_Fast_Cards/0,13751,thisisnotanoid,00.html';
				break;	
			case 'napsdetail':
				mrTargetUrl = 'http://horses.sportinglife.com/Naps_Detail/0,13767,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 nagMe(id) {
		var mrTargetUrl = 'http://nagme.sportinglife.com/Horse_Profile/0,,thisisnotanoid,00.html';
		mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
		window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,width=645,height=550,left=80,top=100');		
	}
	
	function betSlip(id, odds) {
		var mrTargetUrl = 'http://www.totalbet.com/totalbet?action=GoSgl&ev_oc_id=' + id + '&aff_id=1935&CurPrice=' + odds;
		window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,width=585,height=600,left=80,top=100');			
	}	

	function play(cname,rtime,atype,id) {
		var mrTargetUrl = 'http://horses.sportinglife.com/SL_Racing_Audio_Player/0,13266,thisisnotanoid,00.html';
		mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',cname + '^' + rtime + '^' + atype + '^' + id);
		window.open(mrTargetUrl,'mrWindow','resizable=no,scrollbars=no,width=549,height=95,left=80,top=100');	
	
	}	
