// JavaScript Document
javascript:window.history.forward(1);
var re = document.referrer;
var xmlHttp_ll=false;
var xmlHttp4 = false;
var xmlHttpshow = false;
var xmlHttpshow1 = false;
var xmlHttpMemberService = false;
var show_login=false;
var login_out_aspx_to_asp=false;
var xmlHttpflash1=false;
try {
xmlHttp_ll = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttp4 = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttpshow = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttpshow1 = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttpMemberService = new ActiveXObject("Msxml2.XMLHTTP");
show_login=new ActiveXObject("Msxml2.XMLHTTP");
login_out_aspx_to_asp = new ActiveXObject("Msxml2.XMLHTTP");
xmlHttpflash1 = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlHttp_ll = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttp4 = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttpshow = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttpshow1 = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttpMemberService = new ActiveXObject("Microsoft.XMLHTTP");
show_login=new ActiveXObject("Microsoft.XMLHTTP");
login_out_aspx_to_asp = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttpflash1 = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e2) {
xmlHttp_ll=false;
xmlHttp4 = false;
xmlHttpshow = false;
xmlHttpshow1 = false;
xmlHttpMemberService = false;
show_login=false;
login_out_aspx_to_asp = false;
xmlHttpflash1 = false;
}
}

if (!xmlHttp_ll && typeof XMLHttpRequest != 'undefined') {
xmlHttp_ll = new XMLHttpRequest();
}

if (!xmlHttp4 && typeof XMLHttpRequest != 'undefined') {
xmlHttp4 = new XMLHttpRequest();
}

if (!xmlHttpshow && typeof XMLHttpRequest != 'undefined') {
xmlHttpshow = new XMLHttpRequest();
}

if (!xmlHttpshow1 && typeof XMLHttpRequest != 'undefined') {
xmlHttpshow1 = new XMLHttpRequest();
}

if (!xmlHttpMemberService && typeof XMLHttpRequest != 'undefined') {
xmlHttpMemberService = new XMLHttpRequest();
}

if(!show_login && typeof XMLHttpRequest !='undefined')
{
  show_login=new XMLHttpRequest();	
}

if (!login_out_aspx_to_asp && typeof XMLHttpRequest != 'undefined') {
  login_out_aspx_to_asp = new XMLHttpRequest();
}

if (!xmlHttpflash1 && typeof XMLHttpRequest != 'undefined') {
  xmlHttpflash1 = new XMLHttpRequest();
}

function callServer() {
var ll_url = "iframe/ll_cu.aspx?key="+escape(re);
xmlHttp_ll.open("GET", ll_url, true);
xmlHttp_ll.send(null);
	
var url4 = "iframe/Products_Search.htm";
xmlHttp4.open("GET", url4, true);
xmlHttp4.onreadystatechange = updatePage4;
xmlHttp4.send(null);

var urlshow = "iframe/show1.aspx";
xmlHttpshow.open("GET", urlshow, true);
xmlHttpshow.onreadystatechange = updatePageshow;
xmlHttpshow.send(null);

var urlMemberService = "iframe/MemberService.aspx";
xmlHttpMemberService.open("GET", urlMemberService, true);
xmlHttpMemberService.onreadystatechange = updatePageMemberService;
xmlHttpMemberService.send(null);

/*var url_show_login="iframe/show_login.aspx";
show_login.open("GET",url_show_login,true);
show_login.onreadystatechange=updatePageshowlogin;
show_login.send(null);*/

var url_flash1="iframe/flash/flash1.htm";
xmlHttpflash1.open("GET",url_flash1,true);
xmlHttpflash1.onreadystatechange=updatePageflash1;
xmlHttpflash1.send(null);

set();
}

function updatePage4() {
if (xmlHttp4.readyState < 4) {
test4.innerHTML="loading...";
}
if (xmlHttp4.readyState == 4) {
var response = xmlHttp4.responseText;
test4.innerHTML=response;
}
}

function updatePageshow() {
if (xmlHttpshow.readyState < 4) {
show_pro.innerHTML="<br><br><br><br><strong>Loading</strong><br><img src=images/loading.gif>";
}
if (xmlHttpshow.readyState == 4) {
var response = xmlHttpshow.responseText;
show_pro.innerHTML=response;
}
}

function updatePageshow1() {
if (xmlHttpshow1.readyState < 4) {
show_pro.innerHTML="<br><br><br><br><strong>Loading</strong><br><img src=images/loading.gif>";
}
if (xmlHttpshow1.readyState == 4) {
var response = xmlHttpshow1.responseText;
show_pro.innerHTML=response;
}
}

