function runContent(width, height, src, wmode, id, vars,loop,menu) {
if (AC_FL_RunContent == 0) {
alert("need add  AC_RunActiveContent.js");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', width,
'height', height,
'src', src,
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', loop?loop:'true',
'scale', 'showall',
'wmode', wmode,
'devicefont', 'false',
'name', id,
'id', id,
'menu', menu?menu:'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', src,
'salign', '',
'flashvars', vars
);
}
}

var headerH=0;
var breadH=0;
var footerH=0;
var fullH=0;
var flashH=0;
var incTime=2000;//展开时间
//var stopTime=0;//动画间隔时间

var flashO = null;	//FLASH元素
var flashoutO=null;
var headerO = null;	//header元素
var footerO = null; //询问元素

var flashNowH=0;	//FLASH变动过程中的高
var headerNowH=0;	//头部变动过程中的高
var footerNowH=0;	//尾部变动过程中的高

var flashPx = 0;	//FLASH元素一次动画变动多少PX
var headerPx=0;
var footerPx=0;

var isanimate=false;//是否是动画变动中
var isfirst=true;
var t=null;
function initVar(){
	headerH=jQuery('#header-outline2').height();
	footerH=jQuery('#outfooter').height();
	fullH=jQuery('body:first').height();
	flashH=jQuery('#opaflash').height();
	clientH=document.documentElement.clientHeight
	if(clientH>fullH){
		footerH=clientH-headerH-flashH;
		jQuery('#outfooter').height(footerH);
		fullH=clientH; 
	}
	if(clientH>flashH){
		fullH=clientH; 
	}
	
	flashNowH=flashH;
	headerNowH=headerH;
	footerNowH=footerH;
	
	flashPx=(fullH-flashH)*13/incTime;
	headerPx=headerH*13/incTime;
	footerPx=footerH*13/incTime;
	
	flashO = jQuery('#opaflash');
	headerO= jQuery('#header-outline2');
	footerO= jQuery('#outfooter');
	flashoutO=jQuery('#opaflashout');
	isfirst=false; 
}
function isReady(){
	return true;
}
function enterFullScreen(){
	if(isfirst){ 
		initVar();
	} 
	footerO.height(0);
	flashO.animate({'height':fullH+'px','top':'-'+headerH+'px'},incTime);
	//headerO.animate({'height':0},incTime);
	//footerO.animate({'height':0},incTime);
}
function outFullScreen(){
	//if(isfirst){
	//	initVar();
	//}
	flashO.animate({'height':flashH+'px','top':'0px'},incTime,function(){footerO.height(footerH);flashoutO.height(flashH);});
	//headerO.animate({'height':headerH},incTime);
	//footerO.animate({'height':footerH},incTime);
}

function enterFullScreen2(){
	if(isanimate)return;
	isanimate=true;
	if(isfirst){
		initVar();
	}
	var fn=infull;
	t=setInterval(fn,13);
}
function outFullScreen2(){
	if(isanimate)return;
	isanimate=true;
	t=setInterval("outfull()",13);
}
function infull(){
	//flashNowH=flashNowH+flashPx;
	headerNowH=headerNowH-headerPx;
	footerNowH=footerNowH-footerPx;
	if(flashNowH>=fullH||headerNowH<=0||footerNowH<=0){
		clearInterval(t);
		flashO.height(fullH);
		headerO.height(0);
		footerO.height(0);
		isanimate=false;
		return;
	};
	//flashO.height(flashNowH);
	headerO.height(headerNowH);
	footerO.height(footerNowH);
}
function outfull(){
	//flashNowH=flashNowH-flashPx;
	headerNowH=headerNowH+headerPx;
	footerNowH=footerNowH+footerPx;
	if(flashNowH<=flashH||headerNowH>=headerH||footerNowH>=footerH){
		clearInterval(t);
		flashO.height(flashH);
		headerO.height(headerH);
		footerO.height(footerH);
		isanimate=false;
		return;
	};
	//flashO.height(flashNowH);
	headerO.height(headerNowH);
	footerO.height(footerNowH);
}
jQuery.noConflict(); 
(function ($) {
$(function(){
// newyear();
comesoon();
});
})(jQuery);
function comesoon(){
	jQuery('.comesoon').click(function(){
		showNewYear();
		jQuery('html').get(0).scrollTop=0;
		return false;
	});
}
/* function newyear(){
	if(jQuery('#homemulan').length==0)return;
	gdimg = gdimg?gdimg:'10815.jpg';
	gdbgc = gdbgc?gdbgc:'#4B7897';
	html ='<div id="outcont" style="height:0;overflow:hidden;text-align:center;background:'+gdbgc+';"><img src="media/mulan/images/'+gdimg+'"/></div>';
	jQuery('body').prepend(html);
	jQuery('#outcont img').load(function(){
		showNewYear();
	});
	jQuery('#outcont').click(function(){
		hiddenImg();
	});
}
function showNewYear(){
	timedown = timedown?timedown:2000;
	timestop = timestop?timestop:10000;
	gdimgh = gdimgh?gdimgh:'540px';
	jQuery('#outcont').animate({height:gdimgh},timedown,function(){
		setTimeout('hiddenImg()',timestop);
	});
}
function hiddenImg(){
	var timeup	 = timeup?timeup:1500;
	jQuery('#outcont').animate({height:'0'},timeup);
} */

