/*
 * $Id
*/
/*
 * Copyright (c) 2009 QIHAN Corporation
 * Owner: Corporate Webmaster (NUS_N_NIWWW)
 * Documentation is available at https://w3.tap.qihan.com/w3ki04/display/cwt/qihancommon.js
*/
/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
/*
 * @license 
 * jQuery Tools 1.2.5 Scrollable - New wave UI design
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/scrollable.html
 *
 * Since: March 2008
 * Date:    Wed Sep 22 06:02:10 2010 +0000 
 */
(
 function(B)
  {
	 B.tools=B.tools||{version:"1.2.5"};
	 B.tools.scrollable=
	 {
		 conf:
		  {
			 activeClass:"qihan-active",
			 circular:false,
			 clonedClass:"cloned",
			 disabledClass:"qihan-disabled",
			 easing:"swing",
			 initialIndex:0,
			 item:null,
			 items:".qihan-home-banner",
			 keyboard:true,
			 mousewheel:false,
			 next:".qihan-top-qh-next",
			 prev:".qihan-top-qh-prev",
			 speed:400,
			 vertical:false,
			 touch:true,
			 wheelSpeed:0
			}
		};
      function D(I,G)
	   {
		  var F=parseInt(I.css(G),10);
		  if(F)
		  {return F}
		  var H=I[0].currentStyle;
		  return H&&H.width&&parseInt(H.width,10)
		}
		function E(F,H){var G=B(H);return G.length<2?G:F.parent().find(H)}
		var C;
		function A(P,O)
		{
			var H=navigator.platform.match(/iPad/i)!=null;
			var R=0;
			var Q=this,G=P.add(Q),F=P.children(),N=0,J=O.vertical;
			if(!C){C=Q}
			if(F.length>1)
			{F=B(O.items,P)}
			B.extend
			(
			  Q,
			  {
				 getConf:function(){return O},
				 getIndex:function(){return N},
				 getSize:function(){return Q.getItems().size()},
				 getNaviButtons:function(){return I.add(K)},
				 getRoot:function(){return P},
				 getItemWrap:function(){return F},
				 getItems:function(){return F.children(O.item).not("."+O.clonedClass)},
				 move:function(T,S){return Q.seekTo(N+T,S)},
				 next:function(S){if(!H){if(R>=100){return }}return Q.move(1,S)},
				 prev:function(S){return Q.move(-1,S)},
				 begin:function(S){return Q.seekTo(0,S)},
				 end:function(S){return Q.seekTo(Q.getSize()-1,S)},
				 focus:function(){C=Q;return Q},
				 addItem:function(S)
				 {
					 S=B(S);
				     if(!O.circular){F.append(S)}
				     else
				     {
					 F.children("."+O.clonedClass+":last").before(S);
                     F.children("."+O.clonedClass+":first").replaceWith(S.clone().addClass(O.clonedClass))
				     }
				    G.trigger("onAddItem",[S]);return Q
				  },
				 seekTo:function(T,Y,V)
				 {
					 if(!H)
					 {
						 if(R>=100){api.stop()}
					   }
					 if(!T.jquery){T*=1}
					 if(O.circular&&T===0&&N==-1&&Y!==0){return Q}
					 if(!O.circular&&T<0||T>Q.getSize()||T<-1){return Q}
					 var W=T;
					 if(T.jquery)
					 {T=Q.getItems().index(T)}
					 else{W=Q.getItems().eq(T)}
					 var X=B.Event("onBeforeSeek");
					 if(!V)
					 {
						 var Z=Q.getRoot().parent().attr("id");
						 if(Z&&Z=="qihan-top-main")
						 {
							 var S=3300;
							 if(Q.getIndex()=="0")
							 {
								 B("#qihan-banner-1.qihan-selected-view h1").animate({left:"-"+S+"px"},{queue:false,duration:1800})
                              }
							 if(Q.getIndex()=="1")
							 {
								 B("#qihan-banner-2.qihan-selected-view h2").animate({left:"-"+S+"px"},{queue:false,duration:1800})
							  }
							 if(Q.getIndex()=="2"){B("#qihan-banner-3.qihan-selected-view h2").animate({left:"-"+S+"px"},{queue:false,duration:1800})}
						 }
						 G.trigger(X,[T,Y]);
						 if(X.isDefaultPrevented()||!W.length){return Q}
					  }
					 var U=J?{top:-W.position().top}:{left:-W.position().left};
					 B("#qihan-top-banner .qihan-banner1-1-1 h1,#qihan-top-banner .qihan-banner1-1-1 h2").css("left","0px");
					 N=T;
					 W.siblings().removeClass("qihan-selected-view");
                     W.addClass("qihan-selected-view");
					 if(jQuery(".qihan-alternate.qihan-selected-view").length)
					  {jQuery("#qihan-news-feed-inner").addClass("qihan-alternate")}
					 else{jQuery("#qihan-news-feed-inner").removeClass("qihan-alternate")}
					 C=Q;
					 if(Y===undefined)
					 {Y=O.speed}
					 F.animate
					 (
					   U,Y,O.easing,
					   V||function()
					   {
						  G.trigger("onSeek",[T]);
						  B("#qihan-top-banner .qihan-banner1-1-1 h1,#qihan-top-banner .qihan-banner1-1-1 h2").css("left","0px");
						  if(!H)
						  {
							  if(R>=100)
							  {api.stop();return }
							}
						 }
					   );
					 return Q
				  }
				}
			   );
			  B.each
			   (
				["onBeforeSeek","onSeek","onAddItem"],
				function(T,S)
				 {
					if(B.isFunction(O[S]))
					{
						B(Q).bind(S,O[S])
                      }
					 Q[S]=function(U)
					 {
						 if(U){B(Q).bind(S,U)}
						 return Q
					  }
					}
				  );
			   if(O.circular)
			   {
				   var M=Q.getItems().slice(-1).clone().prependTo(F),L=Q.getItems().eq(1).clone().appendTo(F);
				   M.add(L).addClass(O.clonedClass);
				   Q.onBeforeSeek
				   (
					function(U,S,T)
					 {
						 if(U.isDefaultPrevented()){return }
						 if(S==-1)
						 {
							 Q.seekTo(M,T,function(){Q.end(0)});
							 return U.preventDefault()
						  }
						 else
						  {
							  if(S==Q.getSize())
							  {
								  Q.seekTo(L,T,function(){R++;Q.begin(0)})
							   }
						   }
						}
					 );
				   Q.seekTo(0,0,function(){})
				 }
				 var I=E(P,O.prev).click(function(){Q.prev()}),
				 K=E(P,O.next).click(function(){Q.next()});
				 if(!O.circular&&Q.getSize()>1)
				  {
					 Q.onBeforeSeek
					 (
					   function(T,S)
					    {
							setTimeout
							(
							  function()
							   {
								 if(!T.isDefaultPrevented())
								  {
									  I.toggleClass(O.disabledClass,S<=0);
									  K.toggleClass(O.disabledClass,S>=Q.getSize()-3)
									}
								  },1
								 )
							}
						  );
					  if(!O.initialIndex)
					  {I.addClass(O.disabledClass)}
					 }
					if(O.mousewheel&&B.fn.mousewheel)
					 {
						 P.mousewheel
						 (
						   function(S,T)
						    {
								if(O.mousewheel)
								 {
									 Q.move(T<0?1:-1,O.wheelSpeed||50);
									 return false
								  }
							 }
							)
						 }
					 if(O.keyboard)
					  {
						  B(document).bind
						   (
							 "keydown.scrollable",
							 function(S)
							  {
								 if(!O.keyboard||S.altKey||S.ctrlKey||B(S.target).is(":input"))
								  {return }
								  if(O.keyboard!="static"&&C!=Q){return }
								  var T=S.keyCode;
								  if(J&&(T==38||T==40))
								   {
									   Q.move(T==38?-1:1);
									   return S.preventDefault()
									 }
								  if(!J&&(T==37||T==39))
								   {
									   Q.move(T==37?-1:1);
									   return S.preventDefault()
									 }
								}
							   )
						  }
					 if(O.initialIndex)
					  {
						Q.seekTo(O.initialIndex,0,function(){})
					   }
		  }
		  
		  B.fn.scrollable=function(F)
		   {
			   var G=this.data("scrollable");
			   if(G){return G}
			   F=B.extend({},B.tools.scrollable.conf,F);
			   this.each
			    (
				 function()
				  {
					  G=new A(B(this),F);
					  B(this).data("scrollable",G)
				   }
				 );
				return F.api?G:this
			 }
	}
 )
