
//Load pre Image
var img1=new Image();
	img2=new Image();
	img3=new Image();
	img1.src="images/general.png";
	img2.src="images/mainMiddle.jpg";
	img3.src="images/menu.png";
//
function flashWrite(url,w,h,id,bg,vars,win){

	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	document.write(flashStr);

}

var activex = ((navigator.userAgent.indexOf('Win')  != -1) && (navigator.userAgent.indexOf('MSIE') != -1) && (parseInt(navigator.appVersion) >= 4 ));
var CantDetect = ((navigator.userAgent.indexOf('Safari')  != -1) || (navigator.userAgent.indexOf('Opera')  != -1));


if(typeof(detected) == "undefined" && activex) {
    document.write(
        ['<script language="VBscript">',
        'Function isSkypeInstalled()',
        'on error resume next',
        'Set oSkype = CreateObject("Skype.Detection")',
        'isSkypeInstalled = IsObject(oSkype)',
        'Set oSkype = nothing',
        'End Function',
        '</script>'].join("\n")
    );
}


function oopsPopup() {
	var windowName = "oops";
	var URLtoOpen = "http://download.skype.com/share/skypebuttons/oops/oops.html";
	var popW = 540, popH = 305;
	var scrollB = 'no';
	w = screen.availWidth;
	h = screen.availHeight;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	oopswindow = window.open(URLtoOpen, windowName,'width=' + popW + ',height=' + popH + ',scrollbars=' + scrollB + ',screenx=' +leftPos +',screeny=' +topPos +',top=' +topPos +',left=' +leftPos);
	return false;
}


function skypeCheck() {
	
    if(CantDetect) {
        return true;
    } else if(!activex) {
        var skypeMime = navigator.mimeTypes["application/x-skype"];
        detected = true;
        if(typeof(skypeMime) == "object") {
            return true;
        } else {
            return oopsPopup();
        }
    } else {
        if(isSkypeInstalled()) {
            detected = true;
            return true;
        }
    }
    
    detected = true;
    return oopsPopup();
}

	function NewWindow(mypage, myname, w, h, scrolla) {
	
			 var winl = (screen.availWidth - w) / 2;
 			 var wint = (screen.availHeight - h) / 2;
			 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrolla+',resizable=0,toolbar=no,statusbar=no'
			 win = window.open(mypage, myname, winprops)
	}
//BOOKMARK

function bookmark(title,url){
	if(window.sidebar){
		window.sidebar.addPanel(title,url,"");
	}
	else if(window.external){
		window.external.AddFavorite(url,title);
	}
	else if(window.opera&&window.print){
		return true;
	}
}


///FORM CONTACT
function check(str)
{
	var count=str.length;		
	var s=document.frmcontact.comment.value;
	if(count>500)	
	{	
		var s2=s.substring(0,500);		
		document.frmcontact.comment.value=s2;
		document.frmcontact.comment.focus();
		document.frmcontact.comment.select();
	}
	
}
///

function checkContact(value)
{
	
	resetDisplay();
	
	if(document.frmcontact.name.value=="")
	{
		document.frmcontact.name.focus();
		document.getElementById("div11").style.display='';
		return false;
	}
	if(document.frmcontact.email.value=="")
	{
		document.frmcontact.email.focus();
		document.getElementById("div22").style.display='';
		return false;
	}
	if(document.frmcontact.email.value!="")
	{
		if(!isEmail(document.frmcontact.email.value))
		{
			document.frmcontact.email.focus();
			document.frmcontact.email.select();
			document.getElementById("div22").style.display='';
			return false;
		}
	}
	
	if(document.frmcontact.tel.value=="")
	{
		document.frmcontact.tel.focus();
		document.getElementById("div33").style.display='';
		return false;
	}
	if(!validTel(document.frmcontact.tel.value))
	{
		document.frmcontact.tel.focus();
		document.frmcontact.tel.select();
		document.getElementById("div33").style.display='';
		return false;
	}
	
	if(document.frmcontact.comment.value=="")
	{
		document.frmcontact.comment.focus();
		document.getElementById("div44").style.display='';
		return false;
	}
	
	if(document.frmcontact.txtrandom.value=="")
	{
		document.frmcontact.txtrandom.focus();
		document.getElementById("div55").style.display='';
		return false;
	}
	if(document.frmcontact.txtrandom.value.toUpperCase()!=value.toUpperCase())
	{
		document.frmcontact.txtrandom.focus();
		document.getElementById("div55").style.display='';
		return false;
	}
	
return true;
}

