/**** @version	   		 NT Script  version 1.7.1 pro  (^ _ ^)	* @package			 Library JavaScript . * @author			 NT Private* @email			 Contact@nt-script.com	* @copyright		 Copyright (C) 2009 Mr.NguyenTu [ NTvn ] . All rights reserved . * @website Support	 http://nt-script.com	.	** @date time		 30/09/2009 . * @Last Update 	 	 15/02/2010 . **	*DEFINED$f$ : function$po$: parent element$o$ : element$ext$: preperfix $v$ : value$e$ : eventppt : properties*//*  [ NT Script ]   */		new (function(){ 	var doc=document;	var $_=doc.NT=doc.nt={		doc:document		,puz:function(o1,o2)		{			if(typeof o2!='object'||o2==document)return;			for(var Name in o2)			{				o1[Name]=o2[Name];			};			}		,browser:{				ie:true?navigator.appName=="Microsoft Internet Explorer":false				,ff:true?navigator.appName=="Netscape":false				,opera:true?navigator.appName=="Opera":false				,height:function(){return window.innerHeight ? window.innerHeight : doc.body.offsetHeight}				,width:function(){return window.innerWidth ? window.innerWidth : doc.body.offsetWidth}		}		,size:function/*size*/($o$,$fn){				if(!$fn)$fn='';				if(typeof $o$!='object')return false;				if(($fn.indexOf('offset-')!=-1)					&&($fn.indexOf('padding')!=-1					||$fn.indexOf('margin')!=-1))						$fn=$fn.replace(/offset-/,'');						if($fn.indexOf('-')!=-1){							this.$fn=$fn.split('-')[1];						this.$fn=$fn.split('-')[0]+								this.$fn.substr(0,1).toUpperCase()+										this.$fn.substr(1,this.$fn.length-1);					}else this.$fn=$fn;				if(this.$fn.indexOf('offset')!=-1)					this.ppt="this.$size=$o$."+this.$fn+"+'px';";				else this.ppt="this.$size=$o$.style."+this.$fn+"+'px';";									eval(this.ppt);				if(this.$size=='auto')					return false;				if(this.$size.indexOf("%")!=-1)				{					this.ppt="this.$size=$o$."+this.$fn+"+'px';";					eval(this.ppt);				};					if(this.$size.indexOf("px")!=-1)					this.$size=this.$size.split('px')[0];				if(this.$size.indexOf("pt")!=-1)					this.$size=this.$size.split('pt')[0];					return eval(this.$size);			}		,opac:function/*opac*/($o$){				if(!$o$)return false;				if(navigator.appName!="Microsoft Internet Explorer")				{					if($o$.style)					{						this.opacity=$o$.style.opacity?$o$.style.opacity:1;							return eval(this.opacity);					}						else return 1;				}				else{					this.opacity=$o$.style.filter;					this.opacity=this.opacity.toString();					if(this.opacity==''||!this.opacity)						return 1;					this.opacity=eval(this.opacity.split('opacity=')[1].split(')')[0]);					return this.opacity/100;				}		}		,fn:{			getContrAni:function/*getContrAni*/(input){				if(!input)return false;				if(!input.obj)return false;				if(!input.obj.tagName&&input.val.indexOf('scroll')==-1)return false;				if(input.val.toString().indexOf(':')==-1					||input.val.toString().indexOf('->')==-1)						return false;				this.out=[];				this.out.obj=input.obj;				this.input=input.val.toString().split(':');				this.out.type=this.input[0];				if(this.out.type.indexOf('-')!=-1){					this.out.type=this.out.type.split('-')[0]	/*	4 margin or padding	*/	+this.out.type.split('-')[1].substr(0,1).toUpperCase()						+this.out.type.split('-')[1].substr(1,this.out.type.split('-')[1].length-1);				}				this.out.beg=eval(this.input[1].split('->')[0]);				this.out.end=this.input[1].split('->')[1];				if(typeof this.out.beg!='number'){													if(this.out.type=='scrollTop'||this.out.type=='scrollLeft')						{							if(this.out.obj!=document)								eval('this.out.beg=this.out.obj.'+this.out.type);							else									eval('this.out.beg=this.out.obj.documentElement.'										+this.out.type										+'||this.out.obj.body.'										+this.out.type);										this.out.beg=eval(this.out.beg);							if(this.out.beg==0||this.out.beg=='')this.out.beg=1;							if(this.out.end==0||this.out.end=='')this.out.end='1';						};					if(this.out.type!='opacity'&&this.out.type!='xopacity')					{							if(typeof this.out.beg!='number')							this.out.beg=$_.size(this.out.obj,this.out.type);						if(typeof this.out.beg!='number')							this.out.beg=$_.size(this.out.obj,'offset-'+this.out.type);						if(typeof this.out.beg!='number')this.out.beg=0;					}					else{						if(typeof eval(this.input[1].split('->')[0])!='number')							this.out.beg=$_.opac(this.out.obj);						else this.out.beg=eval(this.input[1].split('->')[0]);						if(typeof this.out.beg!='number')							this.out.beg=1;					}							}				if(this.out.end.toString().indexOf('++')==0)					this.out.end=eval(this.out.beg)+eval(this.out.end.split('++')[1]);				else if(this.out.end.toString().indexOf('--')==0)					this.out.end=eval(this.out.beg)-eval(this.out.end.split('--')[1]);				if(this.out.type=='opacity'||this.out.type=='xopacity')				{						if(this.out.end>1)this.out.end=1;						if(this.out.end<0)this.out.end=0;				}				if(this.out.end.toString().indexOf('%')!=-1)				{					this.out.px='%';					this.out.end=this.out.end.split('%')[0];					if(this.out.type=='top'||this.out.type=='height')						this.out.beg=($T(this.out.obj).getz('offset-'+this.out.type)									/$T(this.out.obj.parentNode).getz('offset-height'))*100;					else if(this.out.type=='top'||this.out.type=='height')						this.out.beg=($T(this.out.obj).getz('offset-'+this.out.type)									/$T(this.out.obj.parentNode).getz('offset-width'))*100;				}				else this.out.px='px';						if(eval(this.out.beg)>eval(this.out.end))					this.out.contr='Down';				else this.out.contr='Up';			return this.out;					}			,pam:function/*pam*/(numb){					this.i=0;this.j=0;					for(this.k=0;this.k<=numb;this.k++)						this.i+=this.j++;					return this.i;			}			,setSlides:{				get:function($obj)				{					if(!$obj)					{						$_.error("A.N.I error :\nelement is undefined .1");						return false;					};					if($obj.length&&$obj.length>1)					{						$_.error("A.N.I error :\nelement is undefined .2");						return false;					};					this.botObj=$obj;					return new doc.NT.fn.setValueSlides(this);				}				,working:function($f$)				{					this.working_=$f$;				}				,continues:function($f$)				{					this.continues_=$f$;				}			}			,setValueSlides:function/*setValueSlide*/(oop1)			{				this.set=function(oop)				{					if(typeof oop!='object')					{						this.tween=oop;						oop=[];						oop.tween=this.tween;					};					if(typeof oop.frame!='object'&&typeof oop.frame!='number')						oop.frame=25;					if(typeof oop.ease!='object'&&typeof oop.ease!='string')						oop.ease='out';					if(oop1.tween=='')						oop1.tween+=oop.tween;					else oop1.tween+=';'+oop.tween;					oop1.delay=oop.delay;					for(this.i=0;this.i<oop.tween.split(';').length;this.i++)					{						oop1.obj.push(oop1.botObj);						if(typeof oop.frame=='object')							{								if(!oop.frame[this.i])									oop.frame[this.i]=oop.frame[this.i-1];								oop1.frame.push(oop.frame[this.i]);							}						else if(oop1.frame)							oop1.frame.push(oop.frame);						if(typeof oop.ease=='object')							{								if(!oop.ease[this.i])									oop.ease[this.i]=oop.ease[this.i-1];								oop1.ease.push(oop.ease[this.i]);							}						else if(oop1.ease)							oop1.ease.push(oop.ease);					};				};			}			,createReflexion:function/*createReflexion*/(img)			{				this.canvas = [];				if(!img)return;				img.style.display='block';				if (document.createElement("canvas").getContext)				{					this.canvas = document.createElement("canvas");					this.canvas.width = img.width;					this.canvas.height = img.height*0.6;					this.ctext = this.canvas.getContext("2d");					this.ctext.translate(0, img.height);					this.ctext.scale(1, -1);					this.ctext.drawImage(img, 0, 0, img.width, img.height);					this.ctext.globalCompositeOperation = "destination-out";					this.gradient = this.ctext.createLinearGradient(0, 0, 0, img.height*3);					this.gradient.addColorStop(1, "rgba(255, 255, 255, 0)");					this.gradient.addColorStop(0.12, "rgba(255, 255, 255, 100)");					this.ctext.fillStyle = this.gradient;					this.ctext.fillRect(0, 0, img.width, img.height);				} 				else 				{					this.canvas    	= document.createElement('img');					this.canvas.src	= img.src;					this.canvas.style.filter = 'flipv progid:DXImageTransform.Microsoft.Alpha('												+'opacity=40, style=1, finishOpacity=0, startx=0,'												+' starty=0, finishx=0, finishy=' +60+ ')';				}				/*$o$.appendChild(this.canvas);*/				return this.canvas;			}			,setStyle:function/*setStyle*/(oop)			{				if(typeof oop.value=='undefined')					return;				if(typeof oop.otp=='undefined')					oop.otp='px';				if(oop.value==0)					oop.otp='';				if((oop.prt=='width'||oop.prt=='height')&&oop.value<0)					oop.value=0;				switch (oop.prt){						case 'opacity':						{							oop.value=Math.round(oop.value*100)/100;							if(oop.value>1)oop.value=1;							if($_.browser.ie)							{								oop.obj.style.filter="alpha(opacity="+(oop.value*100)+")";							}							else oop.obj.style.opacity=oop.value;						}break;							case 'xopacity':						{							oop.value=Math.round(oop.value*100)/100;							if(oop.value>1)								oop.value=1;							oop.value=1;oop.obj.style.opacity=oop.value;						}break;						case 'scrollTop':						{							if(oop.value<1)oop.value=1;							if(oop.obj.scrollTop)								oop.obj.scrollTop=oop.value;							else if(doc.documentElement.scrollTop)								doc.documentElement.scrollTop=oop.value;							else if(doc.body.scrollTop)								doc.body.scrollTop=oop.value;						};break;						case 'scrollLeft':						{							if(oop.value<1)oop.value=1;							if(oop.obj.scrollLeft)								oop.obj.scrollLeft=oop.value;							else if(doc.documentElement.scrollLeft)								doc.documentElement.scrollLeft=oop.value;							else if(doc.body.scrollLeft)								doc.body.scrollLeft=oop.value;						};break;						default:							if(typeof oop.value!='number')							{								if(oop.value.match(/\D/g)==null)									oop.value=Math.round(eval(oop.value));							}else oop.value=Math.round(oop.value);							eval("oop.obj.style."+oop.prt+"='"+(oop.value+oop.otp)+"'");						break;						};			}			,effect:{				slide:function/*slide effect*/(oop)				{					$_.puz(this,oop);					this.frame=oop.frame?oop.frame:17;					this.ease=oop.ease?oop.ease:0;					this.otp=oop.otp?oop.otp:'px';					this.delayTime=oop.delay?oop.delay:1;					this.continues=oop.continues;					if(typeof oop.working=='function')						this.working=oop.working;					else this.working=function(){};						this.id=$_.effect.length;					this.element=oop.element;					this.obj=oop.obj?oop.obj:[];					if(!this.obj.length)					{						this.obj=[];						this.obj[0]=oop.obj?oop.obj:oop.element;					};					this.beg=[];					this.end=[];					this.contr=[];					this.type=[];					this.tween=oop.tween.toString().split(';');					this.length=this.tween.length;					this.effect=function(oop1){new $T(this.element).effect(oop1);};					$_.effect[this.id]=this;					for(this.i=0;this.i<this.length;this.i++)					{						if(!this.obj[this.i])							this.obj[this.i]=this.obj[this.i-1];						this.out=new $_.fn.getContrAni({obj:this.obj[this.i],val:this.tween[this.i]});						this.beg[this.i]=this.out.beg;						this.end[this.i]=this.out.end;						this.contr[this.i]=this.out.contr;						this.type[this.i]=this.out.type;					};						this.delay=function()					{						for(this.i=0;this.i<this.length;this.i++)						{							$_.fn.setStyle({obj:this.obj[this.i]											,prt:this.type[this.i]											,value:this.beg[this.i]											,otp:this.otp});							if(this.contr[this.i]=='Up')								this.beg[this.i]+=((this.end[this.i]-this.beg[this.i])+this.ease)/this.frame;							else this.beg[this.i]-=((this.beg[this.i]-this.end[this.i])+this.ease)/this.frame;							if(((this.contr[0]=='Up'&&this.beg[0]<this.end[0])								||(this.contr[0]=='Down'&&this.beg[0]>this.end[0]))								&&(Math.abs(this.beg[0]-this.end[0])>1))							{										if(this.i==0)setTimeout("if(document.NT.effect["+this.id										+"])document.NT.effect["+this.id+"].delay()",this.delayTime);							}										else							{								$_.fn.setStyle({obj:this.obj[this.i]											,prt:this.type[this.i]											,value:this.end[this.i]											,otp:this.otp});								if(this.continues)this.continues();								document.NT.effect[this.id]=null;							};						};						this.working();											};					this.delay();					}				,show:function(oop)				{					if(oop.cmd)oop.cmd();					this.height=$T($T(oop.element).getChild('div[0]')).getz('offset-height');					if(!this.height)this.height=$T(oop.element).getz('offset-height');					$T(oop.element).effect({type:'slide'											,tween:'height:->'+this.height											,delay:1											,frame:11											,continues:oop.continues?oop.continues:false});				}				,hidden:function(oop)				{					$T(oop.element).effect({type:'slide'						,tween:'height:->++60'						,delay:1						,frame:5						,continues:function(){							if(oop.cmd)oop.cmd();							this.effect({type:'slide'										,tween:'height:->0'										,delay:1										,frame:11										,continues:oop.continues?oop.continues:false});					}});				}				,jojo:function/*jojo*/(oop)				{					oop.obj=oop.element;					if(!oop.obj.jojostatus)						oop.obj.jojostatus='pending';						for(this.i=0;this.i<$_.id;this.i++)						{							if($_.fx[this.i])							{								this.fxLen=$_.fx[this.i].obj.length;								for(this.j=0;this.j<this.fxLen;this.j++)								{									if($_.fx[this.i])									{										if($_.fx[this.i].obj[this.j]==oop.obj&&$_.fx[this.i].status=='working')										{											if(((oop.width&&$_.fx[this.i].prt=='width')												||(oop.height&&$_.fx[this.i].prt=='height')												||(oop.top&&$_.fx[this.i].prt=='top')												||(oop.left&&$_.fx[this.i].prt=='left')												||(oop.opacity&&$_.fx[this.i].prt=='opacity'))												&&($_.fx[this.i].aniStatus[this.j]=='working')){													for(this.k=0;this.k<5;this.k++)														$_.fx[this.i+this.k]=null;												}											}										}								}							}						}															$T(oop.obj,oop).cmd(function()					{						this.jojo=this.obj;						this.setTween=function(val){							this.tween='';							if(this.width)this.tween='width:->'+val;							if(this.height)this.tween+=';height:->'+val;							if(this.top)this.tween+=';top:->'+val;							if(this.left)this.tween+=';left:->'+val;							if(this.scrollLeft)this.tween+=';scroll-left:->'+val;							if(this.scrollTop)this.tween+=';scroll-top:->'+val;							return this.tween;						};							if(this.killFlash){								for(this.i=0;this.i<$_.id;this.i++){								if($_.fx[this.i])									if(this.obj==$_.fx[this.i].jojo)										$_.fx[this.i].status='finish';							};						};							this.obj.jojostatus='working';						if(this.working)this.working();							this.xt=oop.xt?oop.xt:38;							if(this.ctr=='first')								this.xt=0;							this.fvalue='';							if(this.width)							{								if(typeof this.width=='number')									this.fvalue+='width:->'+(this.width+this.xt)+';';								else this.fvalue+='width:->'+this.width+';'; 								};								if(this.height)							{								if(typeof this.height=='number')									this.fvalue+='height:->'+(this.height+this.xt)+';';								else this.fvalue+='height:->'+this.height+';';								};							if(this.top)							{								if(typeof this.top=='number')									this.fvalue+='top:->'+(this.top+this.xt)+';';								else this.fvalue+='top:->'+this.top+';';								};								if(this.left)							{								if(typeof this.left=='number')									this.fvalue+='left:->'+(this.left+this.xt)+';';								else this.fvalue+='left:->'+this.left+';';								};							if(this.scrollLeft)							{								if(typeof this.scrollLeft=='number')									this.fvalue+='scroll-left:->'+(this.scrollLeft+this.xt)+';';								else this.fvalue+='scroll-left:->'+this.scrollLeft+';';								};							if(this.scrollTop)							{								if(typeof this.scrollTop=='number')									this.fvalue+='scroll-top:->'+(this.scrollTop+this.xt)+';';								else this.fvalue+='scroll-top:->'+this.scrollTop+';';								};							if(this.opacity)								this.fvalue+='opacity:'+this.opacity;							if(this.fvalue==''||this.obj.run=='stop')								{this.obj.run=null;return;};												if(!this.frame)this.frame=25;							if(this.ctr=='first'){							if(!this.dir)								this.slide(this.setTween('++50'),-16);							else								this.slide(this.setTween(this.dir),-16);							this.slide(this.fvalue,this.frame);							this.cmd(function(){									if(this.continues)this.continues();									this.element.jojostatus='complete';										});							return;						};						this.slide(this.fvalue,this.frame);							$_.fx[$_.id-1].jojo=this.obj;						this.slide(this.setTween('--70'),-15);							$_.fx[$_.id-1].jojo=this.obj;						this.slide(this.setTween('++40'),-16);							$_.fx[$_.id-1].jojo=this.obj;						this.slide(this.setTween('--15'),-15);							$_.fx[$_.id-1].jojo=this.obj;						this.slide(this.setTween('++10'),-15);							$_.fx[$_.id-1].jojo=this.obj;						this.cmd(function(){								if(this.continues)this.continues();								this.element.jojostatus='complete';									});						this.slide(this.setTween('--3'),-15);						$_.fx[$_.id-1].jojo=this.obj;					});					}				,fadeImage:function/*fade image*/(oop)				{					if(typeof oop.obj=='string')						oop.obj=$T(oop.obj).element;					if(!oop.obj)oop.obj=oop.element;						if(oop.obj.length)return;						this.frm=oop.frame?oop.frame:80;					oop.obj.style.position='relative';					if(!$T(oop.obj).getChild('.imgLayer0').tagName)					{						this.img = new Image();						this.img.style.position='absolute';						this.img.style.left='0px';						$T(this.img).style('opacity:0');						this.img.className='imgLayer0';						oop.obj.appendChild(this.img);						this.img1 = new Image();						this.img1.className='imgLayer1';						$T(this.img1).style('opacity:0');						oop.obj.appendChild(this.img1);					};					this.obj0=$T(oop.obj).getChild('.imgLayer0');					this.obj0.obj1=$T(oop.obj).getChild('.imgLayer1');					this.obj0.completes=oop.complete?oop.complete:function(){};					new $_.fn.effect.loadImg({						obj0:this.obj0						,src:oop.src						,frm:this.frm						,cmd:oop.cmd?oop.cmd:function(){}						,complete:function(){							this.obj0.completes();							if($T(this.obj0).opac()==1){								this.obj0.obj1.src=this.src;								this.obj0.tw0='opacity:->0';								this.obj0.tw1='opacity:->1';							}							else							{								this.obj0.src=this.src;								this.obj0.tw1='opacity:->0';								this.obj0.tw0='opacity:->1';										}								$T(this.obj0,{frm:this.frm}).slide(function($){								$.get($.element).set({tween:$.element.tw0,frame:$.frm});								$.get($.element.obj1).set({tween:$.element.tw1,frame:$.frm});							});							}					});				}				,loadImg:function/*load Image*/(oop)				{					this.id=$_.tryLoadImg.length;					this.thiz=new element();					$_.puz(this.thiz,oop);					this.thiz.img=oop.img;					if(oop.src)					{						this.thiz.src=oop.src;						this.thiz.img=new Image();						this.thiz.img.src=oop.src;					};					this.thiz.cmd=oop.cmd?oop.cmd:function(){};					this.thiz.complete=oop.complete?oop.complete:function(){};					doc.NT.tryLoadImg[this.id]=this;					if(!this.thiz.img)return;					this.load=function(){						if(this.thiz.img.complete)							this.thiz.complete(this.thiz);						else						{							this.thiz.cmd();							setTimeout("document.NT.tryLoadImg["+this.id+"].load()",50);						};					};					this.load();				}			}		}			/*	$_FXprocess Event	*/		,event:function/*event*/(oop)		{				if(!oop.pobj)oop.pobj=doc;				if(!oop.func)oop.func=function(){};				if(!oop.event)oop.event='load';				if(oop.event=='hover')oop.event='onmouseover';				oop.$=new $_.iniCmd(oop.obj);				$_.puz(oop.$,oop.prefix);				oop.$.func=oop.func;				oop.$.obj=oop.obj;				if(oop.obj.tween)					$_.puz(oop.obj.tween,oop.prefix);				switch (oop.event)				{					case 'onmousemove':oop.obj.onmousemove=oop.func;break;					case 'style':oop.func(oop.obj.style);break;					case 'run':					{						oop.id=$_.id;oop.$.func(oop.$);						if($_.fx[oop.id])							$_.progress(oop.id,$_.id-oop.id);					}break;					case 'load':					{						oop.id=$_.id;oop.$.func(oop.$);						if($_.fx[oop.id])							$_.progress(oop.id,$_.id-oop.id);					}break;					default:					{						oop.obj.$=oop.$;						this.ppt="oop.obj."+oop.event;						this.ppt+="=function(){";						this.ppt+="oop.$.globalID=$_.id;oop.$.func(oop.$);";						this.ppt+="if($_.fx[oop.$.globalID])";						this.ppt+="$_.progress(oop.$.globalID,$_.id-oop.$.globalID);};";						eval(this.ppt);					}break;				};					}		/*	getElementByParentNode	*/		,node:function/*node*/($o$,$v$)		{				this.obj=typeof $o$=='object'?$o$:doc;				if(this.obj==null)this.obj=doc;				this.returns=new Array();				if(!this.obj.length)					return new $_.toggle($v$,this.obj,null);					else				{					for(this.i=0;this.i<this.obj.length;this.i++)					{						this.cacheOBJ=new $_.toggle($v$,this.obj[this.i],null);						if(this.cacheOBJ)						{							if(!this.cacheOBJ.length)								this.returns.push(this.cacheOBJ);							else for(this.j=0;this.j<this.cacheOBJ.length;this.j++)								this.returns.push(this.cacheOBJ[this.j]);						};					};					};				return this.returns;		}		/*	$findWayOBJIntermediate	*/		,findWay:function/*findWay*/($v$,$f$,$po$,$ext$)		{				this.val=$v$;				if(this.val.indexOf(':')!=-1)				{					this.event=this.val.split(':')[1];					this.val=this.val.split(':')[0]+'->';				}				else				{					this.event=false;this.val=$v$+'->';				};				this.val=this.val.split('->');						this.cache=new $_.node($po$,this.val[0]);				for(this.i=1;this.i<this.val.length-1;this.i++)				{					if(this.val[this.i].indexOf('#')==-1)							this.cache=new $_.node(this.cache,this.val[this.i]);					else					{						this.val[this.i].replace('#','');						this.cache=doc.getElementById(this.val[this.i]);							};					};								this.val=this.cache;this.cache=new Array();								if(this.val.length)				{					for(this.i=0;this.i<this.val.length;this.i++)						if(typeof this.val[this.i]=='object')						{							if(typeof this.val[this.i].tagName!='undefined')								this.cache.push(this.val[this.i]);						};					}							else if(typeof this.val.tagName!='undefined')					this.cache=this.val;				if(!this.cache.length)					return this.cache;				else if(this.cache.length==1)					return this.cache[0];						return this.cache;			}		/*	 $setOffsetPage Intermediate	*/		,setOffset:function/*setOffset*/($o$){				if(typeof $o$!='object')					return false;				this.obj=this.cobj=$o$;				if(!this.obj.length)				{					this.top=this.left=0;					if ($o$.offsetParent)					{						do 						{							  this.left +=$o$.offsetLeft;							  this.top +=$o$.offsetTop;						} while ($o$=$o$.offsetParent);					};					this.obj.pageTop=this.top;					this.obj.pageLeft=this.left;				}				else				{					for(this.i=0;this.i<=this.obj.length;this.i++)					{						if(this.obj[this.i])						{							this.cobj=this.obj[this.i];							this.top=this.left=0;							if (this.cobj.offsetParent)							{								do								{									this.left +=this.cobj.offsetLeft;									this.top +=this.cobj.offsetTop;								} while (this.cobj=this.cobj.offsetParent);							};						this.obj[this.i].pageTop=this.top;						this.obj[this.i].pageLeft=this.left;						};						};				};				}		/*	$insertHTML Intermediate	*/		,html:function/*html*/($o$,$HTML,$method)		{				if(!$o$)					return;				else					this.obj=$o$;				if(!this.obj.length)				{						if($_.browser.ie)						{							this.HTML=doc.createElement('div');							this.HTML.innerHTML=$HTML;							if($method=='inner')								while(this.obj.hasChildNodes())								{									this.obj.removeChild(this.obj.lastChild);								};							this.obj.appendChild(this.HTML);						}						else						{							if($method=='inner')									this.obj.innerHTML=$HTML;							else 	this.obj.innerHTML+=$HTML;						};					}				else					for(this.i=0;this.i<this.obj.length;this.i++)					{						if($_.browser.ie)						{							this.HTML=doc.createElement('div');							this.HTML.innerHTML=$HTML;							if($method=='inner')								while(this.obj[this.i].hasChildNodes())								{									this.obj[this.i].removeChild(this.obj[this.i].lastChild);								};							this.obj[this.i].appendChild(this.HTML);						}						else						{							if($method=='inner')									this.obj[this.i].innerHTML=$HTML;							else 									this.obj[this.i].innerHTML+=$HTML;						};				};			}		,style:function/*style*/($o$,$v$)		{				if(!$o$)					return false;				if(!$o$.style)					return false;				this.val=$v$+';';				this.val=this.val.split(';');				this.ppt='';				for(this.i=0;this.i<this.val.length-1;this.i++)				{					this.value=this.pr=this.val[this.i].split(':')[1];					this.pr=this.val[this.i].split(':')[0];					if(this.pr.indexOf('-')!=-1)					{						this.pr=this.pr.split('-')[1];						this.pr=this.val[this.i].split(':')[0].split('-')[0]+										this.pr.substr(0,1).toUpperCase()										+this.pr.substr(1,this.pr.length-1);					};										if(this.pr!='')					{						this.otp='';						if(!this.value)this.value='';						if(this.value.indexOf('px')!=-1)						{							this.value=eval(this.value.split('px')[0]);							this.otp='px';						}						else if(this.value.indexOf('%')!=-1)						{							this.value=eval(this.value.split('%')[0]);							this.otp='%';						}						$_.fn.setStyle({obj:$o$										,prt:this.pr										,value:this.value										,otp:this.otp})					};				};		}		/*	 $setDragIntermediate	*/		,drag:function/*drag*/(oop)		{					if(!oop.obj)					return;				if(oop.obj.length)					return;				$_.selection.disable();				this.obj=oop.obj;				if(this.obj.inerHTML=='')					this.obj.inerHTML='&nbsp;';				$_.ofx=this.obj;				$_.ofx.drag='pending';				if(oop.pst=='fix')					$_.ofx.parentNode.style.position='relative';				if(!oop.pst)					oop.pst='absolute';				doc.pstDrag=oop.type;				if(!oop.cmd)					oop.cmd=function(){};				$_.ofx.cmd=oop.cmd;				if(!oop.continues)					oop.continues=function(){};				$_.ofx.continues=oop.continues;				if(typeof oop.min_width=='number')					$_.ofx.min_width=oop.min_width;				else					$_.ofx.min_width=0;				if(typeof oop.min_height=='number')					$_.ofx.min_height=oop.min_height;				else					$_.ofx.min_height=0;				if(oop.type!='resize')				{					if(oop.pst=='absolute'						||oop.pst=='relative'						||oop.pst=='inherit'						||oop.pst=='fixed'						||oop.pst=='static')						this.obj.style.position=oop.pst;					else 						this.obj.style.position='absolute';				};				if(oop.type=='fix')				{					$_.ofx.ow=$_.ofx.offsetWidth;					$_.ofx.oh=$_.ofx.offsetHeight;					$_.ofx.pw=$_.ofx.parentNode.offsetWidth;						$_.ofx.ph=$_.ofx.parentNode.offsetHeight;					};				doc.top=this.obj.offsetTop;				doc.left=this.obj.offsetLeft;				$T(this.obj).style('z-index:'+($_.zindex++)+';top:'+doc.top+'px;left:'+doc.left+'px');				this.obj.style.marginTop='0px';				this.obj.style.marginLeft='0px';				doc.onmouseup=function()				{						$_.selection.enable();						doc.onmousemove=null;						doc.onmouseup=null;						if(typeof $_.ofx.continues=='function')							$_.ofx.continues();						if(!$_.ofx)							$_.ofx=null;				};				doc.onmousemove=function(e)				{					this.top=!doc.all ? e.clientY: event.clientY;					this.left=!doc.all ? e.clientX: event.clientX;					if (doc.documentElement)					{						if(doc.documentElement.scrollTop||doc.documentElement.scrollLeft)						{							this.top += doc.documentElement.scrollTop;							this.left += doc.documentElement.scrollLeft;						};					}						else if (doc.body)					{						this.top += doc.body.scrollTop;						this.left += doc.body.scrollLeft;					};					if($_.ofx.drag=='pending')					{						this.curtop=this.top-$_.size($_.ofx,'offset-top');						this.curleft=this.left-$_.size($_.ofx,'offset-left');						this.curwidth=$_.size($_.ofx,'offset-width');						this.curheight=$_.size($_.ofx,'offset-height');						this.c_left=this.left;						this.c_top=this.top;						$_.ofx.drag='moving';					};						if(doc.pstDrag=='fix')					{						if((this.left-this.curleft)+$_.ofx.ow>$_.ofx.pw)							this.left=this.curleft-$_.ofx.ow+$_.ofx.pw;						if((this.top-this.curtop)+$_.ofx.oh>$_.ofx.ph)							this.top=this.curtop-$_.ofx.oh+$_.ofx.ph;											if(this.top-this.curtop<0)this.top=this.curtop;							if(this.left-this.curleft<0)this.left=this.curleft;					};					$_.ofx.top=(this.top-this.curtop);					$_.ofx.left=(this.left-this.curleft);					$_.ofx.cTop=this.top;					$_.ofx.cLeft=this.left;					$_.ofx.cmd();										if(doc.pstDrag=='resize')					{						if(eval(this.curwidth+eval(this.left-this.c_left))>=$_.ofx.min_width)						{							$_.ofx.style.width=									Math.abs(eval(this.curwidth									+eval(this.left-this.c_left)))									+'px';							if(eval(this.curwidth+eval(this.left-this.c_left))<0)									$_.ofx.style.left=eval((this.c_left														-this.curleft)														+eval(this.left														-this.c_left))														+'px';						};							if(eval(this.curheight+eval(this.top-this.c_top))>=$_.ofx.min_height)						{							$_.ofx.style.height=Math.abs(eval(this.curheight															+eval(this.top															-this.c_top)))															+'px';							if(eval(this.curheight+eval(this.top-this.c_top))<0)									$_.ofx.style.top=eval((this.c_top														-this.curtop)														+eval(this.top														-this.c_top))														+'px';						};						return;					};					$_.ofx.style.top=(this.top-this.curtop)+'px';					$_.ofx.style.left=(this.left-this.curleft)+'px';				};		}			,toggle:function/*toggle*/($v$,$po$,$ext$)		{				this.val=$v$?$v$:'';				if(this.val.toString().indexOf('->')!=-1)					return new $_.findWay(this.val,$po$,$ext$);				if(!$po$)					this.parentObj=doc;				else					this.parentObj=$po$;					/*  : Begin Set Event for element(s) : */				if(this.val.toString().indexOf('#')!=-1)				{					/*		ID   	*/					this.val=this.val.split('#')[1];						if(doc.getElementById(this.val))							return doc.getElementById(this.val);						else						{							/*$_.error('A.N.I error  : \n \nID  " '+this.val+' "  is not defined .3');*/							return 0;						};				}									else				{			/*		Class	or 	Tag		*/									if(this.val.toString().indexOf('.')==-1)						this.val+='.'; /*$T('div')*/					this.val=this.val.split('.');								this.per=null;					if(this.val[1].indexOf('[')!=-1)					{						this.ClassName=this.val[1].split('[')[0];						this.per=this.val[1].split('[')[1].split(']')[0];					}					else						this.ClassName=this.val[1];					if(this.val[0].indexOf('[')!=-1)					{						this.per=this.val[0].split('[')[1].split(']')[0];						this.val[0]=this.val[0].split('[')[0];					};						if(!this.ClassName)						this.ClassName='';					if(this.val[0]=='')						this.val[0]='*';					this.cacheToggle=new Array();					this.toggle=new Array();					var re=new RegExp('\\b' + this.ClassName + '\\b');					if(this.parentObj.length)					{						this.cacheToggle=this.parentObj[0].getElementsByTagName(this.val[0]);						for(this.i=0;this.i<this.cacheToggle.length;this.i++)							this.toggle.push(this.cacheToggle[this.i]);						for(this.i=1;this.i<this.parentObj.length-1;this.i++)							if(this.parentObj[this.i].getElementsByTagName(this.val[0]).length>0)								/*kiem tra co bat dc cai nao ko*/								this.toggle.push(this.parentObj[this.i].getElementsByTagName(this.val[0]));					}						else					{						if(!$_.browser.ie&&typeof this.parentObj.getElementsByTagName!='function')return false;						if($_.browser.ie&&typeof this.parentObj.getElementsByTagName!='object')return false;						this.toggle=this.parentObj.getElementsByTagName(this.val[0]);					}					this.cacheToggle=null;					this.cacheToggle=new Array();					for(this.i=0;this.i<this.toggle.length;this.i++)							if(re.test(this.toggle[this.i].className)||this.ClassName=='')								this.cacheToggle.push(this.toggle[this.i]);						if(this.per=='last')						this.per=this.cacheToggle.length-1;					if(!this.cacheToggle||this.cacheToggle=='')return null;					if(this.per)					{						return typeof this.cacheToggle[this.per]=='object'?this.cacheToggle[this.per]:false;					}						else					{						if(this.cacheToggle.length==1)							return this.cacheToggle[0];						else return this.cacheToggle;					};					};			}		,iniEvent:function/*iniEvent*/(oop)		{				this.event=oop.event;				if(!oop.obj)				{					$_.error("A.N.I error :\nelement is undefined .4");					return false;				};				this.obj=oop.obj;				this.ext=oop.ext;								this.cmd=function($f$){					this.id=$_.eventObj.length;					$_.eventObj[this.id]=[];					$_.eventObj[this.id].func=$f$;					$_.eventObj[this.id].ext=this.ext;					if(!this.obj.length)						eval("this.obj."+this.event								+"=function(){$T(this,document.nt.eventObj["								+this.id+"].ext).cmd(document.nt.eventObj["								+this.id+"].func);}");					else for(this.i=0;this.i<this.obj.length;this.i++)						eval("this.obj["+this.i+"]."								+this.event+"=function(){$T(this,document.nt.eventObj["								+this.id+"].ext).cmd(document.nt.eventObj["								+this.id+"].func);}");				};				this.slide=function($v$,$speed){					this.id=$_.eventObj.length;					$_.eventObj[this.id]=[];					$_.eventObj[this.id].val=$v$;					$_.eventObj[this.id].speed=$speed;					$_.eventObj[this.id].ext=this.ext;					if(!this.obj.length)						eval("this.obj."+this.event								+"=function(){$T(this,document.nt.eventObj["								+this.id+"].ext).slide(document.nt.eventObj["								+this.id+"].val,document.nt.eventObj["								+this.id+"].speed);}");					else for(this.i=0;this.i<this.obj.length;this.i++)						eval("this.obj["+this.i+"]."+this.event								+"=function(){$T(this,document.nt.eventObj["								+this.id+"].ext).slide(document.nt.eventObj["								+this.id+"].val,document.nt.eventObj["								+this.id+"].speed);}");				};					this.effect=function($oop){					this.id=$_.eventObj.length;					$_.eventObj[this.id]=[];					$_.eventObj[this.id].oop=$oop;					$_.eventObj[this.id].ext=this.ext;					if(!this.obj.length)						eval("this.obj."+this.event								+"=function(){$T(this,document.nt.eventObj["								+this.id+"].ext).effect(document.nt.eventObj["								+this.id+"].oop);}");					else for(this.i=0;this.i<this.obj.length;this.i++)						eval("this.obj["+this.i+"]."								+this.event+"=function(){$T(this,document.nt.eventObj["								+this.id+"].ext).effect(document.nt.eventObj["								+this.id+"].oop);}");												}						}		/*	$TIntermediateCoreFunction	*/		,driver:function/*driver*/($o$,$ext$)		{				this.plugin=function($f$)				{					eval('this.checkPlugin=typeof this.'+$o$.name);					if(this.checkPlugin!='undefined'){						$_.error("A.N.I error : \nCan`t create plugin '"+									$o$.name+"' with core driver A.N.I .6");							return false;					};					eval('doc.NT.driver.prototype.'+$o$.name+'='+$f$);					eval("doc.NT.iniEvent.prototype."+$o$.name					+"=function(input){$T(this.obj).each(function()"					+"{$_.event({obj:this,event:this.fx.event,func:function(){$T(this.obj)."					+$o$.name+"(input)},pobj:doc,prefix:this.fx.prefix});},this);}");				};				if(!$o$)$o$=doc;				if($o$.name)return;				if($o$=='cookie')return $_.cookie;				this.pobj=doc;				this.input=[];				this.input.value=$o$;				if($o$.toString().indexOf(':')==-1||typeof $o$=='object')				{					this.input.event='load';					this.input.name=$o$;				}else 				{					this.input.event=$o$.split(':')[1];					this.input.name=$o$.split(':')[0];				};				if(typeof $o$=='object')					this.type='iselement';				else this.type='notelement';				if(this.type=='iselement')					this.element=$o$;				else if(this.type=='notelement')					this.element=new $_.toggle(this.input.name,this.pobj,null);				if(!this.element.tagName&&!this.element.length)					this.element=null;					if($o$==doc)this.element=doc;				this.obj=this.element;										/*	EVENT MOUSE	*/				this.click=function()				{					return new $_.iniEvent({obj:this.element								,ext:$ext$								,event:'onclick'});				};											this.dblclick=function()				{					return new $_.iniEvent({obj:this.element								,ext:$ext$								,event:'ondblclick'});				};											this.hover=function()				{					return new $_.iniEvent({obj:this.element								,ext:$ext$								,event:'onmouseover'});				};											this.mouseOut=function()				{					return new $_.iniEvent({obj:this.element								,ext:$ext$								,event:'onmouseout'});				};											this.mouseUp=function()				{					return new $_.iniEvent({obj:this.element								,ext:$ext$								,event:'onmouseup'});					};								this.mouseDown=function()				{					return new $_.iniEvent({obj:this.element								,ext:$ext$								,event:'onmousedown'});				};								this.mouseMove=function()				{					return new $_.iniEvent({obj:this.element								,ext:$ext$								,event:'onmousemove'});				};								/*	END EVENT MOUSE	*/				this.each=function($f$,$ext$)				{					if(!$ext$)$ext$=doc.NT;					if(!this.element)return;					if(!this.element.length)					{						this.element.func=$f$;						this.element.fx=$ext$;						this.element.order=0;						this.element.total=1;							this.element.func();					}						else					{						for(this.i=0;this.i<this.element.length;this.i++)						{							this.element[this.i].func=$f$;							this.element[this.i].fx=$ext$;								this.element[this.i].order=this.i;							this.element[this.i].total=this.element.length;									this.element[this.i].func();						};					};				};				this.cmd=function($f$)				{					this.each(function()					{						return new $_.event({obj:this												,event:this.fx.event												,func:$f$												,pobj:this.fx.pobj												,prefix:$ext$});					},this.input);				};				this.getz=function($pr)				{						if(!$pr||$pr==''||!this.element)							return false;						if(this.element.length)							return false;					    if($pr=='opacity')							return $_.opac(this.element);						else return $_.size(this.element,$pr);							};				this.opac=function()				{						return $_.opac($o$);				};				this.getChild=function($eleme)				{					if(!$eleme)						return this.element;					else return new $_.toggle($eleme,this.element,null);						};				this.onload=function($f$t)				{					return new $_.addEvent($f$t,$o$,'onload');				};				this.addEvent=function($e$,$f$t)				{					if($o$==window)						this.element=window;						return new $_.addEvent($f$t,this.element,$e$);				};					this.style=function($val)				{					if(this.type=='iselement'){						this.newstyle=new $_.iniCmd($o$);						return this.newstyle.style($val);					}						else if(this.type=='notelement')					{						if(!this.element||this.element=='')						{							$_.error('A.N.I error  : \n \nID  " '+$o$+' "  is not defined .7');							return false;						};						if(this.element.length)						{							for(this.i=0;this.i<this.element.length;this.i++){														this.newstyle=new $_.iniCmd(this.element[this.i]);								this.newstyle.style($val);							};						}						else						{							this.newstyle=new $_.iniCmd(this.element);							return this.newstyle.style($val);							};						};				};						this.drag=function(oop)				{						if(!oop)oop=[];					new $_.drag({obj:this.element								,type:oop.type								,pst:oop.position								,cmd:oop.cmd								,continues:oop.continues								,min_width:oop.minWidth								,min_height:oop.minHeight								});							};				/*	$T Getz Value Attribute of an element	*/						this.getAttribute=function($attName)				{					if(!$attName||$attName==''||this.element==null)						return null;									if(!this.element.length){						if(this.element.getAttributeNode($attName)==null)							return null;						return this.element.getAttributeNode($attName).value;						};							return null;					};				this.innerHTML=function($HTML)				{					new $_.html(this.element,$HTML,'inner');					};				this.addHTML=function($HTML)				{					new $_.html(this.element,$HTML,'add');					};							this.createChild=function($tagName,$f$)				{						if(!$f$)$f$=function(){};					this.HTML=doc.createElement($tagName);					$_.puz(this.HTML,$ext$);					this.HTML.func=$f$;					if(!this.element||this.element==null||this.element==doc)						this.element=doc.body;					if(!this.element.length)					{									this.element.appendChild(this.HTML);						this.HTML.func(this.HTML);					}						else for(this.i=0;this.i<this.element.length;this.i++)					{						this.HTML=doc.createElement($tagName);						this.element[this.i].appendChild(this.HTML);						this.HTML.func(this.HTML);					};				};					this.clearTimeout=function()				{						if(!this.element.length)						clearTimeout($_.time[this.element]);								else for(this.i=0;this.i<this.element.length;this.i++)						clearTimeout($_.time[this.element[this.i]]);					};				this.setOffsetPage=function()				{						new $_.setOffset(this.element);				};				this.valid=function(oop)				{					oop=oop?oop:[];					this.format=oop.format?oop.format:'string';					this.format=this.format=='email'||this.format=='number'?this.format:'string';					this.min=oop.min?oop.min:1;					this.max=oop.max?oop.max:10011011100;					return $_.valid({string:$o$									,type:this.format									,minLeng:this.min									,maxLeng:this.max});				};				this.reflex=function(img)				{					this.each(function()					{						this.appendChild($_.fn.createReflexion(this.fx));					},img);				};					this.slide=this.NT=function($v$,$speed)				{					if(typeof $o$=='object'&&$o$[1]!=$o$[0])						new $T().cmd(function(){this.obj($o$).slide($v$,$speed);});					else new $T($o$,$ext$).cmd(function(){this.slide($v$,$speed);});				};					this.ajax=function($URI)				{						if(typeof $URI!='object')							return new $_.request({obj:this.element,URI:$URI,run:true,prefix:$ext$});						else						{							if(!$URI.URI)return;							if(!$URI.method)$URI.method='get';								$URI.run=true;									$URI.obj=this.element;							$URI.prefix=$ext$;								return new $_.request($URI);						};										};				this.effect=function(oop)				{					if(!oop.type)return;					if(typeof oop.line=='function')					{						this.bot=$_.fn.setSlides;						$_.puz(this.bot,oop);						$_.puz(this.bot,$ext$);						this.bot.obj=[];						this.bot.tween='';						this.bot.frame=this.bot.ease=[];						this.bot.element=this.element;						if(!oop.thiz)oop.thiz=[];						oop.thiz.tween=oop.line;						oop.thiz.tween(this.bot);						oop.obj=this.bot.obj;						oop.tween=this.bot.tween;					};					$_.puz(oop,$ext$);					this.each(function()					{						oop.element=this;						eval('new $_.fn.effect.'+oop.type+'(oop)');					});				};		}		/*	 $Clear Cache	*/		,clear:function/*clear*/(level)		{				if(level=='important')				{					$_.fx=null;$_.fx=new Array();					$_.id=0;return;				};				this.check=0;				for(this.i=0;this.i<$_.id;this.i++)					if($_.fx[this.i]){						if($_.fx[this.i].status=='working'||$_.fx[this.i].status=='pending')							this.check++;						if($_.fx[this.i].status=='finish')							$_.fx[this.i]=null;					};				if(this.check==0)				{					$_.fx=null;$_.fx=new Array();					$_.id=0;				};			}		/*	 $onloadWhendocReady	*/		,addEvent:function/*addEvent*/($f$,$o$,$e$)		{				if(!$o$)$o$=window;				if($o$.length){					for(this.i=0;this.i<$o$.length;this.i++)					{						$o$[this.i].func=$f$;						if (window.addEventListener)							$o$[this.i].addEventListener($e$.split('on')[1],$o$[this.i].func,true); 						else if (window.attachEvent)							$o$[this.i].attachEvent($e$,$o$[this.i].func);						else if (window.detachEvent)							$o$[this.i].detachEvent($e$,$o$[this.i].func);					};				}				else				{					$o$.func=$f$;					if (window.addEventListener)						$o$.addEventListener($e$.split('on')[1],$o$.func,true); 					else if (window.attachEvent)						$o$.attachEvent($e$,$o$.func);					else if (window.detachEvent)						$o$.detachEvent($e$,$o$.func);				};			}		/* 	$_FXcontrol Animation	*/		,iniCmd:function/*iniCmd*/($o$)		{					this.slideCache=null;					this.contr=null;					this.ppt=null;					this.element=this.obj=$o$;					this.id=$_.id;						if(this.element)this.parent=this.element.parentNode;				this.fn=new $_.driver($o$,this);				this.style=function($v$)				{					if(typeof $v$=='object')					{						this.val='';						for(prt in $v$)						{							this.val+=prt+':'+$v$[prt]+';';							}						$v$=this.val;					}						new $_.style(this.element,$v$);				};				this.cmd=function($f$)				{						new $_.animation({obj:this.element,func:$f$,$:this,type:'function'});				};					this.effect=function(oop)				{					return this.fx.effect(oop);				};					this.progress=function($amout,$next)				{						if($next==null)this.next=$amout;						else this.next=$next;							if($_.fx[$_.id-$amout])							$_.progress($_.id-$amout,this.next);						this.globalID=$_.id;				};					this.slide=this.NT=function(oop,frame)				{						if(typeof oop=='function')							return this.getObj(oop);						else if(typeof oop=='string')						{							this.tween=oop.split(';');							oop=[];							if(!frame)frame=25;							if(frame>0)oop.ease='out';							else oop.ease='in';							oop.frame=Math.abs(frame);							this.frame=[];							this.ease=[];						}							else if(typeof oop=='object')						{							this.tween=oop.tween.split(';');							this.frame=typeof oop.frame=='object'?oop.frame:[];							this.ease=typeof oop.ease=='object'?oop.ease:[];						}						else return;													this.objz=oop.obj?oop.obj:[];						for(this.i=0;this.i<this.tween.length;this.i++)						{							if(!oop.obj)								this.objz[this.i]=this.element;							if(!this.objz[this.i])								this.objz[this.i]=this.objz[this.i-1];							if(typeof oop.frame=='number')								this.frame[this.i]=oop.frame;							else if(typeof oop.frame!='object')								this.frame[this.i]=25;							if(!this.frame[this.i])								this.frame[this.i]=this.frame[this.i-1];															if(typeof oop.ease=='string')								this.ease[this.i]=oop.ease;							else if(typeof oop.ease!='object')								this.ease[this.i]='out';							if(!this.ease[this.i])								this.ease[this.i]=this.ease[this.i-1];									};					new $_.animation({								obj:this.objz								,type:'slide'								,ease:this.ease								,frame:this.frame								,tween:this.tween								,working:oop.working_								,continues:oop.continues_								,delay:oop.delay							});							};				this.getObj=function(oop)				{					this.bot=$_.fn.setSlides;					$_.puz(this.bot,this);					this.bot.thiz=this;					this.bot.obj=[];					this.bot.tween='';					this.bot.frame=[];					this.bot.ease=[];					this.bot.element=$o$;					oop(this.bot);					this.slide(this.bot);				};					this.ajax=function($URI)				{						if(typeof $URI!='object')							return new $_.request({obj:this.element													,URI:$URI													,prefix:this													,run:false});						else						{							if(!$URI.URI)return;							if(!$URI.method)$URI.method='get';								$URI.run=false;									$URI.obj=this.element;							$URI.prefix=this;							return new $_.request($URI);						};				};				this.setTimeout=function($timeOut)				{						if($_.fx[$_.id-1])$_.fx[$_.id-1].timeOut=$timeOut;				};		}		/*	 $_FXmakeNewRequest	*/		,makeRequest:function/*makeRequest*/(oop)		{				this.checker=true;				for(this.i=0;this.i<$_.ajax.length;this.i++)					if($_.ajax[this.i])					{						if(($_.ajax[this.i].obj==oop.obj							&&oop.obj!=doc)							||$_.ajax[this.i].status=='complete')							{								$_.ajax[this.i]=null;							this.rq='T_HttpRequest_'									+this.i+'=null;$T_AjaxResult_'									+this.i+'=null';							eval(this.rq);							};						if($_.ajax[this.i])							this.checker=false;					};				if(this.checker)				{					$_.ajax=null;					$_.ajax=new Array();				};				$_.ajax[$_.ajax.length]=new function()				{					$_.puz(this,oop.$);					this.URI=oop.URI;					this.param=oop.parame;					this.obj=oop.obj;						this.loading=oop.loading;						this.finish=oop.finish;					this.idGlobal=oop.id;					this.id=$_.ajax.length;					this.result=null;					this.status='pending';					this.request='new function(){'						+'var $T_HttpRequest_'+this.id+'=false;'						+'function  makePOSTRequest(url_'+this.id+',parameters_'+this.id+'){'						+'$T_HttpRequest_'+this.id+'=false;'						+'$_.ajax['+this.id+'].status="working";'						+'if($_.fx['+this.idGlobal+'])$_.fx['+this.idGlobal+'].status="working";'						+'$_.ajax['+this.id+'].loading($_.fx['+this.idGlobal+'].$);'						+'if (window.XMLHttpRequest) {$T_HttpRequest_'+this.id+'=new XMLHttpRequest();'						+'if ($T_HttpRequest_'+this.id+'.overrideMimeType) {'						+'$T_HttpRequest_'+this.id+'.overrideMimeType("text/html");}'						+'} else if (window.ActiveXelement) { /* IE */'						+'try {$T_HttpRequest_'+this.id+'=new ActiveXelement("Msxml2.XMLHTTP");'						+'} catch (e) {	try {					  '						+' $T_HttpRequest_'+this.id+'=new ActiveXelement("Microsoft.XMLHTTP");'						+'} catch (e) {}}}'						+'if (!$T_HttpRequest_'+this.id+') {'						+'$_.error("A.N.I error : Cannot create XMLHTTP instance .8");'						+'return false;} '						+'$T_HttpRequest_'+this.id+'.onreadystatechange=$T_AjaxResult_'+this.id+';'						+'$T_HttpRequest_'+this.id+'.open("POST", url_'+this.id+', true);'						+' $T_HttpRequest_'+this.id+'.setRequestHeader("Content-type",'						+' "application/x-www-form-urlencoded");'						+'$T_HttpRequest_'+this.id+'.setRequestHeader("Content-length", parameters_'						+this.id+'.length);'						+'$T_HttpRequest_'+this.id+'.setRequestHeader("Connection", "close");'						+'$T_HttpRequest_'+this.id+'.send(parameters_'+this.id+');}'						+'function $T_AjaxResult_'+this.id+'() {'						+'if ($T_HttpRequest_'+this.id+'.readyState==4) {'						+'	if ($T_HttpRequest_'+this.id+'.status==200) {'						+'$_.ajax['+this.id+'].result=$T_HttpRequest_'+this.id+'.responseText;'						+'if(!$_.ajax['+this.id+'].finish)'						+'$_.html($_.ajax['+this.id+'].obj,$T_HttpRequest_'						+this.id+'.responseText,"inner");'						+'if($_.fx['+this.idGlobal+'])$_.fx['+this.idGlobal+'].status="finish";'						+'if($_.ajax['+this.id+'].finish)'						+'		$_.ajax['+this.id+'].finish($_.fx['+this.idGlobal+'].$);'						+'		$_.ajax['+this.id+'].status="complete";'						+'		$_.ajax['+this.id+']=null;'						+'		$T_HttpRequest_'+this.id+'=null; '						+'  $T_AjaxResult_'+this.id+'=null;'						+'	if($_.fx['+this.idGlobal+'])'						+'$_.progress($_.fx['+this.idGlobal+'].nextTo,$_.fx['+this.idGlobal+'].next);'						+'} else {$_.ajax['+this.id+']=null;'						+'$_.error("A.N.I error : There was a problem with the request .9");'						+'	}}}return makePOSTRequest("'+this.URI+'","'+this.param+'");}';					};				$_.ajax[$_.ajax.length-1].request=eval($_.ajax[$_.ajax.length-1].request);		}		,progress:function/*progress*/($id,$next,timeOut)		{				if(!$_.fx[$id])return false;				this.next=$next;				if(this.next==0||$_.fx[$id]==null)return false;				/*		-	- 	-	*/							if(typeof $_.fx[$id].timeOut=='number')				{				/*-	-	SetTimeout cho tien trinh	-	-*/					if($_.fx[$id].timeOut<0)						$_.fx[$id].timeOut=0;					$_.time[$_.fx[$id].obj]=setTimeout("document.NT.progress("+$id											+","+this.next											+",true)"											,$_.fx[$id].timeOut);					$_.fx[$id].timeOut=null;					$_.fx[$id].ready=true;					return false;				};				if(this.next!=null)					$_.fx[$id].next=this.next-1;				/*	-	-	set next progress cho animation	-	-	*/				if($_.fx[$id].type=='slide')				{					for(this.i=0;this.i<$_.fx[$id].tween.length;this.i++)					{/*[][][][]*/			this.out=new $_.fn.getContrAni({obj:$_.fx[$id].obj[this.i]														,val:$_.fx[$id].tween[this.i]});						if(this.out.type)						{							$_.fx[$id].beg[this.i]=this.out.beg;							$_.fx[$id].end[this.i]=this.out.end;							$_.fx[$id].contr[this.i]=this.out.contr;							$_.fx[$id].prt[this.i]=this.out.type;							$_.fx[$id].px[this.i]=this.out.px;							$_.fx[$id].aniStatus[this.i]='pending';														if(this.out.type=='opacity'								||this.out.type=='xopacity'								||$_.fx[$id].ease[this.i]=='none')							{								$_.fx[$id].counter[this.i]=Math.abs(this.out.beg-this.out.end)															/$_.fx[$id].frame[this.i];								$_.fx[$id].ct[this.i]=0;							}							else if($_.fx[$id].ease[this.i]=='in')							{								$_.fx[$id].ct[this.i]=eval(Math.abs(this.out.beg-this.out.end)													/$_.fn.pam($_.fx[$id].frame[this.i]));								$_.fx[$id].counter[this.i]=													$_.fx[$id].frame[this.i]*$_.fx[$id].ct[this.i];							}							else							{								$_.fx[$id].ct[this.i]=eval(Math.abs(this.out.beg-this.out.end)													/$_.fn.pam($_.fx[$id].frame[this.i]));								$_.fx[$id].counter[this.i]=0;							};						};					};						if(eval($_.fx[$id].beg)==eval($_.fx[$id].end)&&$_.fx[$id].type!='function')					{						$_.fx[$id].status='finish';						if($_.fx[$id]!=0)							$_.progress(eval($_.fx[$id].id)+1,$_.fx[$id].next);					};/*tranh xung dot*/ 	for(this.i=0;this.i<$id;this.i++)					{	/*[][][]*/			if($_.fx[this.i]&&$_.fx[this.i].tween)						{									for(this.j=0;this.j<$_.fx[this.i].tween.length;this.j++)								{				/*another*/			for(this.k=0;this.k<$_.fx[$id].tween.length;this.k++)										if($_.fx[this.i].obj[this.j]==$_.fx[$id].obj[this.k]											&&$_.fx[this.i].prt[this.j]==$_.fx[$id].prt[this.k]											&&$_.fx[this.i].aniStatus[this.j]=='working'											&&$_.fx[this.i].status=='working'&&this.i!=$id)												$_.fx[this.i].aniStatus[this.j]='finish';																						if($_.fx[this.i].obj==$_.fx[$id].obj										&&$_.fx[this.i].prt==$_.fx[$id].prt										&&$_.fx[this.i].status=='working'										&&this.i!=$id)											$_.fx[this.i]=null;																/*The Same*/		if(this.i==$id)										for(this.l=this.j+1;this.l<$_.fx[this.i].tween.length;this.l++)											if($_.fx[this.i].obj[this.j]==$_.fx[this.i].obj[this.l]												&&$_.fx[this.i].prt[this.j]==$_.fx[this.i].prt[this.l])													{$_.fx[this.i].aniStatus[this.j]='finish';}									};									};					};					};				/*[][][]	Test Zone	*/					/*	-	-	[][][]	-	-	*/				if(typeof $_.fx[$id]=="undefined")					return false;					if($_.fx[$id].status!='finish'&&($_.fx[$id].ready==false||timeOut==true))				{						$_.fx[$id].ready=true;						if($_.fx[$id].type=='function')							$_.fx[$id].cmd();						else if($_.fx[$id].type=='slide')							$_.fx[$id].slide();						else if($_.fx[$id].type=='ajax')							$_.fx[$id].ajax();				}else $_.fx[$id].ready=false;				}						,animation:function/*animation*/(oop)		{				this.thiz=oop.thiz=this;					this.$=oop.$;					this.id=$_.id++;				this.type=oop.type;				this.obj=typeof oop.obj=='object'?oop.obj:[];				this.counter=[];				this.ct=[];				this.prt=[];				this.contr=[];				this.effect=[];				this.beg=[];				this.end=[];				this.px=[];				this.aniStatus=[];				this.frame=oop.frame;				this.ease=oop.ease;				this.next=typeof eval(oop.next)=='number'?eval(oop.next):1;				this.nextTo=$_.id;				this.status='pending';				this.ready=false;				this.timeOut=0;				this.delay=oop.delay?oop.delay:1;				this.func=typeof oop.func=='function'?oop.func:'undefined';				this.working=typeof oop.working=='function'?oop.working:'undefined';				this.continues=typeof oop.continues=='function'?oop.continues:'undefined';				this.val=oop.val;				this.tween=oop.tween;				$_.fx[this.id]=this;										 					this.cmd=function()				{						this.iniCmd=[];						this.iniCmd.funct=this.func;						$_.puz(this.iniCmd,this.$);						this.iniCmd.funct();						this.status='finish';						$_.progress(this.nextTo,this.next);						$_.clear();				};this.l=0;				this.slide=function()				{					for(this.i=0;this.i<this.tween.length;this.i++)					{						if(this.aniStatus[this.i]!='finish')						{								/*	-	-	contr		-	-	*/							if(this.contr[this.i]=='Up')									this.beg[this.i]+=this.counter[this.i];							else 	this.beg[this.i]-=this.counter[this.i];							/*	-	-	Effect	-	-	*/							if(this.ease[this.i]!='in')									this.counter[this.i]+=this.ct[this.i];							else 	this.counter[this.i]-=this.ct[this.i];							/*	begin slide	*/							if(((this.contr[this.i]=='Up'									&&this.beg[this.i]<this.end[this.i])									||(this.contr[this.i]=='Down'									&&this.beg[this.i]>this.end[this.i]))									&&this.counter[this.i]>0){									this.aniStatus[this.i]='working';								$_.fn.setStyle({obj:this.obj[this.i]												,prt:this.prt[this.i]												,value:this.beg[this.i]												,otp:this.px[this.i]});  /*ket thuc 1 chuyen dong*/}							else							{								$_.fn.setStyle({obj:this.obj[this.i]												,prt:this.prt[this.i]												,value:this.end[this.i]												,otp:this.px[this.i]});								this.aniStatus[this.i]='finish';								}; 						};					};					if($_.checkStatusSlide.test(this.aniStatus))					{						this.status='working';						if(typeof this.working=='function')							this.working();						setTimeout("if(document.NT.fx["+this.id									+"])document.NT.fx["+this.id+"].slide()",this.delay);					}					else					{						this.status='finish';						if(typeof this.continues=='function')							this.continues();						$_.clear();							if(this.next!=0)							$_.progress(this.nextTo,this.next);					}; 							};				this.ajax=function()				{					new $_.makeRequest({obj:this.obj											,id:this.id											,URI:oop.URI											,parame:oop.parame											,$:oop.$											,loading:oop.beg											,finish:oop.end});					this.status='finish';										};			}		/*	 $_FXintermediate Request	*/		,request:function/*request*/(oop_request)		{				this.obj=oop_request.obj;				this.URI=oop_request.URI;				this.prefix=oop_request.prefix;				this.post=function(oop)				{					if(!oop)					{						oop=[];						oop.working=function(){};					};					if(!oop.working)						oop.working=function(){};					if(!this.obj.length)					{						this.obj=new Array();						this.obj[0]=oop_request.obj;					};					if(oop.oop){						$_.puz(oop,oop.oop);						$_.puz(oop,oop.oop.prefix);					};						if(this.URI.indexOf('?')==-1)						this.URI+="?checker=NT";					this.URI+="&RandomRequest="+Math.round(Math.random()*6868);						this.URI=this.URI.split('?');					for(this.i=0;this.i<this.obj.length;this.i++)					{							new $_.animation({obj:this.obj[this.i]												,URI:this.URI[0]												,parame:this.URI[1]												,type:'ajax'												,beg:oop.working												,end:oop.complete												,$:oop});							if(oop_request.run)$_.progress($_.id-1,1);					};					};				this.get=function(oop)				{					if(!oop)					{						oop=[];						oop.working=function(){};					};					if(!oop.working)						oop.working=function(){};					if(!this.obj.length)					{						this.obj=new Array();						this.obj[0]=oop_request.obj;					};					if(oop.oop){						$_.puz(oop,oop.oop);						$_.puz(oop,oop.oop.prefix);					};							if(this.URI.indexOf('?')==-1)						this.URI+="?IdLoad="+Math.round(Math.random()*6868);					else this.URI+="&RandomRequest="+Math.round(Math.random()*6868);					this.URI=this.URI.split('?');					this.URI[0]+='?'+this.URI[1];					this.URI[1]='MakeRequest=NT';					for(this.i=0;this.i<this.obj.length;this.i++)					{								new $_.animation({obj:this.obj[this.i]												,URI:this.URI[0]												,parame:this.URI[1]												,type:'ajax'												,beg:oop.working												,end:oop.complete												,$:oop});							if(oop_request.run)$_.progress($_.id-1,1);					};				};				if(oop_request.method=='post')					return this.post({working:oop_request.working										,complete:oop_request.complete										,oop:oop_request});				else if(oop_request.method=='get')					return this.get({working:oop_request.working										,complete:oop_request.complete										,oop:oop_request});		}		/*	 $_FXpPluginDisableSelection	*/		,selection:{				disable:function(obj)				{					if(!obj)obj=doc.body;					if (typeof doc.body.onselectstart!="undefined")						obj.onselectstart=function(){return false};					else if (typeof doc.body.style.MozUserSelect!="undefined")						obj.style.MozUserSelect="none";					else obj.onmousedown=function(){return false}				}				,enable:function(obj)				{					if(!obj)obj=doc.body;					if (typeof doc.body.onselectstart!="undefined")						obj.onselectstart=function(){return true};					else if (typeof doc.body.style.MozUserSelect!="undefined")						obj.style.MozUserSelect='';					else obj.onmousedown=function(){return true}				}			}		,cookie:{			set:function($name,$expires)			{				if(typeof $expires!='number'||$expires<1)$expires=30;				return new this.setValue($name,$expires);			}			,get:function($name)			{				if(doc.cookie != "")				{					this.ckf=doc.cookie.indexOf($name+"=");					if(this.ckf >= 0)					{						this.ckf=this.ckf+$name.length+1;						this.ckl=doc.cookie.indexOf(";", this.ckf);						if(this.ckl < 0)this.ckl=doc.cookie.length;						return unescape(doc.cookie.substring(this.ckl, this.ckf));					};					return '';				};				return '';				}			,clear:function($name)			{				if($name=='all')doc.cookie='';				else doc.cookie = $name + "="+''+"; EXPIRES=0";			}			,setValue:function($name,$expires)			{				this.value=function($v$ue)				{						this.date=new Date();						this.date.setDate(this.date.getDate()+$expires);						this.gmt=this.date.toGMTString();						this.ck1=this.gmt.indexOf(" ");						this.ck2=this.gmt.indexOf(" ", this.ck1+1);						this.ck3=this.gmt.indexOf(" ", this.ck2+1);					doc.cookie = $name + "=" 								+ escape($v$ue)								+ "; EXPIRES=" 								+ (this.gmt.substring(0,this.ck2)								+"-"+this.gmt.substring(this.ck2+1,this.ck3)								+"-"+this.gmt.substring(this.ck3+3,this.gmt.length));				};			}			}		,valid:function/*invalid*/(oop)		{			this.string=oop.string;			this.type=oop.type;			this.minLeng=oop.minLeng?oop.minLeng:2;			this.maxLeng=oop.maxLeng?oop.maxLeng:100110100111;			this.ext=oop.ext;			switch(this.type)			{				case 'number':					if(typeof this.string=='number')						return true;					if(this.string.match(/\D/g)==null)						return true;					else return false;				break;				case 'string':					if(typeof this.string!='string')						return false;					if(this.string.length>this.maxLeng)						return false;					if(this.string.length<this.minLeng)						return false;					if(this.string.match(/\D/g)!=null)						return true;					else return false;				break;						case 'email':					if(typeof this.string!='string')						return false;					if(this.string.match(/@/g)==null)						return false;					if(this.string.match(/./g)==null)						return false;					if(this.string.match(/ /g)!=null)						return false;					if(this.string.match(/@/g).length!=1)						return false;					if(this.string.split('@')[0].length<this.minLeng)						return false;					if(this.string.split('@')[0].length>this.maxLeng)						return false;					if(!this.string.split('@')[1].split('.')[0])						return false;					else if(this.string.split('@')[1].split('.')[0].length<2)						return false;					if(!this.string.split('@')[1].split('.')[1])						return false;					else if(this.string.split('@')[1].split('.')[1].length<2)						return false;					return true;				break;									};		}		,ready:function($f$)		{			doc.NT.addEvent($f$,doc.getElementsByTagName('window')[0],'onload');		}		,tryLoadImg:[]		,plugin:[]		,fx:new Array()	 /*elements 4 animation*/		,ajax:new Array()/*elements 4 ajax*/		,time:new Array()/*elements 4 setTimeout*/		,id:0			 /*Global ID 4 animations*/		,zindex:6868	 /*4 Drag*/		,ofx:[]			 /*element 4 drag*/		,keyStore:[]	 /*4 key listening event*/			,eventObj:[]		,checkStatusSlide:new RegExp('\\bworking\\b')		,effect:[]		,error:function(message)		{			doc.title+='*';			doc.NT.error.message+="\n \n"+message;		}}})();/*	Fn Global Config	*/function $T(obj,prefix){return new document.NT.driver(obj,prefix);}