(jQuery);


/*
 * @license 
 * jQuery Tools 1.2.5 / Scrollable Autoscroll
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/scrollable/autoscroll.html
 *
 * Since: September 2009
 * Date:    Wed Sep 22 06:02:10 2010 +0000 
 */
(function(B){var A=B.tools.scrollable;
A.autoscroll={conf:{autoplay:true,interval:3000,autopause:true}};B.fn.autoscroll=function(D){if(typeof D=="number"){D={interval:D}}var E=B.extend({},A.autoscroll.conf,D),C;this.each(function(){var F=B(this).data("scrollable");if(F){C=F}var H,G=true;F.play=function(){if(H){return }G=false;H=setInterval(function(){F.next()},E.interval)};F.pause=function(){H=clearInterval(H)};F.stop=function(){F.pause();G=true};if(E.autopause){F.getRoot().add(F.getNaviButtons()).hover(F.pause,F.play)}if(E.autoplay){F.play()
}});return E.api?C:this}})(jQuery);
/*
 * @license 
 * jQuery Tools 1.2.5 / Scrollable Navigator
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 *
 * http://flowplayer.org/tools/scrollable/navigator.html
 *
 * Since: September 2009
 * Date:    Wed Sep 22 06:02:10 2010 +0000 
 */
(function(B){var A=B.tools.scrollable;A.navigator={conf:{navi:".qihan-top-qh-nav",naviItem:null,activeClass:"qihan-active",indexed:false,idPrefix:null,history:false}};function C(D,F){var E=B(F);return E.length<2?E:D.parent().find(F)
}B.fn.navigator=function(E){if(typeof E=="string"){E={navi:E}}E=B.extend({},A.navigator.conf,E);var D;this.each(function(){var G=B(this).data("scrollable"),K=E.navi.jquery?E.navi:C(G.getRoot(),E.navi),J=G.getNaviButtons(),N=E.activeClass,H=E.history&&B.fn.history;if(G){D=G}G.getNaviButtons=function(){return J.add(K)};function M(P,O,Q){if(B(P).hasClass("qihan-active")||B("#qihan-top-banner .qihan-bannerqh").is(":animated")){return false}G.seekTo(O);if(H){if(location.hash){location.hash=P.attr("href").replace("#","")
}}else{return Q.preventDefault()}}function F(){return K.find(E.naviItem||"> *")}function L(O){var Q=O+1;var P=B("<"+(E.naviItem||"a")+"/>").click(function(R){M(B(this),O,R)}).attr({href:"#"+O,onclick:"bannerqh.event({'qihanEV' : 'track', 'qihanEvAction' : 'qihanlink', 'qihanEvLinktitle' : 'ls"+Q+"', 'qihanEvSection' : 'ls"+Q+"'});"}).mouseenter(function(){bannerqh.event({qihanEV:"track",qihanEvAction:"qihanhover",qihanEvLinktitle:"ls"+Q,qihanEvSection:"ls"+Q})});if(O===0){P.addClass(N)}if(E.indexed){P.text(O+1)}if(E.idPrefix){P.attr("id",E.idPrefix+O)
}return P.appendTo(K)}if(F().length){F().each(function(O){B(this).click(function(P){M(B(this),O,P)})})}else{B.each(G.getItems(),function(O){L(O)})}G.onBeforeSeek(function(P,O){setTimeout(function(){if(!P.isDefaultPrevented()){var Q=F().eq(O);if(!P.isDefaultPrevented()&&Q.length){F().removeClass(N).eq(O).addClass(N)}}},1)});function I(O,Q){var P=F().eq(Q.replace("#",""));if(!P.length){P=F().filter("[href="+Q+"]")}P.click()}G.onAddItem(function(P,O){O=L(G.getItems().index(O));if(H){O.history(I)}});
if(H){F().history(I)}});return E.api?D:this}})(jQuery);(function(C){var A=function(D,E){this.target=C(D);this.touch=E;this.startX=this.currentX=E.screenX;this.startY=this.currentY=E.screenY;this.eventType=null};A.latestTap=null;A.prototype.move=function(D){this.currentX=D.screenX;this.currentY=D.screenY};A.prototype.process=function(){var D=this.currentX-this.startX;var E=this.currentY-this.startY;if(D==0&&E==0){this.checkForDoubleTap()}else{if(Math.abs(E)>Math.abs(D)){this.eventType=E>0?"swipedown":"swipeup";
this.target.trigger("swipe",[this])}else{this.eventType=D>0?"swiperight":"swipeleft";this.target.trigger("swipe",[this])}}this.target.trigger(this.eventType,[this]);this.target.trigger("touch",[this])};A.prototype.checkForDoubleTap=function(){if(A.latestTap){if((new Date()-A.latestTap)<400){this.eventType="doubletap"}}if(!this.eventType){this.eventType="tap"}A.latestTap=new Date()};var B=function(D){D.bind("touchstart",this.touchStart);D.bind("touchmove",this.touchMove);D.bind("touchcancel",this.touchCancel);
D.bind("touchend",this.touchEnd)};B.prototype.touchStart=function(D){var E=this;B.eachTouch(D,function(F){B.touches[F.identifier]=new A(E,F)})};B.prototype.touchMove=function(D){B.eachTouch(D,function(F){var E=B.touches[F.identifier];if(E){E.move(F)}})};B.prototype.touchCancel=function(D){B.eachTouch(D,function(E){B.purge(E,true)})};B.prototype.touchEnd=function(D){B.eachTouch(D,function(E){B.purge(E)})};B.touches={};B.purge=function(F,D){if(!D){var E=B.touches[F.identifier];if(E){E.process()}}delete B.touches[F.identifier]
};B.eachTouch=function(D,G){var D=D.originalEvent;var E=D.changedTouches.length;for(var F=0;F<E;F++){G(D.changedTouches[F])}};C.fn.addSwipeEvents=function(D){new B(this);if(D){this.bind("touch",D)}return this}})(jQuery);jQuery.fn.handleSwipes=function(){return this.each(function(){var A=jQuery(this).data("scrollable");A.getRoot().addSwipeEvents().bind("swipeleft",function(){A.next()}).bind("swiperight",function(){A.prev()})})};
/*
 *
 * Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk)
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * Version 2.0.2
 * Demo: http://www.texotela.co.uk/code/jquery/newsticker/
 *
 * $LastChangedDate$
 * $Rev$
 *
 */
