 function jumpTo(page,id) {
		var mrTargetUrl;
		
		switch(page) {
			case 'race':
				mrTargetUrl = '/racing/racecard/0,23112,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = '/racing/arch_race/0,23114,thisisnotanoid,00.html';
				break;					
			case 'arch_race_pup':
				mrTargetUrl = '/racing/arch_race_pup/0,23125,thisisnotanoid,00.html';
				break;				
			case 'fastresults':
				mrTargetUrl = '/racing/fastresults/0,23115,thisisnotanoid,00.html';
				break;
			case 'fullresult':
				mrTargetUrl = '/racing/result/0,23114,thisisnotanoid,00.html';
				break;
			case 'midx':
				mrTargetUrl = '/racing/meetings/0,23111,thisisnotanoid,00.html';
				break;
			case 'ridx':
				mrTargetUrl = '/racing/results/0,23113,thisisnotanoid,00.html';
				break;				
			case 'horse':
				mrTargetUrl = '/racing/horse/0,23122,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = '/racing/trainer/0,23122,thisisnotanoid,00.html';
				break;
			case 'jockey':
				mrTargetUrl = '/racing/jockey/0,23122,thisisnotanoid,00.html';
				break;
			case 'engagements':			
				mrTargetUrl = '/racing/engagements/0,23123,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/racecard/0,23112,thisisnotanoid,00.html';
				break;		
			case 'race':
				mrTargetUrl = '/racing/results/0,23113,thisisnotanoid,00.html';
				break;
			case 'arch_race':
				mrTargetUrl = '/racing/arch_race/0,23114,thisisnotanoid,00.html';
				break;					
		}
		if (mrTargetUrl.length > 0) {
			if (id) {
				mrTargetUrl = mrTargetUrl.replace('thisisnotanoid',id);
			}
			opener.window.location.href = mrTargetUrl;
		}
	}		
				

	function showProfile(ptype,id) {
		var mrTargetUrl;
		switch(ptype) {
			case 'horse':	
				mrTargetUrl = '/racing/horse/0,23122,thisisnotanoid,00.html';
				break;
			case 'trainer':
				mrTargetUrl = '/racing/trainer/0,23122,thisisnotanoid,00.html';
				break;			
			case 'jockey':
				mrTargetUrl = '/racing/jockey/0,23122,thisisnotanoid,00.html';
				break;		
			case 'engagements':
				mrTargetUrl = '/racing/engagements/0,23123,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 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 skbetSlip(id,num,denom) {
		var mrTargetUrl = 'https://www.skybet.com/secure/rpbetslipmulti?action=go_gmulti&ev_oc_id=' + id + '&lp_num=' + num + '&lp_den=' + denom + '&AFF_ID=720';
		window.open(mrTargetUrl,'mrWindow','resizable=yes,scrollbars=yes,width=585,height=600,left=80,top=100');			
	}	

	popupwin = new Array;
	function ShowPopup(page,name,options)
	{
	popupwin[popupwin.length] = window.open(page,name,options);
	}	
