


function ubbShowObj(strType,strID,strUID,strURL,intWidth,intHeight)
{
	var objPrefix="bShow";
	var tmpstr="";
	var bSwitch = false;
	bSwitch = document.getElementById(objPrefix+strID).value;
	bSwitch	=~bSwitch;
	document.getElementById(objPrefix+strID).value = bSwitch;
	if(bSwitch){
		document.getElementById(strID).innerHTML = "";
		document.getElementById(strID).style.display = "none";
		document.getElementById(strUID).style.display = "none";
	}else{
		switch(strType){
			case "swf":
			if (/(iPhone|iPad|iPod)/i.test(navigator.userAgent)) {
				tmpstr='<video  width="'+intWidth+'" height="'+intHeight+'" src="'+strURL+'" controls></video>';
				 }else{
				tmpstr='<embed src="'+strURL+'" wmode="transparent" type="application/x-shockwave-flash"  quality="hight" allowfullscreen="true" flashvars="playMovie=true&amp;auto=1&amp;adss=0" pluginspage="http://get.adobe.com/cn/flashplayer/" style="visibility: visible;" allowscriptaccess="always"  width="'+intWidth+'" height="'+intHeight+'" />';	 
	            
                 }
				break;
				}
		switch(strType){
			case "qplay":
				tmpstr='<object classid="clsid:F3D0D36F-23F8-4682-A195-74C92B03D4AF" width="'+intWidth+'" height="'+intHeight+'" id="QvodPlayer" name="QvodPlayer" onError=if(window.confirm("请您先安装Qvod播放器,然后再点击播放.")){window.location.href=" http://shop.4j4j.com/4j4j/down.htm";}else{self.reload();}><PARAM NAME="URL" VALUE="'+strURL+'"><PARAM NAME="QvodAdUrl" VALUE="http://www.4j4j.com/archiver/"><param name="Autoplay" value="1"></object>';
				break;
		}
		switch(strType){
			case "bpic":
				tmpstr='<img class="attachment-medium wp-post-image" src="'+strURL+'">';
				break;
		}
		
		document.getElementById(strID).innerHTML = tmpstr;
		document.getElementById(strID).style.display = "";
		document.getElementById(strUID).style.display = "";
	}
}