(
 function(A)
  {
	  A.fn.newsTicker=A.fn.newsticker=function(B)
	  {
		  B=B||4000;
          initTicker=function(C)
         {
	      A.newsticker.clear(C);
	      C.items=A("li",C);
	      C.items.not(":eq(0)").hide().end();
	      C.currentitem=0;
	      startTicker(C)
		  };
		 startTicker=function(C)
		 {C.tickfn=setInterval(function(){doTick(C)},B)};
		 doTick=function(C)
		 {
			 if(C.pause){return }
			 A.newsticker.pause(C);
		 A(C.items[C.currentitem]).fadeOut
		 (
		  "slow",function()
		  {
			  A(this).hide();
			  C.currentitem=++C.currentitem%(C.items.size());
			  A(C.items[C.currentitem]).fadeIn
			  (
			   "slow",function()
			   {A.newsticker.resume(C)}
			   )
			}
		   )
		 };
		 this.each
		 (
		  function()
		  {
			  if(this.nodeName.toLowerCase()!="ul")
			  {return }
              initTicker(this)
           }
		  )
		 .addClass("newsticker").hover
		 (
		  function(){A.newsticker.pause(this)},
		  function(){A.newsticker.resume(this)}
		  );
		 return this
		 };
		 A.newsticker=A.newsTicker={pause:function(B)
		 {(B.jquery?B[0]:B).pause=true},
		 resume:function(B){(B.jquery?B[0]:B).pause=false},
		 clear:function(B)
		   {
			   B=(B.jquery?B[0]:B);
			   clearInterval(B.tickfn);
			   B.tickfn=null;
			   B.items=null;
			   B.currentItem=null
			 }
	  }
  }
)

