﻿//将所有script代码整合链接
var mainPath ="";
var mainlink = "PageLink.js" ;
var head = document.getElementsByTagName("head")[0];
var nodes = head.childNodes;
for (var i = 0; i < nodes.length;++i) {
	var src = nodes.item(i).src;
	if(src) {
		var index = src.indexOf(mainlink);
		if (index >= 0) {
			mainPath = src.substring(0, index);
			
		}
	}
}

IncludeJavaScript(mainPath + "ajaxpro/prototype.ashx");
IncludeJavaScript(mainPath + "ajaxpro/core.ashx");
IncludeJavaScript(mainPath + "ajaxpro/converter.ashx");
IncludeJavaScript(mainPath + "/ajaxpro/TopeveryCMS,Topevery.CMS.Web.ashx");

function IncludeJavaScript(path) {

    
	 document.write("<script language='javascript' type='text/javascript' src='"+path+"'></script>");
	 document.write("<script type='text/javascript' language='javascript' src='../../../Javascript/jquery-1.2.1.js'></script>");
	 document.write("<script type='text/javascript' language='javascript' src='../../../Javascript/json.js'></script>");	
}

function GetNewTalkInfo(){
    TopeveryCMS.GetNewTalk(function(res){
        $("#ftTitle").html(res.value.FtTitle);
        $("#jddw").html(res.value.Jddw);
        $("#jb").html(res.value.Jb);
        $("#ftTime").html(res.value.FtTime);
        $("#ftSummay").html(res.value.FtSummary);
        $("#TwHref").attr("href", res.value.TwHref);
        $("#ftCome").attr("href", res.value.FtCome);            
    });
}



    






