var bannerAD=new Array();
var bannerADlink=new Array();
var bannerADtarget=new Array();
var adNum=7;
bannerAD[0]="images/banner_left.jpg";
bannerADlink[0]="#";
bannerADtarget[0]="_self";
bannerAD[1]="images/banner_left2.jpg";
bannerADlink[1]="#";
bannerADtarget[1]="_self";
bannerAD[2]="images/banner_left3.jpg";
bannerADlink[2]="#";
bannerADtarget[2]="_self";
bannerAD[3]="images/banner_left4.jpg";
bannerADlink[3]="#";
bannerADtarget[3]="_self";
bannerAD[4]="images/banner_left5.jpg";
bannerADlink[4]="#";
bannerADtarget[4]="_self";
bannerAD[5]="images/banner_left6.jpg";
bannerADlink[5]="#";
bannerADtarget[5]="_self";
bannerAD[6]="images/banner_left7.jpg";
bannerADlink[6]="#";
bannerADtarget[6]="_self";
var preloadedimages=new Array();
for(i=1;i<bannerAD.length;i++){preloadedimages[i]=new Image();preloadedimages[i].src=bannerAD[i];}function setTransition(){if(document.all){bannerADrotator.filters.revealTrans.Transition=23;bannerADrotator.filters.revealTrans.apply();}}function playTransition(){if(document.all)bannerADrotator.filters.revealTrans.play()} function nextAd(){if(adNum<bannerAD.length-1)adNum++;else adNum=0;setTransition();document.images.bannerADrotator.src=bannerAD[adNum];playTransition();theTimer=setTimeout("nextAd()",5000);}function jump2url(){jumpUrl=bannerADlink[adNum];jumpTarget=bannerADtarget[adNum]; if(jumpUrl!=''){if(jumpTarget!='')window.open(jumpUrl,jumpTarget);else window.open(jumpUrl,"","width=156,height=117,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no");}} function setcontrolvalue(formindex,controlname,setvalue){document.forms[formindex].elements[controlname].value=setvalue;}function getcontrolvalue(formindex,controlname){return document.forms[formindex].elements[controlname].value;}function judgeSearchInputx(index){ var str=getcontrolvalue(index,'act');if(str=='search'){var keyword=getcontrolvalue(index,'searchkey');if(!checkKeywordValid(keyword)&&keyword!=''){alert('Error search keyword, please try another words'); return false;}return judgeSearchCondition(index,'searchkey','Search product is required!');}return true;}function checkKeywordValid(keyword){return true;} function judgeSearchCondition(formindex,keywordname,dealinfoobj){var keyword=document.forms[formindex].elements[keywordname].value;while(keyword.charAt(0)==" "||keyword.charAt(0)=="%"){ keyword=keyword.substring(1);}if(keyword.length<1){alert(dealinfoobj);return false;}return true;}function nTabs(thisObj,Num){if(thisObj.className=="active") return;var tabObj=thisObj.parentNode.id;var tabList=document.getElementById(tabObj).getElementsByTagName("li");for(i=0;i<tabList.length;i++){ if(i==Num){thisObj.className="active";document.getElementById(tabObj+"_Content"+i).style.display="block";}else{tabList[i].className="normal"; document.getElementById(tabObj+"_Content"+i).style.display="none";}}}function newsletter(){var email=document.getElementById('emailaddress').value;
email_re=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/ 
if(email==''){ alert("Please enter the Email!"); return false;} if(email_re.test(email)==false){ alert("This field must be a valid email address(like aaa@bbb.com). Please reenter it now."); return false;} else{ alert("You have completed your subscription process, thank you!"); return true;}} $=function(id){ return document.getElementById(id);}
Namespace=new Object();
Namespace.register=function(namespace){ var nsArray=namespace.split('.'); var sEval=""; var sNS=""; for(var i=0;i<nsArray.length;i++){ if(i!=0)sNS+="."; sNS+=nsArray[i]; sEval+="if (typeof("+sNS+") == 'undefined') "+sNS+" = new Object();"} if(sEval!="")eval(sEval);}
Array.prototype.unite=function(arg){ var temparg=new Array(); var len1=this.length; var len2=arg.length; for(var i=0;i<(len1+len2);i++){ if(i<len1)this[i]=this[i]; else this[i]=arg[i-len1];} return this;}
Array.prototype.add=function(obj){ var add_flag=true; for(var i=0;i<this.length;i++){ if(this[i]==obj){ add_flag=false; break;}} if(add_flag==true){ this[this.length]=obj;}}
var Class = { create: function() { return function() { this.initialize.apply(this, arguments);}}}
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;}
var $A = Array.from = function(iterable) { if (!iterable) return []; if (iterable.toArray) { return iterable.toArray();} else { var results = []; for (var i = 0; i < iterable.length; i++) results.push(iterable[i]); return results;}}
var Try = { these: function() { var returnValue; for (var i = 0; i < arguments.length; i++) { var lambda = arguments[i]; try { returnValue = lambda(); break;} catch (e) {}} return returnValue;}}
Function.prototype.bind=function(){var __method=this,args=$A(arguments),object=args.shift();return function(){return __method.apply(object,args.concat($A(arguments)));}}
Function.prototype.bindAsEventListener=function(object){var __method=this;return function(event){return __method.call(object,event||window.event);}}
Object.extend = function(destination, source) { for (property in source) { destination[property] = source[property];} return destination;}
if (!window.Event) { var Event = new Object();}
Object.extend(Event, { KEY_BACKSPACE: 8, KEY_TAB: 9, KEY_RETURN: 13, KEY_ESC:27, KEY_LEFT: 37, KEY_UP: 38, KEY_RIGHT:39, KEY_DOWN: 40, KEY_DELETE: 46, element: function(event) { return event.target || event.srcElement;}, isLeftClick: function(event) { return (((event.which) && (event.which == 1)) || ((event.button) && (event.button == 1)));}, pointerX: function(event) { return event.pageX || (event.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft));}, pointerY: function(event) { return event.pageY || (event.clientY + (document.documentElement.scrollTop || document.body.scrollTop));}, stop: function(event) { if (event.preventDefault) { event.preventDefault(); event.stopPropagation();} else { event.returnValue = false; event.cancelBubble = true;}}, observers: false, _observeAndCache: function(element, name, observer, useCapture) { if (!this.observers) this.observers = []; if (element.addEventListener) { this.observers.push([element, name, observer, useCapture]); element.addEventListener(name, observer, useCapture);} else if (element.attachEvent) { this.observers.push([element, name, observer, useCapture]); element.attachEvent('on' + name, observer);}}, unloadCache: function() { if (!Event.observers) return; for (var i = 0; i < Event.observers.length; i++) { Event.stopObserving.apply(this, Event.observers[i]); Event.observers[i][0] = null;} Event.observers = false;}, observe: function(element, name, observer, useCapture) { var element = $(element); useCapture = useCapture || false; if (name == 'keypress' && (navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.attachEvent)) name = 'keydown'; this._observeAndCache(element, name, observer, useCapture);}, stopObserving: function(element, name, observer, useCapture) { var element = $(element); useCapture = useCapture || false; if (name == 'keypress' && (navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.detachEvent)) name = 'keydown'; if (element.removeEventListener) { element.removeEventListener(name, observer, useCapture);} else if (element.detachEvent) { element.detachEvent('on' + name, observer);}}}); if (!window.Element) { var Element = new Object();}
Object.extend(Element, { visible: function(element) { return $(element).style.display != 'none';}, toggle: function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); Element[Element.visible(element) ? 'hide' : 'show'](element);}}, hide: function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); element.style.display = 'none';}}, show: function() { for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]); element.style.display = '';}}, remove: function(element) { element = $(element); element.parentNode.removeChild(element);},create : function(element){return document.createElement(element);},scrollTo: function(element) { element = $(element); var x = element.x ? element.x : element.offsetLeft, y = element.y ? element.y : element.offsetTop; window.scrollTo(x, y);}});
function xml2object(xml){function xmlContent2object(element){var result = {};var attributes = element.attributes;var childNodes = element.childNodes;for(var i=0; i<attributes.length; i++){var attrName = attributes[i].name;var attrValue = attributes[i].value;result[attrName] = attrValue;}var hasElement = false;for(var i=0; i<childNodes.length; i++){var node = childNodes[i];if(node.nodeType == 1){hasElement = true;var arr = result[node.tagName];if(!arr)arr = result[node.tagName] = [];arr[arr.length] = xmlContent2object(node);}if(node.nodeType == 3){if(!hasElement)result["text"] = node.data;}}if(hasElement){delete result["text"];}else {Object.extend(result,result["text"]);}for(var item in result){var value = result[item];if(value instanceof Array && value.length==1){value = result[item] = value[0];}}return result;}var result = {};if(xml.nodeType == 9) {xml = xml.documentElement;}result[xml.tagName] = xmlContent2object(xml);return result;} var ajax = {}; ajax = Class.create(); ajax.prototype = {initialize : function(url,method,asynchronous){if(url.indexOf("?") != -1){this.url = url+"&"+Math.random();}else{this.url = url+"?"+Math.random();}this.method = method;this.asynchronous = asynchronous;this.transport = null;},request : function(fun){this.transport = this.getTransport();this.transport.onreadystatechange =fun!=undefined?fun.bind(this):function (){};this.transport.open(this.method,this.url,this.asynchronous);this.transport.send(null);},getXML : function(){return this.transport.responseXML;},getText : function(){return this.transport.responseText;},onload: function(){if( this.transport.readyState == 4 && this.responseIsSuccess() ){return true;}else{return false;}},responseIsSuccess: function() {return this.transport.status == undefined|| this.transport.status == 0|| (this.transport.status >= 200 && this.transport.status < 300);},getTransport: function() {return Try.these(function() {return new ActiveXObject('Msxml2.XMLHTTP')},function() {return new ActiveXObject('Microsoft.XMLHTTP')},function() {return new XMLHttpRequest()}) || false;}}
String.prototype.trim = function(){return this.replace(/(^[\s]*)|([\s]*$)/g, "");}
var Cookie = {setCookie : function(name,value){var Days = 30; var exp= new Date();exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString()+ ";path=/";},getCookie : function(name){var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return unescape(arr[2]); else return null;},delCookie : function(name){var exp = new Date(); exp.setTime(exp.getTime() - 1); var cval=Cookie.getCookie(name); if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();}}
Object.extend(Array.prototype,{indexOf : function(n){for(var i=0;i<this.length;i++){if(this[i]==n){return i;}}return -1;},del : function(n) {return this.slice(0,n).concat(this.slice(n+1,this.length));}})
function BufferString(){this._string = new Array();}
BufferString.prototype.append = function(str){this._string.push(str);}
BufferString.prototype.toString = function(){return this._string.join("");}
function getScrollTop(){var scrollTop;if(typeof window.pageYOffset != 'undefined'){scrollTop=window.pageYOffset;}else if(typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat'){scrollTop=document.documentElement.scrollTop;}else if (typeof document.body != 'undefined') {scrollTop = document.body.scrollTop;}return scrollTop;}function getPos(obj,arg){var posNum=0;if (obj.offsetParent) {while (obj.offsetParent){posNum += obj["offset"+arg];obj=obj.offsetParent;}}return posNum;}

Namespace.register("Hc.widget.cookie");
Namespace.register("Hc.widget.movebox");
Namespace.register("Hc.util.setDiv");
Namespace.register("Hc.util.move");
Namespace.register("Hc.util.showDiv");
Namespace.register("Hc.util.hotClass");
Namespace.register("Hc.widget.hotword");(function(){
Hc.widget.cookie={
newAndModif:function(name,value,time){
if(time!=null&&this.time!=''){
document.cookie=name+"="+value+"; expires="+this.createTime(time)+";";}else{
document.cookie=name+"="+value+"; expires=Fri, 31 Dec 2100 23:59:59 GMT;";}},
createTime:function(time){
var nowTime=new Date();
time=parseInt(time)*24*60*60*1000+parseInt(nowTime.getTime());
var needTime=new Date(time);
return needTime.toGMTString();},
getValue:function(name){
if(document.cookie!=null){
var cookieStrArr=document.cookie.split("; ");
for(var i=0;i<cookieStrArr.length;i++){
if(cookieStrArr[i].split("=")[0]==name){
return cookieStrArr[i].split("=")[1];}}}else{
return null;}}}})();(function(){
Hc.util.hotClass={
concat:function(arg1,arg2){
var arg=new Array();
var len1=arg1.length;
var len2=arg2.length;
for(var i=0;i<(len1+len2);i++){
if(i<len1)arg[i]=arg1[i];
else arg[i]=arg2[i-arg1.length];}
arg1=arg
return arg1;},
initAttention:function(cookiename,mainbox,disbox,conbox,tagName,max){
var curObj=this;
var parCodes;
var childCodes=new Array;
var temparr1=new Array,temparr2=new Array;
var hotwords=new Array();
if(Hc.widget.cookie.getValue(cookiename)!=null){
var hotwords=curObj.getCookievalue(cookiename);
curObj.getAttention(hotwords,conbox);}else{
$(disbox).style.display="none";}
parCodes=$(mainbox).getElementsByTagName(tagName);
for(var i=0;i<parCodes.length;i++){
temparr=parCodes[i].getElementsByTagName("A");
childCodes=this.concat(childCodes,temparr);}
for(var j=0;j<childCodes.length;j++){
childCodes[j].n=childCodes[j].childNodes[0].nodeValue;
childCodes[j].u=childCodes[j].href;
childCodes[j].onclick=function(){
var curhotwords=new Array();
curhotwords=curObj.getCookievalue(cookiename);
curObj.setAttention(cookiename,curhotwords,this.u,this.n,max);}}},
getCookievalue:function(cookiename){
var word,hotword;
var hotwords=new Array();
if(Hc.widget.cookie.getValue(cookiename)!=null){
var cookieValue=unescape(Hc.widget.cookie.getValue(cookiename));
var wordarr=cookieValue.split("&");
for(var i=0;i<wordarr.length;i++){
word=wordarr[i].split("|");
hotword=new Hc.widget.hotword(word[0],word[1]);
hotwords.push(hotword);}}
return hotwords;},
setAttention:function(cookiename,arg,aurl,aword,max){
var hotwords=new Array;
var hotword=new Hc.widget.hotword(aword,aurl);
var cookiestr="";
var flag=true;
for(var i=0;i<arg.length;i++){
hotwords[i]=arg[i];}
if((hotwords.length<max)&&(hotwords.length!=0)){
for(var j=0;j<hotwords.length;j++){
if((hotwords[j].name==hotword.name)&&(hotwords[j].url==hotword.url)){
hotwords.splice(j,1);}}
hotwords.unshift(hotword);}else{
hotwords.push(hotword);
if(hotwords.length==max){
hotwords.shift();}}
for(var n=0;n<hotwords.length;n++){
cookiestr=cookiestr+hotwords[n].name+"|"+hotwords[n].url+"&"}
cookiestr=escape(cookiestr.substring(0,cookiestr.length-1));
Hc.widget.cookie.newAndModif(cookiename,cookiestr);},
getAttention:function(arg,conbox){
var wordstr="";
for(var j=0;j<arg.length;j++){
wordstr=wordstr+"<a href=\"" + arg[j].url + "\">"+arg[j].name+"</a> | ";
if(((j+1)%3==0)||(j==arg.length-1)){
wordstr=wordstr.substring(0,wordstr.length-3);
wordstr=wordstr+"<br />";}}
$(conbox).innerHTML=wordstr;}}})();(function(){
var initheight,totalheight;
Hc.util.setDiv={
init:function(el,con,nums,overclassname,outclassname,speed,maxheight){
var arg=new Array();
for(i=0;i<arguments.length;i++){
arg[i]=arguments[i];}
for(j=1;j<=parseInt(arg[2]);j++){
tagBox=$(arg[0]+j);
hidBox=$(arg[1]+j);
tagBox.m=j;
hidBox.m=j;
tagBox.onmouseover=function(){Hc.util.showDiv.slideshow(arg,this.m);};
tagBox.onmouseout=function(){Hc.util.showDiv.slideshow(arg,this.m);};
hidBox.onmouseover=function(){Hc.util.showDiv.slideshow(arg,this.m);};}
Hc.util.showDiv.slideshow(arg,1);},
build:function(el,className,targetName,cookiename,mspace){
totalheight=0;
var mb_arr=new Array();
var childtag=el.getElementsByTagName(targetName);
for(i=0;i<childtag.length;i++){
if(childtag[i].className==className){
with(childtag[i].style){
position="absolute";
top=totalheight+"px";}
if(mspace!=null&&mspace!="")totalheight=totalheight+childtag[i].scrollHeight+mspace;
else totalheight=totalheight+childtag[i].scrollHeight;
mb_arr[mb_arr.length]=childtag[i].id;}}
el.style.height=totalheight+"px";
Hc.util.move.init(el,mb_arr,cookiename);},
rebuild:function(movebox,cookieValue,cookiename,mspace){
totalheight=0;
var mb_arr=cookieValue.split("&");
for(var i=0;i<mb_arr.length;i++){
$(mb_arr[i]).style.position="absolute";
$(mb_arr[i]).style.top=totalheight+"px";
if(mspace!=null&&mspace!="")totalheight=totalheight+$(mb_arr[i]).scrollHeight+mspace;
else totalheight=totalheight+$(mb_arr[i]).scrollHeight;}
movebox.style.height=totalheight+"px";
Hc.util.move.init(movebox,mb_arr,cookiename);},
tabDivinit:function(nums,tab,con,curClassName,speed,oEvent){
var t=oEvent;
var arg=new Array;
for(i=0;i<arguments.length;i++){
arg[i]=arguments[i];}
for(var j=0;j<arg[0];j++){
var curtab=$(arg[1]+j);
curtab.n=j;
switch(t){
case 'click':
curtab.onclick=function(){Hc.util.showDiv.show(arg,this.n);};
break;
default:
curtab.onmouseover=function(){Hc.util.showDiv.show(arg,this.n);};
break;}}
return arg;}};})();(function(){
var pos;
var showpos;
Hc.util.showDiv={
show:function(arg,id){
var curtab,curobj;
curobj=this;
var useArg=new Array;
for(j=0;j<arg.length;j++){
useArg[j]=arg[j];}
for(var i=0;i<useArg[0];i++){
curtab=$(useArg[1]+i);
if(i==id){
curtab.className=useArg[3];
$(useArg[2]+i).style.display="block";}else{
curtab.className='';
$(useArg[2]+i).style.display="none";}}},
autoshow:function(arg){
var time1,curobj,curtab,curnum,bpos;
curnum=1;
curobj=this;
bpos=0;
var useArg=new Array;
for(j=0;j<arg.length;j++){
useArg[j]=arg[j];}
this.show(useArg,0);
function ctrl(){
time1=setInterval(function(){
if(curnum>=useArg[0])curnum=0;
bpos=curnum;
curobj.show(useArg,curnum);
curnum++;},useArg[4])}
ctrl();
for(var i=0;i<useArg[0];i++){
curtab=$(useArg[1]+i);
switch(useArg[5]){
case 'click':
curtab.onclick=function(){curobj.show(useArg,this.n);};
curtab.onmouseover=function(){clearInterval(time1);bpos=this.n;}
break;
default:
curtab.onmouseover=function(){clearInterval(time1);curobj.show(useArg,this.n);bpos=this.n;};
break;}
$(useArg[2]+i).onmouseover=function(){clearInterval(time1);bpos++;}
$(useArg[2]+i).onmouseout=function(){
curnum=bpos;
ctrl();}
curtab.onmouseout=function(){
curnum=bpos;
ctrl();}}},
slideshow:function(arg,id){
var curobj=new Array();
for(j=0;j<arg.length;j++){
curobj[j]=arg[j];}
var tagBox,hidBox;
var ctrl=0;
if((id!=pos)||(pos==null)){
for(i=1;i<=parseInt(curobj[2]);i++){
tagBox=$(curobj[0]+i);
hidBox=$(curobj[1]+i);
if(i==id){
pos=id;
tagBox.className=curobj[3];
hidBox.style.display="block";
hidBox.style.height=curobj[6]+"px";}else{
hidBox.style.height="0px";
tagBox.className=curobj[4];
hidBox.style.display="none";}}}}}})();(function(){
var movebox=null;
var moveboxs=new Array();
var oStart,oEnd,oStartY,oEndY;
var speed=10;
var mflag=true;
Hc.util.move={
init:function(id,mb_arr,cookiename){
var movebox=new Hc.widget.movebox(id);
for(var i=0;i<mb_arr.length;i++){
movebox.list.push($(mb_arr[i]));}
movebox.cookieid=cookiename;
moveboxs.push(movebox);},
moveUp:function(m_b,now){
if(mflag){
oStart=null;
oEnd=null;
oStartY=null;
oEndY=null;
var changepoint=new Array();
movebox=this.isHave(m_b);
if(this.getUp(now)!=null){
changepoint=this.getUp(now);
oStart=changepoint[0];
oEnd=changepoint[1];
oStartY=parseInt(oEnd.style.top);
oEndY=parseInt(oStart.style.top);
oStart.style.zIndex="0";
oEnd.style.zIndex="360";
oStart.style.filter="alpha(opacity=10)";
this.startmoving();
this.endmoving();
oStart.style.filter="alpha(opacity=100)";}
this.change(oEnd,oStart);
Hc.widget.cookie.newAndModif(movebox.cookieid,this.toString(),30);}},
moveDown:function(m_b,now){
if(mflag){
oStart=null;
oEnd=null;
oStartY=null;
oEndY=null;
var changepoint=new Array();
movebox=this.isHave(m_b);
if(this.getDown(now)!=null){
changepoint=this.getDown(now);
oStart=changepoint[0];
oEnd=changepoint[1];
oStartY=parseInt(oEnd.style.top);
oEndY=parseInt(oStart.style.top);
oStart.style.zIndex="360";
oEnd.style.zIndex="0";
oEnd.style.filter="alpha(opacity=10)";
this.startmoving();
this.endmoving();
oEnd.style.filter="alpha(opacity=100)";}
this.change(oEnd,oStart);
Hc.widget.cookie.newAndModif(movebox.cookieid,this.toString(),30);}},
startmoving:function(){
var con=this;
yStart=parseInt(oStart.style.top);
yEnd=oStartY+(oEnd.scrollHeight-oStart.scrollHeight);
if(yStart<yEnd){
this.moveY(oStart,1,speed,yEnd);
setTimeout(function(){con.startmoving()},1);
mflag=false;}
if(yStart>yEnd){
this.moveY(oStart,2,speed,yEnd);
setTimeout(function(){con.startmoving()},1);
mflag=false;}
if(yStart==yEnd){
mflag=true;}},
endmoving:function(){
yStart=parseInt(oEnd.style.top);
yEnd=parseInt(oEndY);
var con=this;
if(yStart<yEnd){
this.moveY(oEnd,1,speed,yEnd);
setTimeout(function(){con.endmoving()},1);
mflag=false;}
if(yStart>yEnd){
this.moveY(oEnd,2,speed,yEnd);
setTimeout(function(){con.endmoving()},1);
mflag=false;}
if(yStart==yEnd){
mflag=true;}},
moveY:function(obj,ySpeenType,speed,yEnd){
if(ySpeenType==1){
if((parseInt(obj.style.top)+speed)>yEnd){
obj.style.top=yEnd+"px";}else{
obj.style.top=parseInt(obj.style.top)+speed+"px";}}
if(ySpeenType==2){
if((parseInt(obj.style.top)-speed)<yEnd){
obj.style.top=yEnd+"px";}else{
obj.style.top=parseInt(obj.style.top)-speed+"px";}}},
getIndex:function(moveObj){
for(var i=0;i<movebox.list.length;i++){
if(movebox.list[i]==moveObj){
return i;}}
return -1;},
isHave:function(m_b){
for(var i=0;i<moveboxs.length;i++){
if(moveboxs[i].name==$(m_b.id)){
return moveboxs[i];}}},
getUp:function(now){
var arrm=new Array();
for(var i=0;i<movebox.list.length;i++){
if(movebox.list[i]==now){
if(i>0){
arrm[0]=movebox.list[i-1];
arrm[1]=movebox.list[i];
return arrm;}else{
return null;}}}},
getDown:function(now){
var arrm=new Array();
for(var i=0;i<movebox.list.length;i++){
if(movebox.list[i]==now){
if(i<movebox.list.length-1){
arrm[0]=movebox.list[i];
arrm[1]=movebox.list[i+1];
return arrm;}else{
return null;}}}},
change:function(start,end){
var s_index=this.getIndex(start);
var e_index=this.getIndex(end);
if(s_index!=-1&&e_index!=-1){
movebox.list[s_index]=end;
movebox.list[e_index]=start;
movebox.version++;}},
toString:function(){
var tempStr="";
for(var i=0;i<movebox.list.length;i++){
tempStr=tempStr+movebox.list[i].id+"&";}
tempStr=tempStr.substring(0,tempStr.length-1);
return tempStr;}};})();
Hc.widget.movebox=function(name){
this.name=name;
this.list=new Array();
this.size=0;
this.version=0;
this.obj=null;
this.cookieid=null;}
Hc.widget.hotword=function(name,url){
this.name=name;
this.url=url;}

