//function openNewWindow(Tpage,Twidth,Theight){ 
//window.open(Tpage,'thewin', 'height='+Theight+',width='+Twidth+',left=300,top=80,toolbar=no,scrollbars=no'); } 

function openNewWindow(Tpage,Twidth,Theight){ 
window.open(Tpage,'thewin', 'height='+Theight+',width='+Twidth+',left=300,top=80,toolbar=no,scrollbars=no'); } 

function objflash(flwidth,flheight,flvalue){
document.write("<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+flwidth+"' height='"+flheight+"'><param name='movie' value='"+flvalue+"' /><param name='quality' value='high' /><param name='wmode' value='opaque' /><param name='swfversion' value='8.0.35.0' /><param name='expressinstall' value='Scripts/expressInstall.swf' /><object type='application/x-shockwave-flash' data='"+flvalue+"' width='"+flwidth+"' height='"+flheight+"'><param name='quality' value='high' /><param name='wmode' value='opaque' /><param name='swfversion' value='8.0.35.0' /><param name='expressinstall' value='Scripts/expressInstall.swf' /><div><h4>Adobe Flash Player。</h4><p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Adobe Flash Player' width='112' height='33' /></a></p></div></object></object>");
}
function objimg(imgwidth,imgheight,imgvalue){
document.write("<img src='"+imgvalue+"' width='"+imgwidth+"' height='"+imgheight+"' />");
}

/*
函数名称：SinotruckWin
函数功能：弹出新闻页面
参　　数：title--新闻标题
参　　数：msg--新闻内容（引用页面）
参　　数：pdata--日期
参　　数：sourse--新闻出处
备　　注：
修改日期：2009-11-25
修改人：荣卫方
*/
function SinotruckWin(title, msg,pdata,sourse){ 
    var w=380;
	var h=394;
	var titleheight = "23px"; 
	var bordercolor = "#336699"; 
	var titlecolor = "#000";
	var titlebgcolor = "#336699"; 
	var bgcolor = "#FFFFFF"; 
	
	var iWidth = document.documentElement.clientWidth; 
	var iHeight = document.documentElement.clientHeight; 
	var bgObj = document.createElement("div"); 
	bgObj.style.cssText = "position:absolute;left:0px;top:0px;width:"+iWidth+"px;height:"+Math.max(document.body.clientHeight, iHeight)+"px;filter:Alpha(Opacity=30);opacity:0.3;background-color:#000000;z-index:101;";
	document.body.appendChild(bgObj); 
	
	var msgObj=document.createElement("div");
	msgObj.style.cssText = "position:absolute;font:11px '宋体';top:0px;left:"+(iWidth-w)/2+"px;width:"+w+"px;height:"+h+"px;text-align:center;border:1px solid "+bordercolor+";background-color:"+bgcolor+";padding:0px;line-height:22px;z-index:102;overflow:hidden";
	document.body.appendChild(msgObj);
	
	new Effect.Scale(msgObj,150,{ sync: false, scaleFromCenter: false, scaleX: false,scaleContent: true,scaleFrom: 20, restoreAfterFinish: false });
	
	var table = document.createElement("table");
	msgObj.appendChild(table);
	table.style.cssText = "margin:0px;border:0px;padding:0px;width:100%;";
	table.cellSpacing = 0;
	var tr = table.insertRow(-1);
	
	
	/*关闭*/
	var closeBtn = tr.insertCell(-1);
	closeBtn.style.cssText = "cursor:pointer;height:23px padding:0px;background-color:#fff;color:#9BBB63;text-align:right;font:8px;";
	closeBtn.innerHTML = "<img src='/images/X.png' width='13' height='12' border='0' align='absmiddle' /> Close&nbsp;";
	closeBtn.onclick = function(){ 
		document.body.removeChild(bgObj); 
		document.body.removeChild(msgObj); 
	} 
	
	/*标题*/
	var titlebox = table.insertRow(-1).insertCell(-1);
	titlebox.style.cssText = "width:100%;height:30px;text-align:left;padding:3px 20px 5px 15px;margin:0px;font: 12px '微软雅黑';color:"+titlecolor+";font-weight:bold;border:0px solid " + bordercolor + ";background-color:#D7E4BD;";
	
	titlebox.innerHTML =title;
	
	/*日期，出处*/
	var Soursebox = table.insertRow(-1).insertCell(-1);
	Soursebox.style.cssText = "width:100%;height:30px;text-align:left;padding:3px 20px 5px 10px;margin:0px;font: 9px '微软雅黑';color:#7f7f7f;font-weight:bold;border:0px solid " + bordercolor + ";";
	
	Soursebox.innerHTML = "Last updated : "+pdata+"<br/>Source: "+sourse;
	
	/*正文*/
	var msgBox = table.insertRow(-1).insertCell(-1);
	msgBox.style.cssText = "width:90%;text-align:left;padding:2px 5px 0px 10px;margin:0px;font: 10px 'Arial';background-color:#fff;overflow:hidden";
	frmH=370;
	frms="<iframe width='360' height='"+frmH+"' scrolling='auto' frameborder='0' src='"+msg+"' id='frm1'></iframe>";
	msgBox.innerHTML=frms;
	
	/*ABOUT SINOTRUCK*/
	var Aboutbox = table.insertRow(-1).insertCell(-1);
	Aboutbox.style.cssText = "width:100%;height:50px;text-align:left;padding:8px;margin:0px;font: 9px '微软雅黑';color:#7f7f7f;font-weight:bold;border:0px solid " + bordercolor + ";line-height:12px;";
	
	Aboutbox.innerHTML = "<hr color='#D7E4BD'><br/><span style='color:#000; font-weight:bold;'>ABOUT SINOTRUCK</span><br/>CNHTC&nbsp; (China National Heavy Truck Company ) founded  in 1935 specialized in manufacturing truck, crane chassis, oilfield machinery  and engineering work for trucks.<br/>Sinotruck International a international marketing arm for CNHTC .  Sinotruck International has achieved a commendable success in  building &ldquo;Sinotruk&rdquo; brand name as the pride of&nbsp; nation .";
	
	//setTimeout(msgBox.innerHTML=frms,5000); 
	//new Effect.Scale(this, yScale, {scaleX: false, duration: this.resizeDuration, queue: 'front'}); 
	//new Effect.Scale(this.outerImageContainer, yScale, {scaleX: false, duration: this.resizeDuration, queue: 'front'}); 
	//msgBox.innerHTML="<iframe width='440' height='"+frmH+"' scrolling='auto' frameborder='0' src='"+msg+"' id='frm1'></iframe>"
	//Effect.Appear($('frm1')); 
    //Effect.Appear($('frm1'), { duration: 3.0 }); 
	//$('frm1').hide();
	//new Effect.Scale($('frm1'),yScale,{scaleX: false, duration: $('frm1'), delay: 100}); 
	//new Effect.Scale($('frm1'), 500);
	//$('frm1').hide()
} 