var css_browser_selector = function() {
	var 
		ua = navigator.userAgent.toLowerCase(),
		is = function(t){ return ua.indexOf(t) != -1; },
		h = document.getElementsByTagName('html')[0],
		b = (!(/opera|webtv/i.test(ua)) && /msie (\d)/.test(ua)) ? ((is('mac') ? 'ieMac ' : '') + 'ie ie' + RegExp.$1)
			: is('gecko/') ? 'gecko' : is('opera') ? 'opera' : is('konqueror') ? 'konqueror' : is('applewebkit/') ? 'webkit safari' : is('mozilla/') ? 'gecko' : '',
		os = (is('x11') || is('linux')) ? ' linux' : is('mac') ? ' mac' : is('win') ? ' win' : '';
	var c = b+os+' js';
	h.className += h.className?' '+c:c;
}();


function popit(filename, title) {
CONTENT = "<html><head><title>" + title + "</title></head><body style=\"margin:0px; background: #220408;\">";
CONTENT = CONTENT + "<OBJECT ID=\"MediaPlayer\" WIDTH=\"740\" HEIGHT=\"540\" CLASSID=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" TYPE=\"application/x-oleobject\">";
CONTENT = CONTENT + "<PARAM NAME=\"FileName\" VALUE=\"" + filename + "\">";
CONTENT = CONTENT + "<PARAM name=\"autostart\" VALUE=\"false\">";
CONTENT = CONTENT + "<PARAM name=\"ShowControls\" VALUE=\"true\">";
CONTENT = CONTENT + "<param name=\"ShowStatusBar\" value=\"false\">";
CONTENT = CONTENT + "<PARAM name=\"ShowDisplay\" VALUE=\"false\">";
CONTENT = CONTENT + "<EMBED TYPE=\"application/x-mplayer2\" SRC=\"" + filename + "\" NAME=\"MediaPlayer\"";
CONTENT = CONTENT + "WIDTH=\"740\" HEIGHT=\"540\" ShowControls=\"1\" ShowStatusBar=\"0\" ShowDisplay=\"0\" autostart=\"0\"> </EMBED>";
CONTENT = CONTENT + "</OBJECT>";
CONTENT = CONTENT + "<a href=\"#\" style=\"color: #fff; position: relative; top: 2px; left: 640px;\"onClick=\"javascript:window.close(opener=0)\">Close Window</a></body></html>";
pop = window.open('','','width=740,height=568,toolbar=0,scrollbars=0,screenX=100,screenY=30,left=100,top=30');
pop.document.open();
pop.focus();
pop.document.write(CONTENT);
pop.document.close();
}