(jQuery);

qihanHPSetupFunction=function()
{
	jQuery("#qihan-top-banner .qihan-home-banner").css("cursor","pointer");
	jQuery("#qihan-top-banner .qihan-home-banner").click
	(function(M){window.location=jQuery(this).find("a").attr("href")});
	jQuery("#qihan-top-banner .qihan-bannerqh").css("width","20000em");
	jQuery("#qihan-search-form #q").focus
	(function(){if(jQuery(this).val()=="Search"){jQuery(this).val("")}});
	jQuery("#qihan-search-form #q").blur
	 (function(){if(jQuery(this).val()==""){jQuery(this).val("Search")}});
	 jQuery.easing.custom=function(N,O,M,Q,P)
	 {
		 if(O==0){return M}
		 if(O==P){return M+Q}
		 if((O/=P/2)<1){return Q/2*Math.pow(2,8*(O-1))+M}
		 return Q/2*(-Math.pow(2,-10*--O)+2)+M
	   };
	  jQuery("#qihan-top-banner .qihan-top-qh-pane,#qihan-top-banner .qihan-top-qh-pane .qihan-home-banner").width(jQuery("#qihan-top-banner").width());
      var L=navigator.platform.match(/iPad/i)!=null;
	  if(L)
	  {
		  var K=jQuery("#qihan-top-banner .qihan-top-qh-pane")
		  .scrollable({easing:"custom",speed:2000,circular:true})
		  .navigator()
		  .handleSwipes()
		}
	  else
	  {
		  var K=jQuery("#qihan-top-banner .qihan-top-qh-pane")
	      .scrollable({easing:"custom",speed:2000,circular:true})
	      .navigator()
	      .autoscroll({interval:7500})
		}
		window.api=K.data("scrollable");
		jQuery("#qihan-promotion-module .qihan-top-qh-pane").scrollable().handleSwipes();
		if(jQuery("#qihan-promotion-module div.qihan-bannerqh > div").length==3)
		 {jQuery("#qihan-promotion-module a.qihan-top-qh-next").addClass("qihan-disabled")}
        jQuery(".qihan-top-qh-nav a").append('<div class="qihan-top-qh-view"><div class="qihan-banner-small-alt"></div></div>');
       var E=jQuery("#qihan-top-main #qihan-banner-1 img:first").attr("alt");
	   var H=jQuery("#qihan-banner-1 p em:first").clone();
	   jQuery("span",H).remove();
	   jQuery(".qihan-top-qh-nav a:nth-child(1) .qihan-top-qh-view")
	   .addClass("qihan-banner-small-1")
	   .children("div.qihan-banner-small-alt")
	   .prepend('<span class="qihan-banner-small-1"></span><h2>'+E+"</h2><p>"+H.text()+"</p>");
       var C=jQuery("#qihan-top-main #qihan-banner-2 img:first").attr("alt");
       var G=jQuery("#qihan-banner-2 p em:first").clone();
       jQuery("span",G).remove();
	   jQuery(".qihan-top-qh-nav a:nth-child(2) .qihan-top-qh-view")
	   .addClass("qihan-banner-small-2")
	   .children("div.qihan-banner-small-alt")
	   .prepend('<span class="qihan-banner-small-2"></span><h2>'+C+"</h2><p>"+G.text()+"</p>");
	   var B=jQuery("#qihan-top-main #qihan-banner-3 img:first").attr("alt");
	   var D=jQuery("#qihan-banner-3 p em:first").clone();
	   jQuery("span",D).remove();
       jQuery(".qihan-top-qh-nav a:nth-child(3) .qihan-top-qh-view")
	   .addClass("qihan-banner-small-3")
	   .children("div.qihan-banner-small-alt")
	   .prepend('<span class="qihan-banner-small-3"></span><h2>'+B+"</h2><p>"+D.text()+"</p>");
	   if(jQuery.browser.msie)
	   {
		   jQuery(".qihan-top-qh-nav a:nth-child(1)")
		    .mouseenter(function(){jQuery(this).children().children("div.qihan-banner-small-alt").css("display","block")})
		    .mouseleave(function(){jQuery(this).children().children("div.qihan-banner-small-alt").css("display","none")});
		   jQuery(".qihan-top-qh-nav a:nth-child(2)")
		   .mouseenter(function(){jQuery(this).children().children("div.qihan-banner-small-alt").css("display","block")})
		   .mouseleave(function(){jQuery(this).children().children("div.qihan-banner-small-alt").css("display","none")});
		   jQuery(".qihan-top-qh-nav a:nth-child(3)")
		    .mouseenter(function(){jQuery(this).children().children("div.qihan-banner-small-alt").css("display","block")})
		   .mouseleave(function(){jQuery(this).children().children("div.qihan-banner-small-alt").css("display","none")})
		  }
		 else
		 {
			jQuery(".qihan-top-qh-nav a:nth-child(1)")
		    .mouseenter(function(){jQuery(this).children().children("div.qihan-banner-small-alt").stop(true,true).fadeIn("fast")})
		   .mouseleave(function(){jQuery(this).children().children("div.qihan-banner-small-alt").stop(true,true).fadeOut("fast")});
		    jQuery(".qihan-top-qh-nav a:nth-child(2)")
		    .mouseenter(function(){jQuery(this).children().children("div.qihan-banner-small-alt").stop(true,true).fadeIn("fast")})
		   .mouseleave(function(){jQuery(this).children().children("div.qihan-banner-small-alt").stop(true,true).fadeOut("fast")}); 
		    jQuery(".qihan-top-qh-nav a:nth-child(3)")
		    .mouseenter(function(){jQuery(this).children().children("div.qihan-banner-small-alt").stop(true,true).fadeIn("fast")})
		    .mouseleave(function(){jQuery(this).children().children("div.qihan-banner-small-alt").stop(true,true).fadeOut("fast")})
		   }
		   var I;
		   jQuery(window).resize
		   (
			 function()
			  {
				 var R=jQuery(".feature-trigger").position();
				 jQuery(".feature-popup").css({left:R.left,top:R.top});
				 if(!L){if(I){clearTimeout(I); I=null}}
			     if(jQuery("#qihan-top-banner .qihan-bannerqh").is(":not(animated)"))
                 {
	                if(!L)
	                {api.stop()}
	                var O=-jQuery("#qihan-top-banner").width();
	                var M=-jQuery("#qihan-top-banner").width()*2;
	                var P=-jQuery("#qihan-top-banner").width()*3;
	                var N=-jQuery("#qihan-top-banner").width()*298;
	                var Q=-jQuery("#qihan-top-banner").width()*299;
	                if(jQuery("#qihan-top-banner #qihan-banner-1").hasClass("qihan-selected-view"))
	                {jQuery("#qihan-top-banner .qihan-bannerqh").css("left",O)}
	                if(jQuery("#qihan-top-banner #qihan-banner-2").hasClass("qihan-selected-view"))
	                {jQuery("#qihan-top-banner .qihan-bannerqh").css("left",M)}
	               if(jQuery("#qihan-top-banner #qihan-banner-3").hasClass("qihan-selected-view"))
	               {jQuery("#qihan-top-banner .qihan-bannerqh").css("left",P)}
	               jQuery("#qihan-top-banner .qihan-top-qh-pane,#qihan-top-banner .qihan-top-qh-pane .qihan-home-banner").width(jQuery("#qihan-top-banner").width());
	               if(!L)
	                 {
		              I=setTimeout
		              (function(){api.play()},1000)
	                  }
                    }
				  }
				);


    function F(M)
    {
	  jQuery("#qihan-news-feed-inner a.qihan-rss-link").addClass("qihan-subtittle");
	  var N='<ul id="qihan-news-feed-data">';
	  jQuery(M).find("item").each
	  (
	    function()
		{
			N+='<li><a href="'+jQuery(this).find("link").text()+'">'+jQuery(this).find("text").text()+"</a></li>"
         }
		);
	   N+="</ul>";
	   jQuery("#qihan-news-feed-inner p").append(N);
	   jQuery("#qihan-news-feed-data").newsTicker(5000);
	   jQuery("#qihan-news-feed-data li").hover
	   (
		function(){jQuery(this).addClass("qihan-feed-hover")},
		function(){jQuery(this).removeClass("qihan-feed-hover")}
		)
	 }
	 
	 
	jQuery.ajax
	(
	  {
		  type:"GET",
		  url:"/common/press/newsticker.xml?cachebuster="+Math.random()*Math.random(),
		  dataType:"xml",
		  success:F
		}
	  );
	
	
	var A=jQuery(".feature-trigger .feature-popup").html();
	jQuery(".feature-trigger .feature-popup").remove();
	jQuery("#qihan-promotion-module .qihan-top-qh-pane").after('<div class="feature-popup">'+A);
    var J=jQuery(".feature-trigger").position();
    jQuery(".feature-popup").css({left:J.left,top:J.top});
    jQuery(".feature-trigger").mouseenter(function(){jQuery(".feature-popup").stop(true,true).fadeIn("slow")});
	jQuery(".feature-popup").mouseleave(function(){jQuery(".feature-popup").stop(true,true).fadeOut("slow")});
	jQuery(".qihan-expand-body a").mouseover(function(){jQuery(".feature-popup .qihan-expand-head .qihan-sp-icons").addClass(jQuery(this).attr("class"))})
	.mouseout(function(){jQuery(".feature-popup .qihan-expand-head .qihan-sp-icons").attr("class","qihan-sp-icons")})};
	jQuery
	(
		   function()
		   {
			   jQuery("#qihan-promotion-module .qihan-home-banner:nth-child(3) .qihan-col-6-2").load("/qihan100/us/en/icons/v17-hp.html?"+(new Date()).getTime());
			   jQuery("#qihan-promotion-module div.qihan-col-6-2").each
			   (
				function()
				{
					var A=this;
					jQuery("*",this)
					.live("focus",function(){jQuery(A).addClass("qihan-focus-active")})
					.live("blur",function(){jQuery(A).removeClass("qihan-focus-active")})
				 }
				)
			  }
		);
	
	  jQuery(qihanHPSetupFunction);


