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 search(what) 
{
	var SearchPageID = 1064;
	var HomePageID = 1063;
	var SearchAt = 0; // 0 - attribute values only; 1 - name/description only; 2 - both
	eval("self.location='/tour/search.php?q="+what+"&sid="+SearchPageID+"&ref="+HomePageID+"&at="+SearchAt+"'");
}


function openMemberChat() 
{
	
	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+",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()
	}
	
}

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

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

// otherwise videos have 700k	
	else
	{
		document.write('<a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700" target="_parent">');
	}
}
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="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

	else if (Video_Type=='h.264 wide')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

// otherwise videos have 700k	
	else
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}
}
function PrintHomeVideoLinksB(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="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2" target="_parent"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500" target="_parent"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

	else if (Video_Type=='h.264 wide')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2" target="_parent"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

// otherwise videos have 700k	
	else
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700" target="_parent"><img src="/images/bn_tflashvid.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}
} 
function PrintHomeVideoLinksC(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="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

	else if (Video_Type=='h.264 wide')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

// otherwise videos have 700k	
	else
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;top:-6px"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}
}
function PrintHomeVideoLinksD(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="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

	else if (Video_Type=='h.264 wide')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 border="0"></a></div></div>');
	}

// otherwise videos have 700k	
	else
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -62px;"><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700" target="_parent"><img src="/images/bn_tflashvidc.png" alt="Play in Flash" title="Play in Flash" width=62 height=35 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" alt="Play in Flash" title="Play in Flash" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/ho_scenedownload.gif" border=0 alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></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" alt="Play in Flash" title="Play in Flash" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/ho_scenedownload.gif" border=0 alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></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" alt="Play in Flash" title="Play in Flash" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/ho_scenedownload.gif" border=0 alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></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" alt="Play in Flash" title="Play in Flash" border=0></a><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/ho_scenedownload.gif" border=0 alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></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="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/bn_twmv.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/bn_tflashvid.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/bn_twmv.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/bn_tflashvid.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');
	}

	else if (Video_Type=='h.264 wide')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/bn_twmv.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/bn_tflashvid.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');
	}

  //////////
// otherwise videos have 700k	
	else
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/bn_twmv.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/bn_tflashvid.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');
	}
}

function PrintVideoLinksC(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="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/bn_twmvc.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700ws2"><img src="/images/bn_tflashvidc.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');
	}
	
	else if (Video_Type=='h.264 normal')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/bn_twmvc.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500"><img src="/images/bn_tflashvidc.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');	
	  }

	else if (Video_Type=='h.264 wide')
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-1500"><img src="/images/bn_twmvc.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/h1500/wh1500ws2"><img src="/images/bn_tflashvidc.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');	
	}
  //////////
// otherwise videos have 700k	
	else
	{
	  document.write('<div style="float: right; position: relative; z-index: 99;"><div style="position: absolute; left: -124px;top:-6px"><a href="/tour/play.php?type=dl&path=trailers/' + Video_ID + '-700"><img src="/images/bn_twmvc.png" width=62 height=35 border="0" alt="Right Click and Save-As to download" title="Right Click and Save-As to download"></a><a href="/tour/play.php?type=flv&path=' + Video_ID + '/flash700/wf700"><img src="/images/bn_tflashvidc.png" width=62 height=35 border="0" alt="Play in Flash" title="Play in Flash"></a></div></div>');
	}
}

