// JavaScript Document
function flashWrite(url, width, height, Play, Loop, flash_id, flash_name){
	var Play = Play==undefined?0:Play;
	var Loop = Loop==undefined?-1:Loop;
	var id = id==undefined?'':id;
	var name = name==undefined?'':name;
	var flashStr=
	'<object id="'+flash_id+'" name="'+flash_name+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">'+
	'<param name="_cx" value="7752">'+
	'<param name="_cy" value="6429">'+
	'<param name="FlashVars" value="">'+
	'<param name="Movie" value="'+url+'">'+
	'<param name="Src" value="'+url+'">'+
	'<param name="wmode" value="transparent">'+
	'<param name="Play" value="'+Play+'">'+
	'<param name="Loop" value="'+Loop+'">'+
	'<param name="Quality" value="High">'+
	'<param name="SAlign" value="">'+
	'<param name="Menu" value="-1">'+
	'<param name="Base" value="">'+
	'<param name="AllowScriptAccess" value="">'+
	'<param name="Scale" value="ShowAll">'+
	'<param name="DeviceFont" value="0">'+
	'<param name="EmbedMovie" value="0">'+
	'<param name="BGColor" value="">'+
	'<param name="SWRemote" value="">'+
	'<param name="MovieData" value="">'+
	'<param name="SeamlessTabbing" value="1">'+
	'<param name="Profile" value="0">'+
	'<param name="ProfileAddress" value="">'+
	'<param name="ProfilePort" value="0">'+
	'<param name="AllowNetworking" value="all">'+
	'<param name="AllowFullScreen" value="false">'+
	'<embed id="'+flash_id+'" name="'+flash_name+'" src="'+url+'" width="'+width+'" height="'+height+'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash">'+
	'</object>';
	document.write(flashStr);
}
$(function(){
	app.triangle();
	app.html5();
	app.flash();
	app.shadow();

	$('div.pro_class ul li').each(function(){
		if($('ul li', $(this)).length>0){
			$(this).click(function(){
				$('ul', $(this)).toggle()
			});
		}
	})
	$('div.flash ul').each(function(i){
		if(i!=0){
			$('li', $(this)).css('width', $(this).width());
		}
		switch($(this).attr('class')){
			case 'menu3_1':
			case 'menu3_2':
			case 'menu3_3':
			case 'menu3_4':
			case 'menu3_5':
			case 'menu3_6':
				$(this).mouseover(function(){$('ul.menu3').show();$(this).show()}).mouseout(function(){$('div.flash ul').hide()});
				break;
			case 'menu3':
				$(this).mouseover(function(){$(this).show()}).mouseout(function(e){$('div.flash ul').hide()});
				break;
			default:
				$(this).mouseover(function(){$(this).show()}).mouseout(function(){$('div.flash ul').hide()});
				break;
		}
	})
	$('ul.menu3 li').each(function(i){
		$(this).mouseover(function(){
			$('ul.menu3_1').hide();
			$('ul.menu3_2').hide();
			$('ul.menu3_3').hide();
			$('ul.menu3_4').hide();
			$('ul.menu3_5').hide();
			$('ul.menu3_6').hide();
			$('ul.menu3_'+(i+1)).show();
		});
	})
	$('div.left_menu div.menu li.active span.center').attr('shadow', 'true');
	app.nopic();
});