/*
 * BEGIN en/index/jquery.hoverIntent.minified.js
 */
(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:7,interval:100,timeout:0};J=A.extend(J,H?{over:I,out:H}:I);var L,K,F,D;var E=function(M){L=M.pageX;K=M.pageY};var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);M.hoverIntent_s=1;return J.over.apply(M,[N])}else{F=L;D=K;M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}};var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);M.hoverIntent_s=0;return J.out.apply(M,[N])};var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;while(O&&O!=this){try{O=O.parentNode}catch(P){O=this}}if(O==this){return false}var N=jQuery.extend({},P);var M=this;if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t)}if(P.type=="mouseover"){F=N.pageX;D=N.pageY;A(M).bind("mousemove",E);if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}}else{A(M).unbind("mousemove",E);if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M)},J.timeout)}}};return this.mouseover(B).mouseout(B)}})(jQuery);

/*
 * BEGIN en/index/includer.js
 */
if(typeof (cdc)=="undefined"){cdc=new Object()}if(typeof (cdc.includer)=="undefined"){cdc.includer={};if(typeof (cdc.includer.alreadyInPage)=="undefined"){cdc.includer.alreadyInPage=[]}cdc.includer.search=function(A){for(id in A){if(id=="_default"||document.getElementById(id)){if(A[id]["css"]&&A[id]["css"].length){cdc.includer.loadCss(A[id]["css"])}if(A[id]["js"]&&A[id]["js"].length){cdc.includer.loadJs(A[id]["js"],{callback:A[id]["callback"]})}else{if(A[id]["callback"]){(A[id]["callback"])()}}}}};cdc.includer.uniquifyIncludes=function(C,D){var E={};var F=[];var G,B;if(D=="js"){G="script";B="src"}else{if(D=="css"){G="link";B="href"}}for(var A=0;A<C.length;A++){E[C[A]]=1}if(typeof (cdc.includer.alreadyInPage)!="undefined"){for(var A=0;A<cdc.includer.alreadyInPage.length;A++){E[cdc.includer.alreadyInPage[A]]=0}}jQuery(G).each(function(){if(this[B]){var H=this[B].replace(/http:\/\/[^\/]*/,"");H=H.replace(/[\&\?]cacheReset=[0-9\-]*/,"");E[H]=0}});for(var A=0;A<C.length;A++){if(E[C[A]]){F.push(C[A])}}return F};cdc.includer.loadCss=function(D,A){if(typeof D=="string"){D=[D]}if(!A){A={}}D=cdc.includer.uniquifyIncludes(D,"css");for(var C=0;C<D.length;C++){var B=document.createElement("link");B.setAttribute("rel","stylesheet");B.setAttribute("type","text/css");B.setAttribute("href",D[C]);if(A.ids&&A.ids[C]){B.setAttribute("id",A.ids[C])}document.getElementsByTagName("head")[0].appendChild(B)}};cdc.includer.loadJs=function(D,B){if(typeof D=="string"){D=[D]}else{}if(!B){B={}}if(!B.hasBeenCleaned){D=cdc.includer.uniquifyIncludes(D,"js");B.hasBeenCleaned=1;if(D.length==0){if(B.callback){B.callback()}return }}var C=D.shift();var A=document.createElement("script");document.getElementsByTagName("head")[0].appendChild(A);A.language="javascript";if(B.ids&&B.ids.length){A.id=B.ids.shift()}if(D.length){if(document.attachEvent){A.onreadystatechange=function(){if(this.readyState=="loaded"){cdc.includer.loadJs(D,B)}}}else{A.onload=function(){cdc.includer.loadJs(D,B)}}}else{if(B.callback){if(document.attachEvent){A.onreadystatechange=function(){if(this.readyState=="loaded"){B.callback()}}}else{A.onload=function(){B.callback()}}}}var E=C;if(jQuery.browser.msie&&!E.match(/noCacheBust/)&&!B.noCacheBust){E=cdc.includer.cacheBust(C)}A.src=E};jQuery(function(){cdc.includer.search(cdc.includer.widgets)})}cdc.includer.cacheBust=function(B,D){if(!D){D="cacheReset"}var C="?";if(B.match(/(ng-prod1|\?)/)){C="&"}var A=C+D+"=";return B+A+cdc.includer.cdcRandNum()};cdc.includer.cdcRandNum=function(A){if(!A){A=1000}var C=Math.floor(Math.random()*A)+1;var B=(new Date).getTime();var D=B+"-"+C;return D};if(typeof (cdc.util)=="undefined"){cdc.util={}}cdc.util.JsLoader=new function(){var A=null;var D=[];var B=function(J,M,I,F){if(A==null){C()}var L=!!I;var G=F;var K=function(S,Q){var R=0;if(Q>=S.length){if(typeof (M)=="function"){M()}return }var P=S[Q];if(typeof (A[P])=="undefined"||L){var O=Q;var U=function(){K(S,O+1)};var T=0,N=D.length;for(;T<N;T++){if(D[T].url===P){break}}if(T>=N){D.push({url:P,callbacks:[U],okToUseCache:true,dataType:G});R=1}else{D[T].callbacks.push(U)}}else{R+=K(S,Q+1)}return R};J=(typeof (J)=="string")?[J]:[].concat(J);var H=D.length<=0;if(K(J,0)>0&&H){E()}return this};this.load=function(G,H,F){if((!G||G.length<=0)&&typeof (H)=="function"){H();return }B(G,H,F,"script");return this};this.loadOne=function(G,H,K,J){var F=G;if(H){var I=(G.indexOf("?")>0)?"&":"?";F+=I+jQuery.param(H)}return B([F],K,J,"json")};this.assumeAlreadyLoaded=function(F){jQuery.each(F,function(G){A[G]=1})};function C(){A={};jQuery("script").each(function(F){var G=this.getAttribute("src");if(G){A[G]=1}})}function E(){if(D.length>=1){var F=D[0];jQuery.ajax({type:"GET",url:F.url,dataType:F.dataType||"script",cache:F.okToUseCache,success:function(H){A[F.url]=1;D.shift();for(var G=0;G<F.callbacks.length;G++){F.callbacks[G]()}E()}})}}return this};cdc.util.ServiceRequestQueue=function(){var C=[],B=false,A={};this.addRequest=function(F,I,J,E,H){var G=E||"json";if(typeof (A[F])=="undefined"||!H){C.push({url:F,parameters:I,callback:J,okToUseCache:!!H,dataType:G});A[F]=1;D()}};this.getQueueSize=function(){return C.length};function D(){if(C.length>=1&&!B){B=true;var E=C[0];jQuery.ajax({type:"GET",url:E.url,data:E.parameters,dataType:E.dataType,cache:E.okToUseCache,success:function(F){E.callback(F);B=false;C.splice(0,1);D()}})}}};


