function openflash(width,height,src){ 
    return "<object classid=\"clsid: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+"><param name=movie value="+src+"><param name=quality value=high ><embed src="+src+" quality=high  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width="+width+" height="+height+"></embed></object>"; 
} 

function writeflash(src){ 
    document.write(src); 
} 



function flashTopMenu(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="allowScriptAccess" value="sameDomain" /> ';
	html += '<param name="movie" value="'+src+'" />';
	html += '<param name="quality" value="high" />';
	html += '<param name="scale" value="noscale" />';
	html += '<param name="salign" value="lt" />';
	html += '<param name="wmode" value="transparent" />';
	//html += '<param name="bgcolor" value="'+bg+'" />';
	html += '<embed src="'+src+'" quality="high" scale="noscale" salign="lt" wmode="transparent" width="'+w+'" height="'+h+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>';
	html += '<\/object>';
	document.write(html);
}

function flashmovie(src,imgsrc){
var html = '';
html = '				<object type="application/x-shockwave-flash" data="flowplayer/FlowPlayer.swf" width="315" height="265" id="flowplayer">';
html += '					<param name="allowScriptAccess" value="always">';
html += '					<param name="movie" value="http://www.mamiai.com.cn/mamiai/ucc/flowplayer/FlowPlayer.swf">';
html += '					<param name="quality" value="high">';
html += '					<param name="scaleMode" value="showAll" >';
 html += '					<param name="allowfullscreen" value="false" >';
html += '					<param name="wmode" value="transparent" >';
html += '					<param name="allowNetworking" value="all" >';
html += '					<param name="flashvars" value="config={ ';
html += '						autoPlay: true, ';
html += '						loop: false, ';
html += '						initialScale: \'scale\',';
html += '						showLoopButton: true,';
html += '						showPlayListButtons: false,';
html += '						playList: [';
html += '							{ url: \''+src+'\' },';
html += '							{ url: \''+imgsrc+'\' }';
html += '						]';
html += '						}" >';
html += '				</object>';
	document.write(html);
}

function baby_love_pop() {
	var features = "width=1000,height=670";
	var theUrl = "/mamiai/babylove/index.mamiai";
	winopen=eval('window.open("'+theUrl+'","BabyLove","'+features+',top=0,left=0,scrollbars=no,location=no");');
	winopen.focus();
	return;
}
