﻿//将所有script代码整合链接
var mainPath ="";
var mainlink = "MainLink.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/OnlineCMS,Topevery.Online.Case.ashx");

function IncludeJavaScript(path)
{
	 document.write("<script language='javascript' type='text/javascript' src='"+path+"'></script>");		
}





  function GetWeather(){
    OnlineCMS.GetWeather(function(res){
        if(res !=null){
             document.getElementById("spn_weathermsg").innerHTML =res.value.WeatherImg+ res.value.WeatherMsg;
        }
    });
 }
