﻿Leador = new Object();
Leador._scriptName = "js/miniLoad.js";
Leador._getScriptLocation = function()
{
    var scriptLocation = "";
    var SCRIPT_NAME = Leador._scriptName.toLowerCase();
    var scripts = document.getElementsByTagName('script');
    for (var i = 0; i < scripts.length; i++)
    {
        var src = scripts[i].src.toLowerCase();
        if (src)
        {
            var index = src.lastIndexOf(SCRIPT_NAME);
            if ((index > -1) && (index + SCRIPT_NAME.length == src.length))
            {
                scriptLocation = src.slice(0, -SCRIPT_NAME.length);
                break;
            }
        }
    }
    return scriptLocation;
}

var g_virtualPath = "http://service.ishowchina.com/";
var g_jsPath = g_virtualPath + "script/";

var jsfiles = new Array();
jsfiles.push("jquery-1.3.2.js");
jsfiles.push("jquery-ui-1.7.custom.min.js");
jsfiles.push("json2.js");
//jsfiles.push("calendar.js");
//jsfiles.push("template.js");
jsfiles.push("util.js");
//jsfiles.push("common.js");
//jsfiles.push("config.js");
//jsfiles.push("iframeInterface.js");

var allScriptTags = "";
for (var i = 0; i < jsfiles.length; i++)
{
    if (/MSIE/.test(navigator.userAgent) || /Safari/.test(navigator.userAgent))
    {
        var currentScriptTag = "<script src='" + g_jsPath + jsfiles[i] + "'></script>";
        allScriptTags += currentScriptTag;
    }
    else
    {
        var s = document.createElement("script");
        s.src = g_jsPath + jsfiles[i];
        var h = document.getElementsByTagName("head").length ?
                   document.getElementsByTagName("head")[0] :
                   document.body;
        h.appendChild(s);
    }
}
if (allScriptTags)
{
    document.write(allScriptTags)
};
Leador.VERSION_NUMBER = "$Revision: 200803141450 $";
