if(navigator.userAgent.indexOf("Firefox")!=-1)
{
var versionindex=navigator.userAgent.indexOf("Firefox")+8
	if (parseInt(navigator.userAgent.charAt(versionindex))>=1)
	{
		//alert("This is Firefox!");
		function videoWin(v)
		{
   		day = new Date();
   		id = day.getTime();
   		var video = v;
   		newWin = window.open('', id, 'width=420, height=440');
   		newWin.document.writeln('<HTML><HEAD><TITLE>Answer Page Saves You Money<\/TITLE><\/HEAD><BODY BGCOLOR="#ffffff">');
   		newWin.document.writeln('<DIV ALIGN="center">');
   		newWin.document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="390" id="'+video+'" align="middle">');
   		newWin.document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
   		newWin.document.writeln('<param name="movie" value="' + video +'"/>');
   		newWin.document.writeln('<param name="quality" value="high" />');
   		newWin.document.writeln('<param name="bgcolor" value="#000000" />');
   		newWin.document.writeln('<param name="swliveconnect" value="true">');
   		newWin.document.writeln('<embed src="' + video + '" swliveconnect="true" quality="high" bgcolor="#000000" width="400" height="390" name="tv_spot" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
   		newWin.document.writeln('</object><script language="javascript" src=\'ieupdate.js\'><\/script>');
   		newWin.document.writeln('<FORM><INPUT TYPE="button" onClick="window.close\(\)\;" VALUE="Close Window"><\/FORM>');
   		newWin.document.writeln('<\/FONT><\/DIV><\/BODY><\/HTML>');
   		newWin.document.close();
   		}//end videoWin
	}
}//end if

var version=0
if (navigator.appVersion.indexOf("MSIE")!=-1)
{
var temp=navigator.appVersion.split("MSIE")
version=parseFloat(temp[1])
}

if (version>=5.5) //NON IE browser will return 0
{
	//alert("You're using IE5.5+");
	var oPopup = window.createPopup();
	function videoWin(v) 
	{
	var video = v;     
	// The popup object exposes the document object and its  properties.    
 	var oPopBody = oPopup.document.body;
	// The following HTML that populates the popup object with a string.
	var content;
	content ='<HTML><HEAD><TITLE>Answerpage Saves You Money<\/TITLE><\/HEAD><BODY BGCOLOR="#ffffff">';
	content +='<DIV ALIGN="center">';
	content +='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="390" id="'+video+'" align="middle">';
	content +='<param name="allowScriptAccess" value="sameDomain" />';
	content +='<param name="movie" value="' + video +'"/>';
	content +='<param name="quality" value="high" />';
	content +='<param name="bgcolor" value="#000000" />';
	content +='<param name="swliveconnect" value="true">';
	content +='<embed src="'+ video + '" swliveconnect="true" quality="high" bgcolor="#000000" width="400" height="390" name="tv_spot" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	content +='</object><script language="javascript" src=\'ieupdate.js\'><\/script>';
	content +='<font size=2 color=red>Click anywhere outside of this video to close</font><\/DIV><\/BODY><\/HTML>';
	oPopBody.innerHTML = content; 
	// Parameters of the show method are in the following order: x-coordinate, y-coordinate, width, height, 
	// and the element to which the x,y coordinates are relative. Note that this popup object is displayed relative to the body of the document.
	oPopup.show(490, 60, 400, 420, document.body); 
	}//end videoWin
}//end if