function updatePageMemberService() {
if (xmlHttpMemberService.readyState < 4) {
MemberService.innerHTML="<br><br><br><br><strong>Loading</strong><br><img src=images/loading2.gif>";
}
if (xmlHttpMemberService.readyState == 4) {
var response = xmlHttpMemberService.responseText;
MemberService.innerHTML=response;
}
}

function updatePageshowlogin() {
if (show_login.readyState < 4) {
show_login_key.innerHTML="";
}
if (show_login.readyState == 4) {
var response = show_login.responseText;
show_login_key.innerHTML=response;
}
}

function updatePageflash1() {
if (xmlHttpflash1.readyState < 4) {
flash1.innerHTML="<strong>Loading</><br><img src=images/loading.gif>";
}
if (xmlHttpflash1.readyState == 4) {
var response = xmlHttpflash1.responseText;
flash1.innerHTML=response;
}
}

function showtable(tableid)
{
whichtable=eval("table"+tableid);
if(whichtable.style.display=="none")
{
	eval("table"+tableid+".style.display=\"\";");
}
else
{eval("table"+tableid+".style.display=\"none\";");}
}

function Chang_an(key)
{
	if(control.value!=key)
	{
	for(i=1;i<=6;i++)
	{
		if(key==i)
		{
			eval("an"+i+".background=\"images/an_blue.gif\";");
			eval("zi"+i+".color=\"#FFFFFF\";");
			var urlshow1 = "iframe/show"+i+".aspx";
            xmlHttpshow1.open("GET", urlshow1, true);
            xmlHttpshow1.onreadystatechange = updatePageshow1;
            xmlHttpshow1.send(null);
		}
		else
		{   
		    
			eval("an"+i+".background=\"images/an_green.gif\";");
			eval("zi"+i+".color=\"#000000\";");
		}
	}
	}
	eval("control.value=\""+key+"\";");
}

function login_out()
{
  var urllogin_out_aspx_to_asp = "our_user/login.out.asp";
  login_out_aspx_to_asp.open('post', urllogin_out_aspx_to_asp, true);
  login_out_aspx_to_asp.send(null); 
  document.location='our_user/login.out.aspx';
}

function Check_Input()
{
  if(document.form1.Product_Name.value=="") {
	document.form1.Product_Name.focus();
    alert("Please Input a search term!");
	return false;
  }
}

function show_notic()
{
  var notice_key=document.getElementById("new_notice");
  if(notice_key.style.display=="none")
  {
	eval("new_notice.style.display=\"block\";");
	eval("new_topic.style.display=\"none\";");
	eval("table_an_notice.background=\"none\";");
	eval("table_an_topic.background=\"images/news_bj.gif\";");
	eval("table_an_notice.style.cursor=\"default\";");
	eval("table_an_topic.style.cursor=\"hand\";");
  }
}

function show_topic()
{
  var topic_key=document.getElementById("new_topic");
  if(topic_key.style.display=="none")
  {
	eval("new_notice.style.display=\"none\";");
	eval("new_topic.style.display=\"block\";");
	eval("table_an_notice.background=\"images/news_bj.gif\";");
	eval("table_an_topic.background=\"none\";");
	eval("table_an_notice.style.cursor=\"hand\";");
	eval("table_an_topic.style.cursor=\"default\";");
  }
}

function show_menu(key)
{
  for(i=1;i<=10;i++)
  {
	if(i==key)
	{
	  var get_menu=document.getElementById("menu"+i);
      get_menu.style.display="block";
	}
	else
	{
	  var get_menu=document.getElementById("menu"+i);
      get_menu.style.display="none";
	}
  }
}

function cang_menu(key)
{
  for(i=1;i<=key;i++)
  {
    var get_menu=document.getElementById("menu"+i);
    get_menu.style.display="none";
  }
}


function set()
{
  changeInt=window.setInterval("Change_Img()",8000);  
  changeInt;
}

var num=1 //设置图片数初始值 
var nummax=2 //图片数，可根据实际数更改
var filters_num=10;
var filters_nummax=22;

function Change_Img()
{
  get_img=eval("index_adv");
  get_img_include=eval("Img_adv_link");
  filters_num+=2;
  if(filters_num>filters_nummax)filters_num=10;
  if(filters_num<10)filters_num=filters_nummax;
  get_img.filters.item(0).transition=filters_num;
  get_img.filters.item(0).Apply();
  
  num=num+1;
  if(num>nummax)num=1;
  if(num<1)num=nummax;
  
  switch(num)
  {
	case 1:
	get_img_include.href="President/index_mart.html";
	get_img_include.target="_blank";
	break;
	
	case 2:
	get_img_include.href="sports/index.html";
	get_img_include.target="_blank";
	break;
	
	default:
	get_img_include.href="President/index_mart.html";
	get_img_include.target="_blank";
	break;
  }
  
  get_img.src="images/adv"+num+".jpg";
  get_img.filters.item(0).Play();
}