// TOUR HOME LINKS - FULL SCREEN PLAYER
// -------------------------------------------------------------------

function PrintVidTourHome(Video_ID, Video_Type, Video_Date)
{
	

// first check if Video_Type is provided, i.e. there is a video; otherwise print vid not available
	if (Video_Type=='')
	{
		document.write('&nbsp;');
		return true;
	}

// now check if Video_Date is present and test if it is in the future
	if (Video_Date!='')
	{
		var CurrentDate = new Date;
		var ReleaseDate = new Date(Video_Date);
		if (ReleaseDate>CurrentDate)
		{
			document.write('Coming '+Video_Date);
			return true;
		}
	}
    var DL_Link;
	


// initializing the Download link depending on the Video_Type
	DL_Link = '/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700';
	
// initialize the html code for the Play video (by speed) buttons
	Video_Type='Thumb';
	
	var play38 = '<a href="/tour/player/' + Video_ID + '/38/tour2"><img src=../images/38.gif width=28 height=19 hspace=1 border=0 vspace=0></a>';
	var play180 = '<a href="/tour/player/' + Video_ID + '/180/tour2"><img src=../images/180.gif width=28 height=19 hspace=0 border=0 vspace=0></a>';
	var play300 = '<a href="/tour/player/' + Video_ID + '/300/tour2"><img src=../images/300.gif width=28 height=19 hspace=1 border=0 vspace=0></a>';
	var play700 = '<a href="/tour/player/' + Video_ID + '/700/tour2"><img src=../images/700.gif width=28 height=19 hspace=1 border=0 vspace=0></a>';
	
	

// finally print the video links
	document.write ('<img src="/images/p.gif" height="19" width="44" alt="Play Video">'+play38+play180+play300+play700+'<br><img height=19 alt="Download Video" src="/images/download.gif" hspace=0 vspace=1 width=73 border=0><a href="'+DL_Link+'"><img src="../images/d500.gif" width="28" height="19" vspace=1 border="0" hspace="1" alt="Right Click &gt; Save Target As"></a>');
}


function PrintVideoLinks(Video_ID, Video_Type, Video_Date)
{
// first check if Video_Type is provided, i.e. there is a video; otherwise print vid not available
	if (Video_Type=='')
	{
		document.write('');
		return true;
	}

// check Video_Type and print appropriate links
// BTS is used for widescreen 16:9 videos
	if (Video_Type=='BTS')
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/hbb_latest_video_play_butt.jpg" ALT="Play Video" border="0"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/hbb_latest_video_download_butt.jpg" alt="Download Video" border="0"></a>');	
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/hbb_latest_video_play_butt.jpg" ALT="Play Video" border="0"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/hbb_latest_video_download_butt.jpg" alt="Download Video" border="0"></a>');	
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/hbb_latest_video_play_butt.jpg" ALT="Play Video" border="0"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/hbb_latest_video_download_butt.jpg" alt="Download Video" border="0"></a>');	
	}

// otherwise videos have 700k	
	else
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/hbb_latest_video_play_butt.jpg" ALT="Play Video" border="0"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/hbb_latest_video_download_butt.jpg" alt="Download Video" border="0"></a>');	
	}
}

function PrintHomeVideoLinks(Video_ID, Video_Type, Video_Date)
{
// first check if Video_Type is provided, i.e. there is a video; otherwise print vid not available
	if (Video_Type=='')
	{
		document.write('');
		return true;
	}

// check Video_Type and print appropriate links
// BTS is used for widescreen 16:9 videos
	if (Video_Type=='BTS')
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/hbb_latest_video_play_butt.jpg" alt="Play Trailer" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/hbb_latest_video_download_butt.jpg" border="0" alt="Download Trailer"></a>');	
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/hbb_latest_video_play_butt.jpg" alt="Play Trailer" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/hbb_latest_video_download_butt.jpg" border="0" alt="Download Trailer"></a>');	
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/hbb_latest_video_play_butt.jpg" alt="Play Trailer" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/hbb_latest_video_download_butt.jpg" border="0" alt="Download Trailer"></a>');	
	}

// otherwise videos have 700k	
	else
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/hbb_latest_video_play_butt.jpg" alt="Play Trailer" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/hbb_latest_video_download_butt.jpg" border="0" alt="Download Trailer"></a>');	
	}
}


function openApp() 
{
	
	wWidth = 820; wHeight = 515;
	
	wHPos = (screen.width / 2) - (wWidth / 2);
	wVPos = (screen.height / 2) - (wHeight / 2) - 50;
	
	if (document.all) {
	oWin = self.open("/feedback/","nvSMP","width="+wWidth+",height="+wHeight+",location=no,top="+wVPos+",left="+wHPos+",personalbar=no,menubar=no,scrollbars=yes,status=no,toolbar=no")
	oWin.focus()
	} else {
		oWin = self.open("/feedback/","nvSMP","width="+wWidth+",height="+wHeight+",location=no,screenY="+wVPos+",screenX="+wHPos+",personalbar=no,menubar=no,scrollbars=yes,status=no,toolbar=no")
		oWin.focus()
	}
	
}

