 var strFieldCName293 = "Title#PublishLibID";
var strFieldName293 ="Title#PublishLibID";
 var aFieldCName293 = strFieldCName293.split("#");
 var aFieldName293 = strFieldName293.split("#");
 var strFieldCName292 = "Title";
var strFieldName292 ="Title";
 var aFieldCName292 = strFieldCName292.split("#");
 var aFieldName292 = strFieldName292.split("#");
 var strFieldCName291 = "Title";
var strFieldName291 ="Title";
 var aFieldCName291 = strFieldCName291.split("#");
 var aFieldName291 = strFieldName291.split("#");
 var strFieldCName290 = "Title";
var strFieldName290 ="Title";
 var aFieldCName290 = strFieldCName290.split("#");
 var aFieldName290 = strFieldName290.split("#");
var strChannelID = "293#292#291#290";
var aChannelID = strChannelID.split("#");
var strChannelName = "AssociatedChannel3#AssociatedChannel2#AssociatedChannel1#AssociatedChannel";
var aChannelName = strChannelName.split("#");
var strFieldCName0 = "Title";
 var aFieldCName0 = strFieldCName0.split("#");
var strFieldName0 = "Title";
 var aFieldName0 = strFieldName0.split("#");
var siteID =289
/**
 * 实体嵌入处理,咸阳网站   @xiehaiwei 2005-6-29
 * @pfileURL , 实体文件的链接地址
 * @pWidth ,   嵌入实体的显示宽度
 * @pLength ,  嵌入实体的显示高度
 * txt,html 类型的实体 在publisd 里面处理
 */

 var imageindex=1;

function getObject(pPostFix,pfileURL, pWidth, pLength)
{
 //图片类型
 	var images=new Array("gif","jpg","png","bmp");
	if(pWidth=="null" || pLength=="null"){
		pLength="";
		pWidth="";
	}
	var isimage =false;
	for(var i=0;i<images.length;i++){
		try {
		if(pPostFix==images[i]){
			 isimage=true;
			document.write("<img id='"+pfileURL+imageindex+"' src='"+pfileURL+"'></img>");


			if(pWidth=="" )
			    return;//如果为空，不执行下面的语句。

			var twidth = document.getElementById(pfileURL+imageindex).width;//得到实际宽度
			var theight = document.getElementById(pfileURL+imageindex).height;//得到实际高度
			//Math.floor(iWidth*imgHeight/iHeight);
			//alert("width="+Math.floor(twidth)/Math.floor(theight)+ " height="+Math.floor(pWidth/pLength));
			if(pLength=="" || pLength==0 ||( Math.floor(twidth)/Math.floor(theight))!=(Math.floor(pWidth)/Math.floor(pLength) )){
				pLength=Math.floor(pWidth*theight/twidth);//高度按比例缩放。
				 document.getElementById(pfileURL+imageindex).style.width=pWidth;
				 document.getElementById(pfileURL+imageindex).style.height=pLength;
	    		//alert("width="+document.getElementById(pfileURL).width+ " height="+document.getElementById(pfileURL).height);

		        break;
		}
		return	;
	}
	imageindex++;

	}
	catch (e) {}
}
	if(pLength=="" || pWidth==""){
		pLength="400";
		pWidth="300";
	}
        if(isimage)
	  return;
	if(pPostFix=="mpg" || pPostFix=="mpeg" ||
		pPostFix=="avi" || pPostFix=="mp3" || pPostFix=="wma" || pPostFix=="wmv" ){
		//document.write("<a>嵌入mpg、mpeg、avi、mp3、wma、wmv</a>");
		document.write("<OBJECT id=WindowsMediaPlayer1 height=" + pLength + " width=" + pWidth
		+ " border=0 classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6><PARAM NAME=\"URL\" "
			+ "VALUE=\"" + pfileURL + "\"></OBJECT>");
	}else if(pPostFix=="swf"){
		//document.write("<a>嵌入falsh</a>");
		document.write("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
		document.write("codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 width="+pWidth+" height="+pLength+">");
        	document.write("<param name=movie value="+pfileURL+" >");
        	document.write("<param name=quality value=high>");
        	document.write("<param name=wmode value=transparent>");
        	document.write("<embed src="+pfileURL+" quality=high  width=728 height=90 ");
		document.write("type=application/x-shockwave-flash");
		document.write("pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash>");
        	document.write("</embed> ");
		document.write("</object>");
	}else if(pPostFix=="rm"){
		document.write("<EMBED src=\"" + pfileURL + "\" width=" + pWidth + " height=" + pLength + ">");
	}
	else {
		document.write("<a style='font-size:12pt;' href='"+pfileURL+"'>"+pfileURL+"</a>");
	}
	//else if(pPostFix=="pdf"){
		//document.write("<a>嵌入pdf</a>");
		//document.write("<object classid=clsid:CA8A9780-280D-11CF-A24D-444553540000 width="+pWidth+" height="+pLength+" border=0>");
      		//document.write("<param name=_Version value=65539> ");
      		//document.write("<param name=_ExtentX value=20108> ");
      		//document.write("<param name=_ExtentY value=10866> ");
		//document.write("<param name=_StockProps value=0> ");
      		//document.write("<param name=SRC value="+pfileURL+"> ");
		//document.write("</object>");
	//}
	 //else if(pPostFix=="doc" || pPostFix=="xls"){
	//	document.write("<iframe src='"+pfileURL+"' width="+pWidth+" height="+pLength+"></iframe>");
	//}
}
