﻿


//图片展示
$import("../script/lightbox/js/prototype.js","js");
$import("../script/lightbox/js/effects.js","js");
$import("../script/lightbox/js/lightbox.js","js");
//图片轮播
$import("../script/transition/transition.js","js");




var xmlHttp;

function createXMLHttpRequest(){if(window.ActiveXObject){xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}else if(window.XMLHttpRequest){xmlHttp = new XMLHttpRequest();}}

function startRequest(url,id){
	createXMLHttpRequest();
	try{
		xmlHttp.onreadystatechange = function() {
			handleStateChange(id);
		}
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null); 
	}
	catch(exception)
	{
		alert("您要访问的资源不存在!");
	}
}

function handleStateChange(id)
{ 
	if(xmlHttp.readyState == 4)
	{ 
		if (xmlHttp.status == 200 || xmlHttp.status == 0){
		//$(id).innerHTML = xmlHttp.responseText;
		if ($(id)) $(id).insertAdjacentHTML("afterEnd", xmlHttp.responseText); 
		}
	}
}






































function load_script(){
	try{rdl_doInit()}catch(e){};

	}





































//id对象获取
function $() {var elements = new Array();for (var i = 0; i < arguments.length; i++) {var element = arguments[i];if (typeof element == 'string') element = document.getElementById(element);if (arguments.length == 1) return element;elements.push(element);}return elements;}
function uncompile(code) //解密
{ 
	code=unescape(code); 
	var c=String.fromCharCode(code.charCodeAt(0)-code.length); 
	for(var i=1;i<code.length;i++){ 
	c+=String.fromCharCode(code.charCodeAt(i)-c.charCodeAt(i-1)); 
	} 
	return c; 
}

function $import(path, type){
  if (type == "css") {
      document.write("<" + "link rel=\"stylesheet\" rev=\"stylesheet\" href=\"" + path + "\" type=\"text/css\" media=\"screen\" />");
  } else {
      document.write("<" + "script src=\"" + path + "\" type=\"text/javascript\"></" + "script>");
  }
}
function killErrors() { 
return true; 
} 
