/*=============================================
	KAZZ-MATU.JS ver 2.221
=============================================*/
var flash_ver = 9;

/*--------------- [ init functions ] ---------------*/

function addLoadEvent(func){
	if (!document.getElementById) return;

	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
	   	window.onload = func;
	} else {
		window.onload = function(){
			oldonload();
			func();
		}
	}
}

/*--------------- [ Flash View 2 ] ---------------*/
function FlashView(filename,width,height,wmode,obj_id,bg){
	var MM_contentVersion = flash_ver;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i){
			if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i];
		}
		var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		try{
			var flashVersion=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").FlashVersion();
			flashVersion=Math.floor(flashVersion / 0x10000);
		}catch(e){
			flashVersion = MM_contentVersion;
		}
		var MM_FlashCanPlay = flashVersion >= MM_contentVersion;
	}

	if(MM_FlashCanPlay){
		var obj = document.getElementById(obj_id);
		obj.style.display = 'none';
		var obj_par = obj.parentNode;
		var date = new Date();
		var now = date.getTime();


		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+MM_contentVersion+',0,0,0" width="' + width + '" height="' + height + '">');
		document.write(' <param name="movie" value="' + filename +'?'+now+ '" />');
		document.write(' <param name="bgcolor" value="' + bg + '" />');
		if(wmode==1){
			document.write(' <param name="wmode" value="transparent" />');
		}
		document.write(' <param name="quality" value="high" />');
		if(wmode==1){
			document.write(' <embed src="' + filename +'?'+now+ '" quality="high" bgcolor="'+ bg +'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + ' " height="' + height + '" wmode="transparent"></embed>');
		}else{
			document.write(' <embed src="' + filename +'?'+now+ '" quality="high" bgcolor="'+ bg +'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + ' " height="' + height + '"></embed>');
		}
		document.write('</object>\n');

		obj_par.removeChild(obj);

	}else{
		//NoFlash
	}
}

$(document).ready(function(){
	$("#news_menu").load("/news/menu.html");
});