/*
 * BEGIN en/index/_newsticker.js
 */
if(typeof cdc=="undefined"){cdc={}}if(typeof cdc.homepage=="undefined"){cdc.homepage={}}cdc.homepage.newsfeed={currItem:0,numItems:0,iPause:0,intervalLength:4500,maxItems:5,config:{feedUrl:"",title:"",link:"",linkLpos:"",pnews:"",nnews:"",linkTitle:"",rss:"",rssLink:"",rssLpos:""},config:function(A){jQuery.extend(this.config,A)},changeItem:function(C,B){var A=this.currItem;jQuery("#newsticker li:eq("+A+")").fadeOut(B,function(){jQuery(this).hide()});if(C<0&&A==0){A=this.numItems}A=(A+C)%this.numItems;jQuery("#newsticker li:eq("+A+")").fadeIn(B||"slow");this.currItem=A},fetchNews:function(A){if(typeof A=="object"){cdc.homepage.newsfeed.config(A);A=A.feedUrl}jQuery(document).ready(function(){cdc.includer.loadJs([A||cdc.homepage.newsfeed.config.feedUrl])})},renderNews:function(I){var R=this.config;var S=R.title||I.title||"";var E=R.link||I.link||"";if(E!=""){var F=R.linkLpos||I.linkLpos?' name="&amp;lpos='+(R.linkLpos||I.linkLpos)+'"':"";E='<a rel="exit"'+F+' href="'+E+'">'+S+"</a>";jQuery("#newsticker h3").empty().html(E)}jQuery("#newsticker").append('<div class="ctl"></div><div class="ctr"></div><div class="cbl"></div><div class="cbr"></div>');var J=R.pnews||"";var H=R.nnews||"";jQuery("#newsticker .newsitem-previous").html('<a href="" title="'+J+'">&nbsp;</a>').find("a").click(function(){cdc.homepage.newsfeed.changeItem(-1,"fast");return false});jQuery("#newsticker .newsitem-next").html('<a href="" title="'+H+'">&nbsp;</a>').find("a").click(function(){cdc.homepage.newsfeed.changeItem(1,"fast");return false});var A=R.linkTitle||I.linkTitle||"";if(A!=""){jQuery("#newsticker .newsticker-nav .sm-title").empty().html(A)}var K=R.rss||I.rss||"";var M=R.rssLink||I.rssLink||"";if(M!=""){var O=R.rssLpos||I.rssLpos?' name="&amp;lpos='+(R.rssLpos||I.rssLpos)+'"':"";M='<a rel="exit"'+O+' href="'+M+'" title="'+K+'"></a>';jQuery("#newsticker .newsticker-nav .rss").empty().html(M)}var P=jQuery("#newsticker ol");jQuery(P).empty();for(var L=0;L<I.items.length&&L<this.maxItems;L++){var Q=I.items[L];var G=Q.lpos?' name="&amp;lpos='+Q.lpos+'"':"";jQuery(P).append('<li><a rel="exit"'+G+' href="'+Q.link+'">'+Q.shortTitle+'</a></li>')}if(I.items.length<this.maxItems){this.numItems=I.items.length}else{this.numItems=this.maxItems}var C=function(){cdc.homepage.newsfeed.iPause=1};var B=function(){cdc.homepage.newsfeed.iPause=0};jQuery("#newsticker .newsticker-controls a").focus(C).blur(B).hover(C,B);jQuery(P).find("a").focus(C).blur(B).hover(C,B);jQuery(P).find("li").hide().filter(":eq(0)").show().add("#newsticker li").length-1;if(typeof vs_makeExit!="undefined"){var N=jQuery("#newsticker a[@rel=exit]");for(var L=0;L<N.length;L++){var D=vs_makeExit(N[L]);jQuery(N[L]).mousedown(D)}}setInterval(function(){if(cdc.homepage.newsfeed.iPause==0){cdc.homepage.newsfeed.changeItem(1)}},this.intervalLength)}};
