 function jumpTo(page,id) {
		var mrTargetUrl;
		
		switch(page) {
			case 'abc':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Abc/0,13080,thisisnotanoid,00.html';
				break;
			case 'abcdetails':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Abc_Details/0,13071,thisisnotanoid,00.html';
				break;				
			case 'meeting':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Meeting_Home/0,13066,thisisnotanoid,00.html';
				break;
			case 'race':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Racecards/0,13085,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Arch_Race/0,13084,thisisnotanoid,00.html';
				break;	
			case 'arch_race_pup':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Arch_Race_Pup/0,13749,thisisnotanoid,00.html';
				break;				
			case 'fastresults':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Fast_Results/0,13086,thisisnotanoid,00.html';
				break;
			case 'fullresult':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Full_Results/0,13087,thisisnotanoid,00.html';
				break;
			case 'midx':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Meetings/0,13067,thisisnotanoid,00.html';
				break;
			case 'ridx':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Results/0,13068,thisisnotanoid,00.html';
				break;				
			case 'horse':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Horse_Profile/0,13074,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Trainer_Profile/0,13083,thisisnotanoid,00.html';
				break;
			case 'jockey':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Jockey_Profile/0,13077,thisisnotanoid,00.html';
				break;
			case '7daystats':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Stats/7day_Stats/0,13089,thisisnotanoid,00.html';
				break;
			case '14daystats':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Stats/14day_Stats/0,13088,thisisnotanoid,00.html';
				break;
			case 'seasonstats':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Stats/Season_Stats/0,13095,thisisnotanoid,00.html';
				break;	
			case 'courseregion':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Courses/0,13061,thisisnotanoid,00.html';
				break;	
			case 'course':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Course_Profile/0,13062,thisisnotanoid,00.html';
				break;	
			case 'pointers':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Pointers/0,13091,thisisnotanoid,00.html';
				break;		
			case 'engagements':			
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Future_Engagements/0,13073,thisisnotanoid,00.html';
				break;		
			case 'fix':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Fixtures/0,13375,thisisnotanoid,00.html';
				break;		
			case 'jtstats':	
				mrTargetUrl = 'http://horses.sportinglife.com/Stats/Bsq_Jockey_Trainer_Stats/0,13381,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/Bsq_Racecards/0,13085,thisisnotanoid,00.html';
				break;		
			case 'race':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Full_Results/0,13087,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Arch_Race/0,13084,thisisnotanoid,00.html';
				break;					
			case 'course':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Course_Profile/0,13062,thisisnotanoid,00.html';
				break;
			case 'bet':
				mrTargetUrl = 'http://www.bluesq.com/bet?action=go_racing';
				break;
		}
		if (page == 'bet') {
			opener.parent.location.href = mrTargetUrl;
			opener.focus();
		} else {
			if (mrTargetUrl.length > 0) {
				mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
				opener.location.href = mrTargetUrl;
				opener.focus();
			}
		}
	}		
				

	function showProfile(ptype,id) {
		var mrTargetUrl;
		switch(ptype) {
			case 'horse':	
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Horse_Profile/0,13074,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Trainer_Profile/0,13083,thisisnotanoid,00.html';
				break;			
			case 'jockey':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Jockey_Profile/0,13077,thisisnotanoid,00.html';
				break;		
			case 'stars':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Star_Ratings/0,13082,thisisnotanoid,00.html';
				break;	
			case 'engagements':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Future_Engagements/0,13073,thisisnotanoid,00.html';
				break;	
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.open(mrTargetUrl,'mrWindow','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/Bsq_Star_Ratings/0,13082,thisisnotanoid,00.html';
				break;
			case 'or':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Official_Ratings/0,13079,thisisnotanoid,00.html';
				break;				
			case 'coursetop':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Stats/Course_Stats/0,13090,thisisnotanoid,00.html';
				break;
			case 'coursefix':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Course_Fixtures/0,13060,thisisnotanoid,00.html';
				break;
			case 'hotjockeys':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Hot_Jockeys/0,13075,thisisnotanoid,00.html';
				break;
			case 'hottrainers':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Hot_Trainers/0,13076,thisisnotanoid,00.html';
				break;	
			case 'canddwinners':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_CandD_Winners/0,13072,thisisnotanoid,00.html';
				break;	
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.open(mrTargetUrl,'mrWindow','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/Bsq_Hot_Jockeys/0,13075,thisisnotanoid,00.html';
				break;
			case 'hottrainers':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Hot_Trainers/0,13076,thisisnotanoid,00.html';
				break;	
			case 'canddwinners':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_CandD_Winners/0,13072,thisisnotanoid,00.html';
				break;
			case 'ftheadgear':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_FT_Headgear/0,13105,thisisnotanoid,00.html';
				break;	
			case 'cp':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Cheekpieces/0,13168,thisisnotanoid,00.html';
				break;
			case 'ts':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Tonguestraps/0,13169,thisisnotanoid,00.html';
				break;	
			case 'fastcards':
				mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Fast_Cards/0,13760,thisisnotanoid,00.html';
				break;
				
		}
		if (mrTargetUrl.length > 0) {
			mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			window.open(mrTargetUrl,'mrWindow','Height=450,Width=550,status=no,left=120,top=120,scrollbars=yes,resizable=yes');
		}
		
	}		
	

	function betSlip(id,num,denom) {
		var mrTargetUrl = 'http://www.bluesq.com/bsq_rp?action=go_standalone&popup=1&ev_oc_id=' + id + '&lp_num=' + num + '&lp_den=' + denom + '&AFF_ID=134';
		window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,width=400,height=630,left=80,top=100');			
	
	}
	

	function play(cname,rtime,atype,id) {
		var mrTargetUrl = 'http://horses.sportinglife.com/Bsq_Racing_Audio_Player/1,13264,thisisnotanoid,00.html';
		mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',cname + '^' + rtime + '^' + atype + '^' + id);
		window.open(mrTargetUrl,'mrWindow','resizable=no,scrollbars=no,width=300,height=200,left=80,top=100');	
	
	}