﻿if (parent.frames.length != 0) { top.location.href = self.location.href; }
document.oncontextmenu = new Function('return false;');
/*
if (typeof document.onselectstart != "undefined") {
	document.onselectstart = new Function('return false;')
}
else if (typeof document.body.style.MozUserSelect != "undefined") {
	document.body.style.MozUserSelect = "none";
}
else {
	document.onmousedown = new Function('return false;')
	document.style.cursor = "default";
}
*/
//
// flashObject (30-10-2007)
//
function flashObject(name, url, width, height, vars, bgcolor, wmode, title)
{
	var html = "";
	vars = (vars == null) ? "" : vars;
	bgcolor = (bgcolor == null)? "#FFFFFF" : bgcolor;
	wmode = (wmode == null) ? "opaque" : wmode;
	title = (title == null) ? "" : title;
 
	if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) 
	{
		html = '<embed title="' + title + '" type="application/x-shockwave-flash" src="' + url + '" flashvars="' + vars + '" width="' + width + '" height="' + height + '"';
		html += ' id="' + name + '" name="' + name + '" bgcolor="' + bgcolor + '" wmode="' + wmode + '" allowfullscreen="true" quality="high" menu="false"';
	} 
	else 
	{
		html = '<object title="' + title + '" id="' + name + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '">';
		html += '<param name="allowFullScreen" value="true">';
		html += '<param name="bgcolor" value="' + bgcolor + '">';
		html += '<param name="movie" value="' + url + '">';
		html += '<param name="flashvars" value="' + vars + '">';
		html += '<param name="quality" value="high">';
		html += '<param name="wmode" value="' + wmode + '">';
		html += '<param name="menu" value="false">';
		html += '</object>';
	}
	document.write(html);
}