setVids();
function setSite(){
	var special=new Array();	// # of vids:text-color[:path][|asx] 
										// optional path:path for the videos on the image server
										//          asx :for 2257 splash page, add this "|asx"
	special['xxxpassword']='5:white|asx';
	special['boobeees']='5:black:xxxpassword';
	special['amatourbiatch']='5:black:amateurbitch|asx';
	special['clubpicx']='5:black:clubpix|asx';
	special['livchicks']='5:black:livechics|asx';
	special['prtysluzz']='5:white:partyslut';
	special['asianfirenzy']='5:white:asianfrenzy|asx';
	special['boobtroopolis']='5:black:boobtropolis|asx';
	special['bustierlatins']='5:white:bustylatins|asx';
	special['chokolatetails']='5:white:chocolatetails|asx';
	special['cumdrikinsluts']='5:white:cumdrinkinsluts|asx';
	special['fukfrce5']='5:white:ff5|asx';
	special['wldcherrries']='5:white:wildcherries|asx';
	special['wldcherries']='5:white:wildcherries|asx';
	special['xxxpasssword']='5:white:xxxpassword|asx';
	special['goldxxxmagx']='5:black:goldmag|asx';

	slh=self.location.href;
	if ((i=slh.indexOf('/',8))>-1) slh=slh.substring(0,i);
	urlParts=slh.split('.');
	site=urlParts[urlParts.length-2].toLowerCase();
	if (special[site]) ret=special[site]; 
	else ret='3:white:-';
	Site=site.toUpperCase();
	return(ret);
}

function setVids(){
	startSp=setSite().split('|');
	if (startSp.length>1) useASX=1; else useASX=0;

	mInfo=startSp[0].split(':'); 
	n=parseInt(mInfo[0]);
	width=n*140;
	o=	"<iframe width=0 height=0 name=vid0 id=vid0 style='visibility:hidden'></iframe>"+
		"<table align='center' width='"+width+"' border='0' style='border:1px solid black;font-family:arial;"+
		"font-size:11px'><tr><th colspan='"+n+"' style='font-size:14px;color:"+mInfo[1]+"'>"+Site;
	if (Site.charAt(Site.length-1)=='S') o+='`'; else o+="`S";
	o+=" FREE SAMPLE VIDEO CLIPS</th></tr><tr>";
	if (mInfo[2] && mInfo[2].length>1) site=mInfo[2];
	iPath="<img src='http://image.cecash.com/tour_video/"+site+"/";

	for(i=1;i<=n;i++) 
		o+="<th><a style='color:"+mInfo[1]+"' href=\"JavaScript:showVid('"+site+"',"+i+
			","+useASX+")\">"+ iPath+i+".jpg' border='0'><br>Click Here For Movie</a></td>";
	 
	/*
	 for(i=1;i<=n;i++) {
		o+="<th><a style='color:"+mInfo[1]+"' href=\"JavaScript:showClip('"+site+
		":"+i+"-2";
		if (useASX) o+=":asx";
		o+="')\">"+iPath+i+".jpg' border='0'><br>Click Here For Movie</a></td>";
	 }
	*/

	o+="</tr></table>";
	document.write(o);
}

function showVid(site,vNum,asx){
	//var path="mms://media.cecash.com/tourvids/tour_video/"+site+"/"+vNum+"-2.wmv";
	var path="http://video.cecash.com/tour_video/"+site+"/"+vNum+"-2.wmv";
	if (asx)
		path="http://in.joinourwebsite.com/cgi-bin/mkWPL.cgi/"+site+":"+vNum+"-2:.asx";
	obj=document.getElementById('vid0');
	obj.src=path;
}

function showClip(v)
{
	//path="mms://media.cecash.com/tourvids/tour_video/"+pSite+"/"+vNum+".wmv";
	path="http://video.cecash.com/tour_video/"+pSite+"/"+vNum+".wmv";
   vUrl="http://in.joinourwebsite.com/tour_video/preview.html?g="+v;
	window.open(vUrl,"Video","height=240, width=320 scrollbars=no,location=no,status=no,toolbar=no,menubar=no");
}
