﻿//显示Flash
function ShowFlash(url,width,height){
        document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'" VIEWASTEXT>');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high"> ');
        document.write('<param name="wmode" value="transparent"> ');
        document.write('<param name="menu" value="false"> ');
        document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed> ');
        document.write('</object> ');
}

//播放视频
function ShowVideo(url,width,height)
{
	document.write( '<EMBED id=MediaPlayer src="' + url + '" width="' + width + '" height="' + height + '" loop="false" autostart="true"></EMBED>');
}

//获取查询字符串
function getQueryString(key)
{
	var strS, re , qValue;
	re = "\?";
	strS = document.location.search.replace(re, "");
	var sList = strS.split('&');
	var i , sList2;
	qValue = "";
	for(var i=0;i < sList.length ; i++)
	{
		sList2 = sList[i].split('=');
		if ( sList2[0] == key )
		{
			qValue = sList2[1];
		}
	}
	return unescape(qValue);
}