///
function resetDisplay()
{
	for(i=1;i<=5;i++)
	{
		document.getElementById("div"+i+""+i).style.display='none';
	}
}
	


function selectAll(object)
{
		object.select();
}

function gotoFocus()
{
	document.getElementById("txtletter").select();	
}

function job_newsletter()
{
		document.getElementById("divNewsletter").style.color='#008cd0';
}

function findNewsletter(control,value)
{	
	
	if(value=="" || value=="Enter your email" || value=="Nhập email của bạn" || value=="nickname@yahoo.com")
	{
		document.getElementById("txtletter").select();
		new Effect.Shake('divNewsletter',{distance:20,duration:0.1});
		return false;
	}
	if(!isEmail(value))
	{		
		document.getElementById("txtletter").value="nickname@yahoo.com";
		document.getElementById("txtletter").select();
		new Effect.Shake('divNewsletter',{distance:20,duration:0.1});
		return false;	
	}
	return true;
}


function modelessDialogShow(url,width,height)
{
	if (document.all&&window.print) //if ie5
	eval('window.showModelessDialog(url,window,"dialogWidth:'+width+'px;dialogHeight:'+height+'px;edge:Raised;center:1;help:0;resizable:1;")');
	else
	eval('window.open(url,"a","width='+width+'px,height='+height+'px,resizable=1,scrollbars=1,copyhistory=yes")')
}

function isEmail(s)
{   
  if (s=="") return false;
  if(s.indexOf(" ")>0) return false;
  var i = 1;
  var sLength = s.length;
  if (s.indexOf(".")==sLength) return false;
  if (s.indexOf(".")<=0) return false;
  if (s.indexOf("@")!=s.lastIndexOf("@")) return false;

  while ((i < sLength) && (s.charAt(i) != "@"))
  { i++
  }

  if ((i >= sLength) || (s.charAt(i) != "@")) return false;
  else i += 2;

  while ((i < sLength) && (s.charAt(i) != "."))
  { i++
  }

  if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
   var str="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghikjlmnopqrstuvwxyz-@._"; 
   for(var j=0;j<s.length;j++)
	if(str.indexOf(s.charAt(j))==-1)
		return false;
   return true;
}
function validTel(s)
{	
	var str="0123456789)(- .";
	if(s.length>=20||s.length<=5) return false;
	for(var i=0;i<s.length;i++)
	{
		if(str.indexOf(s.charAt(i))==-1)	return false;
	}
	return true;
	
}
/**/
function addToFavorites() { 
	var urlAddress = "http://www.congnghemoipleiku.net"; 
	var pageName = "Cng Ngh? M?i Pleiku - Computer & Network Solution"; 
	if (window.external) { 
		window.external.AddFavorite(urlAddress,pageName);
	} else { 
		alert("Sorry! Your browser doesn't support this function."); 
	} 
} 
	function showhide(thecell)
	{	
		if(theoldcell == thecell){
			eval('document.all.'+thecell).style.display = 'none'
			eval('document.all.'+theoldcell).style.display = 'none'
			theoldcell = ""
		}else{
			if(theoldcell != thecell){
				if(theoldcell != "")
				eval('document.all.'+theoldcell).style.display = 'none'
				eval('document.all.'+thecell).style.display = ''
				theoldcell = thecell
			}
		}
}
	
