$(document).ready(function(){
	
	$(".daohang ul li").hover(function(){
		$(this).children("ul").slideDown();
		//changeIcon($(this).children("a"));
	},function(){
		$(this).children("ul").slideUp();
		//changeIcon($(this).children("a"));
	});

	$(".hydt").click(function(){
		$(this).css("color","#000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".hydt_show").css("display","").siblings().css("display","none");
		$(".more").attr("href","/IndustryNews/");
	});
	$(".zxzx").click(function(){
		$(this).css("color","#000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".zxzx_show").css("display","").siblings().css("display","none");	
		$(".more").attr("href","/DecorationInfomation/");
	});
	
	$(".gsxw_index").click(function(){
		$(this).css("color","#000000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".gsxw_show_index").css("display","").siblings().css("display","none");
		$(".more_2").attr("href","/CompanyNews/");
	});
	$(".ygzj").click(function(){
		$(this).css("color","#000000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".ygzj_show").css("display","").siblings().css("display","none");	
		$(".more_2").attr("href","/StaffHome/");
	});
	
	$(".mrjj").click(function(){
		$(this).css("color","#000000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".mrjj_show").css("display","").siblings().css("display","none");
		$(".more3").attr("href","/CelebrityHome/");
	});
	$(".xzfs").click(function(){
		$(this).css("color","#000000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".xzfs_show").css("display","").siblings().css("display","none");	
		$(".more3").attr("href","/ConstellationReconnaissance/");
	});
	
	$(".jjx").click(function(){
		$(this).css("color","#000000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".jjx_show").css("display","").siblings().css("display","none");
		$(".more4").attr("href","/HomeShow/");
	});
	$(".cljj").click(function(){
		$(this).css("color","#000000").siblings().css("color","#8A878F");
		$(this).css("background","url(/resources/images/bg.jpg)").siblings().css("background"," ");
		$(".cljj_show").css("display","").siblings().css("display","none");	
		$(".more4").attr("href","/Fashion/");
	});
	
	$(".img_show").imgbox({
		'zoomOpacity'	: true,
		'alignment'		: 'center',
		 'overlayShow': true,
	    'allowMultiple': false
	});

});

function LoadFlash()
{ 

    var interval_time = 5;

    var focus_width =1002

    var focus_height = 257

    var text_height = 0

    var text_mtop = 2;

    var text_lm = 10;

    var textmargin = text_mtop + "|" + text_lm;

    var textcolor = "#2E5DB5|0xFF0000";

    var text_align = 'left';

    var swf_height = focus_height + text_height + text_mtop;

    var text_size = 14;

    var borderStyle = "1|0x000000|0";

    var pics = '/resources/images/qht3.jpg|/resources/images/qht4.jpg|/resources/images/qht1.jpg|/resources/images/qht2.jpg';

    var links = '|||';

    var texts = '|||';

    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + focus_width + '" height="' + swf_height + '">');

    document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="../resources/media/index_show.swf"> <param name="quality" value="high"><param name="Wmode" value="transparent">');

    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');

    document.write('<param name="FlashVars" value="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '&textmargin=' + textmargin + '&textcolor=' + textcolor + '&borderstyle=' + borderStyle + '&text_align=' + text_align + '&interval_time=' + interval_time + '&textsize=' + text_size + '">');

    document.write('<embed src="../resources/media/index_show.swf" wmode="opaque" FlashVars="pics=' + pics + '&links=' + links + '&texts=' + texts + '&borderwidth=' + focus_width + '&borderheight=' + focus_height + '&textheight=' + text_height + '&textmargin=' + textmargin + '&textcolor=' + textcolor + '&borderstyle=' + borderStyle + '&text_align=' + text_align + '&interval_time=' + interval_time + '&textsize=' + text_size + '" menu="false" bgcolor="#ffffff" quality="high" width="' + focus_width + '" height="' + swf_height + '" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');

}

  function Marquee(){
  this.ID=document.getElementById(arguments[0]);
  this.Direction=arguments[1];
  this.Step=arguments[2];
  this.Width=arguments[3];
  this.Height=arguments[4];
  this.Timer=arguments[5];
  this.WaitTime=arguments[6];
  this.StopTime=arguments[7];
  if(arguments[8]){this.ScrollStep=arguments[8];}else{this.ScrollStep=this.Direction>1?this.Width:this.Height;}
  this.CTL=this.StartID=this.Stop=this.MouseOver=0;
  this.ID.style.overflowX=this.ID.style.overflowY="hidden";
  this.ID.noWrap=true;
  this.ID.style.width=this.Width;
  this.ID.style.height=this.Height;
  this.ClientScroll=this.Direction>1?this.ID.scrollWidth:this.ID.scrollHeight;
  this.ID.innerHTML+=this.ID.innerHTML;
  this.Start(this,this.Timer,this.WaitTime,this.StopTime);
  }
Marquee.prototype.Start=function(msobj,timer,waittime,stoptime){
  msobj.StartID=function(){msobj.Scroll();}
  msobj.Continue=function(){
    if(msobj.MouseOver==1){setTimeout(msobj.Continue,waittime);}
    else{clearInterval(msobj.TimerID); msobj.CTL=msobj.Stop=0; msobj.TimerID=setInterval(msobj.StartID,timer);}
    }
  msobj.Pause=function(){msobj.Stop=1; clearInterval(msobj.TimerID); setTimeout(msobj.Continue,waittime);}
  msobj.Begin=function(){
    msobj.TimerID=setInterval(msobj.StartID,timer);
    msobj.ID.onmouseover=function(){msobj.MouseOver=1; clearInterval(msobj.TimerID);}
    msobj.ID.onmouseout=function(){msobj.MouseOver=0; if(msobj.Stop==0){clearInterval(msobj.TimerID); msobj.TimerID=setInterval(msobj.StartID,timer);}}
    }
  setTimeout(msobj.Begin,stoptime);
  }
Marquee.prototype.Scroll=function(){
  switch(this.Direction){
    case 0:
      this.CTL+=this.Step;
      if(this.CTL>=this.ScrollStep&&this.WaitTime>0){this.ID.scrollTop+=this.ScrollStep+this.Step-this.CTL; this.Pause(); return;}
      else{if(this.ID.scrollTop>=this.ClientScroll) this.ID.scrollTop-=this.ClientScroll; this.ID.scrollTop+=this.Step;}
      break;
    case 1:
      this.CTL+=this.Step;
      if(this.CTL>=this.ScrollStep&&this.WaitTime>0){this.ID.scrollTop-=this.ScrollStep+this.Step-this.CTL; this.Pause(); return;}
      else{if(this.ID.scrollTop<=0) this.ID.scrollTop+=this.ClientScroll; this.ID.scrollTop-=this.Step;}
      break;
    case 2:
      this.CTL+=this.Step;
      if(this.CTL>=this.ScrollStep&&this.WaitTime>0){this.ID.scrollLeft+=this.ScrollStep+this.Step-this.CTL; this.Pause(); return;}
      else{if(this.ID.scrollLeft>=this.ClientScroll) this.ID.scrollLeft-=this.ClientScroll; this.ID.scrollLeft+=this.Step;}
      break;
    case 3:
      this.CTL+=this.Step;
      if(this.CTL>=this.ScrollStep&&this.WaitTime>0){this.ID.scrollLeft-=this.ScrollStep+this.Step-this.CTL; this.Pause(); return;}
      else{if(this.ID.scrollLeft<=0) this.ID.scrollLeft+=this.ClientScroll; this.ID.scrollLeft-=this.Step;}
      break;
    }
  }

