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

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/tour_head_clickhere_txt.jpg" width=363 height=32 border=0 alt="Click to View Trailer" title="Click to View 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/tour_head_clickhere_txt.jpg" width=363 height=32 border=0 alt="Click to View Trailer" title="Click to View 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/tour_head_clickhere_txt.jpg" width=363 height=32 border=0 alt="Click to View Trailer" title="Click to View Trailer"></a>');
	}

// otherwise videos have 300k	
	else
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/tour_head_clickhere_txt.jpg" width=363 height=32 border=0 alt="Click to View Trailer" title="Click to View Trailer"></a>');
	}
}


function PrintHomeImageLink(Video_ID, Video_Type, Video_Date, Path)
{
// 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="/i.php?img=' + Path + 'thumbs/movie_image2.jpg" width=320 height=240 border=0 alt="Click to View Trailer" title="Click to View 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="/i.php?img=' + Path + 'thumbs/movie_image2.jpg" width=320 height=240 border=0 alt="Click to View Trailer" title="Click to View 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="/i.php?img=' + Path + 'thumbs/movie_image2.jpg" width=320 height=240 border=0 alt="Click to View Trailer" title="Click to View Trailer"></a>');
	}

// otherwise videos have 300k	
	else
	{
		document.write ('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/i.php?img=' + Path + 'thumbs/movie_image2.jpg" width=320 height=240 border=0 alt="Click to View Trailer" title="Click to View Trailer"></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 ('<img src="/images/pdleftside.gif"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/pdplay.gif" border=0 alt="Play" title="Play"></a><img src="/images/pdspace.gif"><a href="/tour/play.php?type=dl&path=trailer/' + Video_ID + '-700"><img src="/images/pddown.gif" border=0 alt="Right Click + Save Target As To Download Trailer" title="Right Click + Save Target As To Download Trailer"></a><img src="/images/pdrightside.gif">');
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write ('<img src="/images/pdleftside.gif"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/pdplay.gif" border=0 alt="Play" title="Play"></a><img src="/images/pdspace.gif"><a href="/tour/play.php?type=dl&path=trailer/' + Video_ID + '-1500"><img src="/images/pddown.gif" border=0 alt="Right Click + Save Target As To Download Trailer" title="Right Click + Save Target As To Download Trailer"></a><img src="/images/pdrightside.gif">');
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write ('<img src="/images/pdleftside.gif"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/pdplay.gif" border=0 alt="Play" title="Play"></a><img src="/images/pdspace.gif"><a href="/tour/play.php?type=dl&path=trailer/' + Video_ID + '-1500"><img src="/images/pddown.gif" border=0 alt="Right Click + Save Target As To Download Trailer" title="Right Click + Save Target As To Download Trailer"></a><img src="/images/pdrightside.gif">');
	}

// otherwise videos have 300k	
	else
	{
		document.write ('<img src="/images/pdleftside.gif"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/pdplay.gif" border=0 alt="Play" title="Play"></a><img src="/images/pdspace.gif"><a href="/tour/play.php?type=dl&path=trailer/' + Video_ID + '-700"><img src="/images/pddown.gif" border=0 alt="Right Click + Save Target As To Download Trailer" title="Right Click + Save Target As To Download Trailer"></a><img src="/images/pdrightside.gif">');
	}
}



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


//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