/**/
function mOvr(src) {
		if (!src.contains(event.fromElement)) {
		src.style.cursor = 'hand';
		}
	}
	function mOut(src) {
		if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		}
	}
	function mClk(src) {
		if(event.srcElement.tagName=='TD'){
		src.children.tags('A')[0].click();
		}
	}

function RadRotator(O,o,ScrollDirection){var I=window[O]; if (I && typeof(I.Dispose)=="\146uncti\x6f\x6e"){I.Dispose(); } this.ClientID=O; this.SmoothScrollDelay=10; this.A=document.getElementById(O+"\x5fDiv"); this.U=document.getElementById(O+"_\x46\x72ameCont\x61\x69ner"); if (o){ this.o=o; }else { this.o=1; } this.U.style.top="\x30px"; this.U.style.left="0px"; this.CurrentFrame=0; var Z=this ; this.A.RadResize=this.A.RadShow= function (){Z.FixHeight(); Z.Start(); this.style.cssText=this.style.cssText; };this.z= function (e){Z.W(e); } ; this.w= function (e){Z.V(e); } ; this.v= function (e){Z.OnMouseOver(e); } ; this.T= function (e){Z.OnMouseOut(e); } ; this.t= function (){Z.Start(); } ; this.S(this.A,"\x6douseente\x72",this.z); this.S(this.A,"mous\x65\x6ceave",this.w); this.S(this.A,"\x6douseov\x65\x72",this.v); this.S(this.A,"\x6douseout",this.T); this.S(window,"\x6coad",this.t); this.R= function (){Z.Dispose(); } ; this.S(window,"\x75nload",Z.R); } ; RadRotator.prototype.Dispose= function (){ this.r= true; try { this.Q(window,"unload",this.R); this.R=null; this.P(); this.Q(this.A,"mouseenter",this.z); this.z=null; this.Q(this.A,"\x6douseleave",this.w); this.w=null; this.Q(this.A,"\x6douseove\x72",this.v); this.v=null; this.Q(this.A,"\x6douseout",this.T); this.T=null; this.Q(window,"\x6coad",this.t); this.t=null; this.A=null; this.U=null; }catch (error){}};RadRotator.prototype.attachEvent= function (N,n){var M=this.m(n); var L= function (l,K){return M(l,K); };this[N+"\x48andl\x65\x72"]=L; } ; RadRotator.prototype.m= function (k){var L= function (l,K){} ; if (typeof(k).toString().toLowerCase()=="\x66\x75nction"){L=k; }else if (typeof(k).toString().toLowerCase()=="str\x69\x6eg"){try {L=eval(k);}catch (error){}}return L; };RadRotator.prototype.FireOnClientFrameChanging= function (l){if (this.OnClientFrameChangingHandler!=null){var L=this.OnClientFrameChangingHandler; return L(this, {} ); }};RadRotator.prototype.FireOnClientFrameChanged= function (l){ this.J(); var Z=this ; if (this.RotatorMode.toLowerCase()=="\x73crol\x6c"){window.clearTimeout(this.H); this.H=0; this.H=window.setTimeout( function (){Z.h();} ,this.FrameTimeout); }if (this.RotatorMode.toLowerCase()=="\x73\x6cidesh\x6f\x77"){window.clearTimeout(this.G); this.G=0; this.G=window.setTimeout( function (){Z.g();} ,this.FrameTimeout); }if (this.OnClientFrameChangedHandler!=null){var L=this.OnClientFrameChangedHandler; return L(this, {} ); }};RadRotator.prototype.F= function (max){return parseInt(((max*Math.random())%max)); } ; RadRotator.prototype.f= function (D){if (D){ this.d= true; }else { this.d= false; }} ; RadRotator.prototype.S= function (C,N,n){try {if (C.attachEvent){C.attachEvent("on"+N,n); }else {C.addEventListener(N,n, true); }}catch (error){}} ; RadRotator.prototype.Q= function (C,N,n){if (C==null || N==null || n==null)return; try {if (C.detachEvent){C.detachEvent("on"+N,n); }else {C.removeEventListener(N,n, true); }}catch (error){}} ; RadRotator.prototype.W= function (e){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.f( true); }};RadRotator.prototype.V= function (){if (!this.AutoAdvance){return; }if (this.PauseOnMouseOver){ this.f( false); }} ; RadRotator.prototype.OnMouseOver= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.f( true); }} ; RadRotator.prototype.OnMouseOut= function (){if (!this.AutoAdvance){return; }if (document.all && !window.opera){return; }if (this.PauseOnMouseOver){ this.f( false); }} ; RadRotator.prototype.c= function (id){var B="__do\x50\x6f\x73tBac\x6b\050\x27"+this.o0+"\047,\x27"+id+"\047\x29"; eval(B); return; } ; RadRotator.prototype.StartRotator= function (){ this.O0= false; if (this.l0==0){return; } this.l0=0; this.AutoAdvance=1; if (this.RotatorMode.toLowerCase()=="\x73croll"){ this.h(); }else { this.g(); }} ; RadRotator.prototype.StopRotator= function (){if (this.RotatorMode.toLowerCase()=="\x73\x63roll"){ this.i0(); }else { this.I0(); }} ; RadRotator.prototype.I0= function (){ this.l0=1; this.AutoAdvance=0; } ; RadRotator.prototype.i0= function (){ this.l0=1; this.AutoAdvance=0; } ; RadRotator.prototype.Start= function (){if (this.r== true)return; if (this.A.offsetWidth==0){return; } this.FixHeight(); this.J(); if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73croll"){ this.o1(); var Z=this ; window.clearTimeout(this.H); this.H=window.setTimeout( function (){Z.h();} ,this.FrameTimeout); }if (this.RotatorMode!=null && this.RotatorMode.toLowerCase()=="\x73lides\x68\x6fw"){var Z=this ; window.clearTimeout(this.G); if (this.UseRandomSlide){Z.g(); }else { this.G=window.setTimeout( function (){Z.g();} ,this.FrameTimeout); }}} ; RadRotator.prototype.J= function (){if (this.r== true)return; if (this.HasTickers){ this.ResetTickers(); var O1=this.FrameIdArray; var l1=i1(this.A); for (var i=0; i<this.NumberOfFrames; i++){var I1=document.getElementById(O1[i]); var o2=i1(I1); if (l1.O2(o2) || ((null!=document.readyState && "\143\x6f\x6dplete"!=document.readyState))){eval(this[I1.id+"\x5f\x73"]); }}}} ; RadRotator.prototype.ResetTickers= function (){if (this.HasTickers){for (var i=0; i<this.NumberOfTickers; i++){eval(this.TickerIdArray[i]).ResetTicker(); }}} ; RadRotator.prototype.Freeze= function (){ this.O0= true; };RadRotator.prototype.FixHeight= function (){var width; var height; this.A.style.zoom="1"; if (parseInt(this.A.offsetWidth)>0){width=this.A.offsetWidth; }else {width=this.A.style.width; }if (parseInt(this.A.offsetHeight)>0){height=this.A.offsetHeight; }else {height=this.A.style.height; }if (this.RotatorMode.toLowerCase()=="\x73croll" && (this.ScrollDirection.toLowerCase()=="left" || this.ScrollDirection.toLowerCase()=="rig\x68\x74")){ this.l2=parseInt(width)/this.o; this.i2=parseInt(height); this.U.style.width=(this.l2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="scr\x6f\x6cl" && (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="\x64own")){ this.l2=parseInt(width); this.i2=parseInt(height)/this.o; this.U.style.height=(this.i2*this.NumberOfFrames)+"\x70x"; }if (this.RotatorMode.toLowerCase()=="slideshow"){ this.l2=parseInt(width); this.i2=parseInt(height); }var O1=this.FrameIdArray; for (var i=0; i<this.NumberOfFrames; i++){var I1=document.getElementById(O1[i]); I1.style.height=this.i2+"px"; I1.style.width=this.l2+"p\x78"; }} ; RadRotator.prototype.g= function (){if (this.r== true)return; if (this.NumberOfFrames/this.o<=1){return; }if (this.AutoAdvance){ this.ShowNextFrame(); }} ; RadRotator.prototype.o1= function (){if (this.ScrollDirection.toLowerCase()=="\x64own"){ this.U.style.top=(this.NumberOfFrames-this.o)*this.i2*(-1)+"\x70\170"; }if (this.ScrollDirection.toLowerCase()=="righ\x74"){ this.U.style.left=(this.NumberOfFrames-this.o)*this.l2*(-1)+"p\x78"; } this.J(); };RadRotator.prototype.h= function (){if (this.r== true)return; if (this.NumberOfFrames/this.o<=1){return; }if (this.FireOnClientFrameChanging(this )== false){return; }if (this.AutoAdvance){ this.I2(); }} ; RadRotator.prototype.I2= function (){switch (this.ScrollDirection.toLowerCase()){case "up":{ this.ScrollUpNextFrame(); break; }case "\x64\x6fwn":{ this.ScrollDownNextFrame(); break; }case "\x6ceft":{ this.ScrollLeftNextFrame(); break; }case "r\x69\x67ht":{ this.ScrollRightNextFrame(); break; }}} ; RadRotator.prototype.ShowPrevFrame= function (){if (this.RotatorMode.toLowerCase()!="slidesho\x77"){alert("\x44o not call\x20\x74his\x20\x66u\x6ection \x77\x68en\x20\x72ot\x61tor\x20\151\x73\x20in\x20scrol\x6c\151n\x67 mode\x21"); return; } this.CurrentFrame=(this.CurrentFrame-2)%this.NumberOfFrames; if (this.CurrentFrame<-1){ this.CurrentFrame=this.NumberOfFrames-2; } this.ShowNextFrame(); } ; RadRotator.prototype.ShowNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73lid\x65\x73how"){alert("D\x6f\x20not ca\x6c\x6c th\x69\x73 f\x75\x6ect\x69\x6fn \x77\x68e\x6e\040\x72otato\x72\040i\x73 in s\x63rolli\x6eg mod\x65!"); return; }if (this.d){var Z=this ; window.clearTimeout(this.G); this.G=0; this.G=window.setTimeout( function (){Z.ShowNextFrame();} ,this.FrameTimeout); return; }if (this.FireOnClientFrameChanging(this )== false){return; }var Height; if (this.UseRandomSlide){ do {Height=this.F(this.NumberOfFrames)*this.i2*(-1); }while (Height==parseInt(this.U.style.top));}else { this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; Height=this.CurrentFrame*this.i2*(-1); }if (this.UseTransition && document.all && !window.opera){try {if (this.UseRandomEffect){ this.A.style.filter=this.TransitionStrings[this.F(17)]; }else { this.A.style.filter=this.TransitionString; } this.A.filters[0].Apply(); this.A.filters[0].Play(); }catch (e){}} this.U.style.top=Height+"\x70x"; this.FireOnClientFrameChanged(); } ; RadRotator.prototype.ScrollLeftNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="sc\x72\x6fll"){alert("\x44\x6f not \x63\x61ll \x74\x68is\x20\x66unc\x74\151\x6f\x6e w\x68en ro\x74ator \x69\x73 i\x6e slid\x65\163\x68\157w\x20mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="\x75\160" || this.ScrollDirection.toLowerCase()=="down"){alert("Do not \x63\x61ll th\x69\x73 fu\x6e\143t\x69\157n\x20\x77he\x6e\040\x72otato\x72\040i\x73 in v\x65\162t\x69cal s\x63roll\x69\156\x67 mo\x64\145\x21"); return; }if (this.O0){return; }if (this.d){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)>this.l2*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.U.style.left=(parseInt(this.U.style.left)-1)+"px"; }else {var l3=(this.l2*(-1)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=(parseInt(this.U.style.left)+l3-1)+"\x70x"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollLeftNextFrame();} ,this.ScrollSpeed); }else {var i3=this.U.firstChild.firstChild.firstChild; this.U.firstChild.firstChild.removeChild(this.U.firstChild.firstChild.firstChild); this.U.firstChild.firstChild.appendChild(i3); this.U.style.left="0px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollRightNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("Do not ca\x6c\x6c th\x69\x73 fun\x63tion wh\x65\156\x20\162o\x74ator\x20\151s\x20\151n\x20slide\x73\150o\x77 mode\x21"); return; }if (this.ScrollDirection.toLowerCase()=="up" || this.ScrollDirection.toLowerCase()=="do\x77\x6e"){alert("D\x6f\x20not ca\x6c\x6c th\x69\x73 fu\x6e\143t\x69\157n\x20\x77h\x65\156 \x72\157t\x61tor is\x20in ve\x72tical\x20\163\x63\162\x6flli\x6eg mo\x64e!"); return; }if (this.O0){return; }if (this.d){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.left)<this.l2*(this.NumberOfFrames-this.o-1)*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.U.style.left=parseInt(this.U.style.left)+1+"px"; }else {var l3=(((this.NumberOfFrames-this.o)*this.l2*(-1)+this.l2)-parseInt(this.U.style.left))/this.SmoothScrollDelay; this.U.style.left=parseInt(this.U.style.left)+l3+"\x70x"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollRightNextFrame();} ,this.ScrollSpeed); }else {var i3=this.U.firstChild.firstChild.lastChild; this.U.firstChild.firstChild.removeChild(this.U.firstChild.firstChild.lastChild); this.U.firstChild.firstChild.insertBefore(i3,this.U.firstChild.firstChild.firstChild); this.U.style.left=(this.NumberOfFrames-this.o)*this.l2*(-1)+"\x70x"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollDownNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="\x73croll"){alert("Do not cal\x6c\x20this\x20\x66un\x63\x74ion\x20\167\x68\145n\x20rotat\x6f\162 \x69\163 \x69n sli\x64\145s\x68ow mo\x64e!"); return; }if (this.ScrollDirection.toLowerCase()=="\x72ight" || this.ScrollDirection.toLowerCase()=="\x6c\x65ft"){alert("\x44o not call\x20\x74his \x66\x75nc\x74\x69on\x20\x77he\x6e\x20r\x6f\164a\x74or is \x69n hori\x7aontal\x20scrol\x6cing m\x6fde!"); return; }if (this.O0){return; }if (this.d){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.top)<(this.NumberOfFrames-this.o)*this.i2*(-1)+this.i2){ this.O3= true; if (!this.UseSmoothScroll){ this.U.style.top=parseInt(this.U.style.top)+1+"\x70\x78"; }else {var l3=(((this.NumberOfFrames-this.o)*this.i2*(-1)+this.i2)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=parseInt(this.U.style.top)+l3+"\x70x"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollDownNextFrame();} ,this.ScrollSpeed); }else {var i3=this.U.lastChild; this.U.removeChild(this.U.lastChild); this.U.insertBefore(i3,this.U.firstChild); this.U.style.top=(this.NumberOfFrames-this.o)*this.i2*(-1)+"px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }} ; RadRotator.prototype.ScrollUpNextFrame= function (){if (this.r== true)return; if (this.RotatorMode.toLowerCase()!="scroll"){alert("Do not call \x74his \x66\x75nct\x69on when\x20\162\x6f\164a\x74or \x69\163 \x69\x6e s\x6c\151d\x65show \x6d\157d\x65!"); return; }if (this.ScrollDirection.toLowerCase()=="right" || this.ScrollDirection.toLowerCase()=="le\x66\x74"){alert("\x44o not cal\x6c\x20this\x20\x66un\x63\x74ion\x20\167h\x65\156 \x72otator\x20\151s\x20in hor\x69zonta\x6c\040\x73crol\x6cing m\x6fde\x21"); return; }if (this.O0){return; }if (this.d){var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed);return; }if (parseInt(this.U.style.top)>this.i2*(-1)){ this.O3= true; if (!this.UseSmoothScroll){ this.U.style.top=(parseInt(this.U.style.top)-1)+"\x70\x78"; }else {var l3=(this.i2*(-1)-parseInt(this.U.style.top))/this.SmoothScrollDelay; this.U.style.top=(parseInt(this.U.style.top)+l3-1)+"\x70x"; }var Z=this ; this.o3=0; this.o3=window.setTimeout( function (){Z.ScrollUpNextFrame();} ,this.ScrollSpeed); }else {try {var i3=this.U.firstChild; this.U.removeChild(this.U.firstChild); this.U.appendChild(i3); this.U.style.top="0px"; this.CurrentFrame=(this.CurrentFrame+1)%this.NumberOfFrames; this.FireOnClientFrameChanged(); this.O3= false; }catch (e){}}} ; function I3(left,top,width,height){ this.left=(null!=left?left: 0); this.top=(null!=top?top: 0); this.width=(null!=width?width: 0); this.height=(null!=height?height: 0); this.right=left+width; this.bottom=top+height; } ; I3.prototype.o4= function (){return new I3(this.left,this.top,this.width,this.height); } ; I3.prototype.O4= function (x,y){return (this.left<=x && x<=(this.left+this.width) && this.top<=y && y<=(this.top+this.height)); } ; I3.prototype.O2= function (l4){if (null==l4){return false; }if (this ==l4){return true; }return (l4.left<this.right && l4.top<this.bottom && l4.right>this.left && l4.bottom>this.top); } ; I3.prototype.i4= function (l4){if (null==l4){return false; }if (this ==l4){return this.o4(); }if (!this.O2(l4)){return new I3(); }var left=Math.max(this.left,l4.left); var top=Math.max(this.top,l4.top); var right=Math.min(this.right,l4.right); var bottom=Math.min(this.bottom,l4.bottom); return new I3(left,right,right-left,bottom-top); } ; RadRotator.prototype.P= function (){window.clearTimeout(this.H); window.clearTimeout(this.G); window.clearTimeout(this.o3); } ; function i1(C){if (!C){C=this ; }var left=0; var top=0; var width=C.offsetWidth; var height=C.offsetHeight; while (C.offsetParent){left+=C.offsetLeft; top+=C.offsetTop; C=C.offsetParent; }if (C.x){left=C.x; }if (C.y){top=C.y; }return new I3(left,top,width,height); } ;

/*	
<div id="sphot" style="overflow:hidden;width:200px; height:200px;"></div>
window["sphot"] = new RadRotator('sphot',4);
window["sphot"].AutoAdvance = 1;
window["sphot"].FrameTimeout = 1000;
window["sphot"].RotatorMode = 'Scroll';
window["sphot"].NumberOfFrames = 10;
window["sphot"].PauseOnMouseOver = 1;
window["sphot"].HasTickers = 0;
window["sphot"].FrameIdArray = new Array('sphot_frame0','sphot_frame1','sphot_frame2','sphot_frame3','sphot_frame4','sphot_frame5','sphot_frame6','sphot_frame7','sphot_frame8','sphot_frame9');
window["sphot"].ScrollSpeed = 10;
window["sphot"].ScrollDirection = 'Up';
window["sphot"].UseSmoothScroll = 1;
window["sphot"].SmoothScrollDelay = 10;
window["sphot"].Start();
*/
