// TOUR HOME LINKS - FULL SCREEN PLAYER
// -------------------------------------------------------------------
var prevpos = Array();
//prevpos['frame_'] = 0;
//prevpos['frameb_'] = 0;
function cyclediv(name, elements, direction){
  if(prevpos[name] == null){
    prevpos[name] = 0;
  }
//alert(name+prevpos[name]);
  currdiv = document.getElementById(name+prevpos[name]);
  currdiv.style.display = "none";
  if(direction != 1){
    //neg mov
    prevpos[name] = prevpos[name]-1;
    if(prevpos[name] < 0){
      prevpos[name] = elements-1;
    }
  }else{
    //pos mov
    prevpos[name] = prevpos[name]+1;
    if(prevpos[name] > elements-1){
      prevpos[name] = 0;
    }
  }
  nextdiv = document.getElementById(name+prevpos[name]);
  nextdiv.style.display = "";//block
}

function PrintVideoHREF(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('<a>');
		return true;
	}
	if (Video_Type=='BTS')
	{
		document.write('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2">');
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500">');
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2">');
	}

// otherwise videos have 700k	
	else
	{
		document.write('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700">');
	}
}
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('<div style="position:relative;float:right"><div style="position:absolute;left:-62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2" target="_parent"><img src="/images/ho_lightbar_27_play.gif" border=0></a></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write('<div style="position:relative;float:right"><div style="position:absolute;left:-62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500" target="_parent"><img src="/images/ho_lightbar_27_play.gif" border=0></a></div></div>');
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write('<div style="position:relative;float:right"><div style="position:absolute;left:-62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2" target="_parent"><img src="/images/ho_lightbar_27_play.gif" border=0></a></div></div>');
	}

// otherwise videos have 700k	
	else
	{
		document.write('<div style="position:relative;float:right"><div style="position:absolute;left:-62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700" target="_parent"><img src="/images/ho_lightbar_27_play.gif" border=0></a></div></div>');
	}
}

function PrintGroupVideoLinks(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/ho_sceneplay.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/ho_scenedownload.gif" 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/ho_sceneplay.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/ho_scenedownload.gif" 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/ho_sceneplay.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/ho_scenedownload.gif" 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/ho_sceneplay.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/ho_scenedownload.gif" border=0></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('<div style="position:relative;float:right"><div style="position:absolute;left:-210px;top:-3px;width:210px;"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/ho_videobend_down.gif" border=0 style="position: absolute; top: 146px;"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/ho_videobend_play.gif" border=0 style="position: absolute; left: 89px; top: 146px;"></a><img src="/images/ho_videobend.gif" border=0 style="position: absolute; left: 178px;"></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write('<div style="position:relative;float:right"><div style="position:absolute;left:-210px;top:-3px;width:210px;"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/ho_videobend_down.gif" border=0 style="position: absolute; top: 146px;"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/ho_videobend_play.gif" border=0 style="position: absolute; left: 89px; top: 146px;"></a><img src="/images/ho_videobend.gif" border=0 style="position: absolute; left: 178px;"></div></div>');
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write('<div style="position:relative;float:right"><div style="position:absolute;left:-210px;top:-3px;width:210px;"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/ho_videobend_down.gif" border=0 style="position: absolute; top: 146px;"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/ho_videobend_play.gif" border=0 style="position: absolute; left: 89px; top: 146px;"></a><img src="/images/ho_videobend.gif" border=0 style="position: absolute; left: 178px;"></div></div>');
	}

// otherwise videos have 700k	
	else
	{
		document.write('<div style="position:relative;float:right"><div style="position:absolute;left:-210px;top:-3px;width:210px;"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/ho_videobend_down.gif" border=0 style="position: absolute; top: 146px;"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/ho_videobend_play.gif" border=0 style="position: absolute; left: 89px; top: 146px;"></a><img src="/images/ho_videobend.gif" border=0 style="position: absolute; left: 178px;"></div></div>');
	}
}



