// 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/dt_model_play.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_model_down.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/dt_model_play.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_model_down.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/dt_model_play.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_model_down.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/dt_model_play.gif" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_model_down.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('<span style="float:right;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/dt_vplay_button.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_vdown_button.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write('<span style="float:right;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/dt_vplay_button.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_vdown_button.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write('<span style="float:right;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/dt_vplay_button.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_vdown_button.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}

// otherwise videos have 700k	
	else
	{
		document.write('<span style="float:right;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/dt_vplay_button.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_vdown_button.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}
}

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('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}

// otherwise videos have 700k	
	else
	{
		document.write('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}
}


function PrintGalVideoLinks(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('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
		document.write('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}

	else if (Video_Type=='h.264 wide')
	{
		document.write('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}

// otherwise videos have 700k	
	else
	{
		document.write('<span style="float:left;margin-bottom:6px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/dt_model_play.gif" border=0 alt="Play Video In Flash" title="Play Video In Flash"></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/dt_model_down.gif" border=0 alt="Right Click And Download Video" title="Right Click And Download Video"></a></span>');
	}
}


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


function openApp() 
{
	
	wWidth = 800; wHeight = 600;
	
	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()
	}
	
}

function openChat() 
{
	
	wWidth = 800; wHeight = 515;
	
	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+",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+",location=no,screenY="+wVPos+",screenX="+wHPos+",personalbar=no,menubar=no,scrollbars=no,status=no,toolbar=no")
		oWin.focus()
	}
	
}


