function setupDescriptions()
{
	var x = navigator.appVersion;
	y = x.substring(0,4);
	if (y>=4) setVariables();
}

var x,y,a,b;
function setVariables()
{
	if (navigator.appName == "Netscape")
	{
		h=".left=";
		v=".top=";
		dS="document.";
		sD="";
	}
	else 
	{
		h=".pixelLeft=";
		v=".pixelTop=";
		dS="";
		sD=".style";
	}
}
var isNav = (navigator.appName.indexOf("Netscape") !=-1);
function popLayer(a)
{
	desc = "<table class='tip'><td><font size=2>";
	
	if (a==1) desc += "TV commercials, radio commercials, and commercials for web audio or telephone marketing";
	if (a==2) desc += "Documentary and narration for broadcast productions, corporate flash narration and CD-ROM presentations.";
	
	desc += "</font></td></table>";
	
	if(isNav) 
	{
		document.object1.document.write(desc);
		document.object1.document.close();
		document.object1.left=x+25;
		document.object1.top=y;
	}
	else 
	{
		object1.innerHTML=desc;
		eval(dS+"object1"+sD+h+(x+25));
		//eval(dS+"object1"+sD+v+y); -- Jinghua: this doesn't work when you scroll the page down a bit.
		eval(dS+"object1"+sD+v+(195+(a-1)*25));
	}
}

function hideLayer(a)
{
	if(isNav) 
		eval(document.object1.top=a);
	else 
		object1.innerHTML="";
}

function handlerMM(e)
{
	x = (isNav) ? e.pageX : event.clientX;
	y = (isNav) ? e.pageY : event.clientY;
}
if (isNav)
{
	document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = handlerMM;

// Modal window
function modalWin(vURL) 
{
	//window.showModalDialog(vURL,"play", "dialogWidth:800px;dialogHeight:250px");
	//window.showModalDialog("Play.html?"+vURL,"play", "dialogWidth:800px;dialogHeight:250px");
	window.open("Play.html?"+vURL,"play", "dialogWidth:800px;dialogHeight:250px");
	return false;
}