﻿function chatz(name,value,days) {   
var expires = '';
document.cookie = name+'='+value+expires+'; path=/';
JSFX_FloatTopDiv() ; 
}




function JSFX_FloatTopDiv()
{
/*
Floating Menu script-  Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/
  
	var startX = getCookie('chatmin');
	if (startX == null) startX=1;
	
	var startY = 184;
	
	var ns = (navigator.appName.indexOf('Netscape') != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x;this.style.top=y;};
		el.x = startX;		
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;		
		return el;
	}
	window.stayTopLeft=function()
	{
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout('stayTopLeft()', 10);
	}
	ftlObj = ml('divTopLeft');
	stayTopLeft();
}






function setCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));  		
		var expires = '; expires='+date.toGMTString();
	}
	else var expires = '';
	document.cookie = name+'='+value+expires+'; path=/';
}

function getCookie(name) {
	var nameEQ = name + '=';
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function whois(){

var dom= document.getElementsByName('domainname')[0].value;
var ext= document.getElementsByName('extension')[0].value;

location.href='tenmien.php?'+ 'dom=' + dom + '&ext=.' + ext + '&submitz=true#here';

}

function pop(w,h,url) { 
var winl = (screen.width - w) / 2;var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+'toolbar=no,location=no,directories=no,scrollbars=yes,resizable=no'
window.open(url, 'SOHUUWEB', winprops).focus();
}

//floating menu///////
var timerz;
function showmenu(){clearTimeout(timerz);
document.getElementById("sub1").style.display = "block";

fade('sub1');


}
function mainleft(){
fade('sub1');
timerz = setTimeout ('do_mainleft()', 1111 );
}
function do_mainleft(){
document.getElementById("sub1").style.display = "none";
clearTimeout(timerz);
}
function delayz(){
clearTimeout(timerz);
showmenu();
}
function stop_delayz(){
//fade('sub1'); 
//document.getElementById("sub1").style.display = "none";
mainleft();
}
/////

 
 
 
///fade////

var TimeToFade = 500;

function fade(eid)
{
  var element = document.getElementById(eid);
  if(element == null)
    return;
    
   
  if(element.FadeState == null)
  {
    if(element.style.opacity == null || element.style.opacity == '' 
       || element.style.opacity == '1')
      element.FadeState = 2;
    else
      element.FadeState = -2;
  }
    
  if(element.FadeState == 1 || element.FadeState == -1)
  {
    element.FadeState = element.FadeState == 1 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
  }
  else
  {
    element.FadeState = element.FadeState == 2 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade;
    setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
  }  
}

function animateFade(lastTick, eid)
{  
  var curTick = new Date().getTime();
  var elapsedTicks = curTick - lastTick;
  
  var element = document.getElementById(eid);
 
  if(element.FadeTimeLeft <= elapsedTicks)
  {
    element.style.opacity = element.FadeState == 1 ? '1' : '0';
    element.style.filter = 'alpha(opacity = ' + (element.FadeState == 1 ? '100' : '0') + ')';
    element.FadeState = element.FadeState == 1 ? 2 : -2;
    return;
  }
 
  element.FadeTimeLeft -= elapsedTicks;
  var newOpVal = element.FadeTimeLeft/TimeToFade;
  if(element.FadeState == 1)
    newOpVal = 1 - newOpVal;

  element.style.opacity = newOpVal;
  element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';
  
  setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33);
}


////// 
 
 
 
 
if (document.images) {
img1N= new Image(87,28);img1N.src='images/menu/1_0.gif';img1H= new Image(87,28);img1H.src='images/menu/1_1.gif' ;
img2N= new Image(84,28);img2N.src='images/menu/2_0.gif';img2H= new Image(84,28);img2H.src='images/menu/2_1.gif' ;
img3N= new Image(67,28);img3N.src='images/menu/3_0.gif';img3H= new Image(67,28);img3H.src='images/menu/3_1.gif' ;
img4N= new Image(81,28);img4N.src='images/menu/4_0.gif';img4H= new Image(81,28);img4H.src='images/menu/4_1.gif' ;
img5N= new Image(91,28);img5N.src='images/menu/5_0.gif';img5H= new Image(91,28);img5H.src='images/menu/5_1.gif' ;
function myOn(myImgName) {document[myImgName].src=eval(myImgName+ 'H' ).src;}
function myOut(myImgName) {document[myImgName].src=eval(myImgName+ 'N' ).src;}
}

 
 

 
///////////// 
var incz=0;
var incz2=0;

var aaa;
var bbb;

function countup(){
yr=2005
m=01
d=01
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var paststring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(todaystring)-Date.parse(paststring))/(24*60*60*1000))*1)
difference=(difference * 86400) + incz; incz++;
//document.getElementById("cpcontainer").innerHTML = difference ;
aaa = difference ;
setTimeout ( "countup()" , 1000 );
}

function mili (){
//document.getElementById("cpcontainer2").innerHTML = incz2; incz2++;
bbb = incz2; incz2++;
if (incz2 > 9)
incz2=0
setTimeout ( "mili()" , 100 );
}



function showz(){ //alert ("d");
document.getElementById("cpcontainer").innerHTML =  "mang &#273;&#7871;n<br><font color='#ff0000'><b>" + aaa + ".0" + bbb + "</b></font><br>giây ";
setTimeout ( "showz()" , 100 );
}


countup();mili();showz();


/**
 * COMMON DHTML FUNCTIONS
 * These are handy functions I use all the time.
 *
 * By Seth Banks (webmaster at subimage dot com)
 * http://www.subimage.com/
 *
 * Up to date code can be found at http://www.subimage.com/dhtml/
 *
 * This code is free for you to use anywhere, just keep this comment block.
 */

/**
 * X-browser event handler attachment and detachment
 * TH: Switched first true to false per http://www.onlinetools.org/articles/unobtrusivejavascript/chapter4.html
 *
 * @argument obj - the object to attach event to
 * @argument evType - name of the event - DONT ADD "on", pass only "mouseover", etc
 * @argument fn - function to call
 */
function addEvent(obj, evType, fn){
 if (obj.addEventListener){
    obj.addEventListener(evType, fn, false);
    return true;
 } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
 } else {
    return false;
 }
}
function removeEvent(obj, evType, fn, useCapture){
  if (obj.removeEventListener){
    obj.removeEventListener(evType, fn, useCapture);
    return true;
  } else if (obj.detachEvent){
    var r = obj.detachEvent("on"+evType, fn);
    return r;
  } else {
    alert("Handler could not be removed");
  }
}

function getViewportHeight() {
	if (window.innerHeight!=window.undefined) return window.innerHeight;
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientHeight;
	if (document.body) return document.body.clientHeight; 

	return window.undefined; 
}
function getViewportWidth() {
	var offset = 17;
	var width = null;
	if (window.innerWidth!=window.undefined) return window.innerWidth; 
	if (document.compatMode=='CSS1Compat') return document.documentElement.clientWidth; 
	if (document.body) return document.body.clientWidth; 
}

function getScrollTop() {
	if (self.pageYOffset) 
	{
		return self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)
		
	{
		return document.documentElement.scrollTop;
	}
	else if (document.body) 
	{
		return document.body.scrollTop;
	}
}
function getScrollLeft() {
	if (self.pageXOffset) 
	{
		return self.pageXOffset;
	}
	else if (document.documentElement && document.documentElement.scrollLeft)
		
	{
		return document.documentElement.scrollLeft;
	}
	else if (document.body) 
	{
		return document.body.scrollLeft;
	}
}


/**
 * SUBMODAL v1.6
 * Used for displaying DHTML only popups instead of using buggy modal windows.
 *
 * By Subimage LLC
 * http://www.subimage.com
 *
 * Contributions by:
 * 	Eric Angel - tab index code
 * 	Scott - hiding/showing selects for IE users
 *	Todd Huss - inserting modal dynamically and anchor classes
 *
 * Up to date code can be found at http://submodal.googlecode.com
 */




function scrollme(){ //alert(3);
dh=document.body.scrollHeight  ;
ch=document.body.clientHeight ;
if(dh>ch){
moveme=dh-ch
window.scrollTo(0,moveme)
}
}





var gPopupMask = null;
var gPopupContainer = null;
var gPopFrame = null;
var gReturnFunc;
var gPopupIsShown = false;
var gDefaultPage = "loading.htm";
var gHideSelects = false;
var gReturnVal = null;

var gTabIndexes = new Array();

var gTabbableTags = new Array("A","BUTTON","TEXTAREA","INPUT","IFRAME");	


if (!document.all) {
	document.onkeypress = keyDownHandler;
}


function initPopUp() {
 
	theBody = document.getElementsByTagName('BODY')[0];
	popmask = document.createElement('div');
	popmask.id = 'popupMask';
	popcont = document.createElement('div');
	popcont.id = 'popupContainer';
	popcont.innerHTML = '' +
		'<div id="popupInner">' +
			'<div id="popupTitleBar">' +
				'<div id="popupTitle"></div>' +
				'<div id="popupControls">' +
					'<img alt="CLOSE" src="submodal/close.gif" onclick="hidePopWin(false);" id="popCloseBox" />' +
				'</div>' +
			'</div>' +
			'<iframe src="'+ gDefaultPage +'" style="width:100%;height:100%;background-color:transparent;" scrolling="auto" frameborder="0" allowtransparency="true" id="popupFrame" name="popupFrame" width="100%" height="100%"></iframe>' +
		'</div>';
	theBody.appendChild(popmask);
	theBody.appendChild(popcont);
	
	gPopupMask = document.getElementById("popupMask");
	gPopupContainer = document.getElementById("popupContainer");
	gPopFrame = document.getElementById("popupFrame");	
	

	var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);
	if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE") > -1) {
		gHideSelects = true;
	}
	

	var elms = document.getElementsByTagName('a');
	for (i = 0; i < elms.length; i++) {
		if (elms[i].className.indexOf("submodal") == 0) { 

			elms[i].onclick = function(){

				var width = 400;
				var height = 200;

				params = this.className.split('-');
				if (params.length == 3) {
					width = parseInt(params[1]);
					height = parseInt(params[2]);
				}
				showPopWin(this.href,width,height,null); return false;
			}
		}
	}
}
addEvent(window, "load", initPopUp);

function showPopWin(url, width, height, returnFunc, showCloseBox) {

 
//scrollme();
document.getElementById("slider3").style.display ='none' ;
document.getElementById("paginate-slider3").style.display ='none' ;




	if (showCloseBox == null || showCloseBox == true) {
		document.getElementById("popCloseBox").style.display = "block";
	} else {
		document.getElementById("popCloseBox").style.display = "none";
	}
	gPopupIsShown = true;
	disableTabIndexes();
	gPopupMask.style.display = "block";
	gPopupContainer.style.display = "block";

	centerPopWin(width, height);
	
	var titleBarHeight = parseInt(document.getElementById("popupTitleBar").offsetHeight, 10);


	gPopupContainer.style.width = width + "px";
	gPopupContainer.style.height = (height+titleBarHeight) + "px";
	
	setMaskSize();

	gPopFrame.style.width = parseInt(document.getElementById("popupTitleBar").offsetWidth, 10) + "px";
	gPopFrame.style.height = (height) + "px";
	

	gPopFrame.src = url;
	
	gReturnFunc = returnFunc;

	if (gHideSelects == true) {
		hideSelectBoxes();
	}
	
	window.setTimeout("setPopTitle();", 600);
}

//
var gi = 0;
function centerPopWin(width, height) {
	if (gPopupIsShown == true) {
		if (width == null || isNaN(width)) {
			width = gPopupContainer.offsetWidth;
		}
		if (height == null) {
			height = gPopupContainer.offsetHeight;
		}
		
		var theBody = document.getElementsByTagName("BODY")[0];

		var scTop = parseInt(getScrollTop(),10);
		var scLeft = parseInt(theBody.scrollLeft,10);
	
		setMaskSize();
		
		var titleBarHeight = parseInt(document.getElementById("popupTitleBar").offsetHeight, 10);
		
		var fullHeight = getViewportHeight();
		var fullWidth = getViewportWidth();
		
		gPopupContainer.style.top = (scTop + ((fullHeight - (height+titleBarHeight)) / 2)) + "px";
		gPopupContainer.style.left =  (scLeft + ((fullWidth - width) / 2)) + "px";

	}
}
addEvent(window, "resize", centerPopWin);
addEvent(window, "scroll", centerPopWin);
window.onscroll = centerPopWin;


function setMaskSize() {
	var theBody = document.getElementsByTagName("BODY")[0];
			
	var fullHeight = getViewportHeight();
	var fullWidth = getViewportWidth();
	

	if (fullHeight > theBody.scrollHeight) {
		popHeight = fullHeight;
	} else {
		popHeight = theBody.scrollHeight;
	}
	
	if (fullWidth > theBody.scrollWidth) {
		popWidth = fullWidth;
	} else {
		popWidth = theBody.scrollWidth;
	}
	
	gPopupMask.style.height = popHeight + "px";
	gPopupMask.style.width = popWidth + "px";
}

function hidePopWin(callReturnFunc) { 

document.getElementById("slider3").style.display ='block' ;
document.getElementById("paginate-slider3").style.display ='block' ;


	gPopupIsShown = false;
	var theBody = document.getElementsByTagName("BODY")[0];
	theBody.style.overflow = "";
	restoreTabIndexes();
	if (gPopupMask == null) {
		return;
	}
	gPopupMask.style.display = "none";
	gPopupContainer.style.display = "none";
	if (callReturnFunc == true && gReturnFunc != null) {

		gReturnVal = window.frames["popupFrame"].returnVal;
		window.setTimeout('gReturnFunc(gReturnVal);', 1);
	}
	gPopFrame.src = gDefaultPage;

	if (gHideSelects == true) {
		displaySelectBoxes();
	}
}


function setPopTitle() {
	return;
	if (window.frames["popupFrame"].document.title == null) {
		window.setTimeout("setPopTitle();", 10);
	} else {
		document.getElementById("popupTitle").innerHTML = window.frames["popupFrame"].document.title;
	}
}


function keyDownHandler(e) {
    if (gPopupIsShown && e.keyCode == 9)  return false;
}


function disableTabIndexes() {
	if (document.all) {
		var i = 0;
		for (var j = 0; j < gTabbableTags.length; j++) {
			var tagElements = document.getElementsByTagName(gTabbableTags[j]);
			for (var k = 0 ; k < tagElements.length; k++) {
				gTabIndexes[i] = tagElements[k].tabIndex;
				tagElements[k].tabIndex="-1";
				i++;
			}
		}
	}
}


function restoreTabIndexes() {
	if (document.all) {
		var i = 0;
		for (var j = 0; j < gTabbableTags.length; j++) {
			var tagElements = document.getElementsByTagName(gTabbableTags[j]);
			for (var k = 0 ; k < tagElements.length; k++) {
				tagElements[k].tabIndex = gTabIndexes[i];
				tagElements[k].tabEnabled = true;
				i++;
			}
		}
	}
}


function hideSelectBoxes() {
  var x = document.getElementsByTagName("SELECT");

  for (i=0;x && i < x.length; i++) {
    x[i].style.visibility = "hidden";
  }
}


function displaySelectBoxes() {
  var x = document.getElementsByTagName("SELECT");

  for (i=0;x && i < x.length; i++){
    x[i].style.visibility = "visible";
  }
}





var contentz="<table border=0 width=493 cellspacing=0 cellpadding=0 background='images/big_clouds.jpg' height=198 class=t><tr><td height='65' colspan='2'></td></tr><tr><td width=267 align=right valign=bottom><p align='center'><img border='0' src='images/group.gif'></td><td align=left width='226'><p align='center'><b><font color='#6A8894'>T&#7840;I SOHUUWEB.COM,<br>CHÚNG TÔI KHÔNG CH&#7844;P NH&#7852;N<br>NH&#7918;NG GI&#7842;I PHÁP M&#7840;NG...</font></b><div style='margin-left:20px';><b><font color='#6A8894'><img border='0' src='images/hand_gif.gif' width='19' height='17'>r&#7867; ti&#7873;n.<br><img border='0' src='images/hand_gif.gif' width='19' height='17'>nghi&#7879;p d&#432;.<br><img border='0' src='images/hand_gif.gif' width='19' height='17'>mang m&#7847;m th&#7843;m h&#7885;a.</font></b></div></td></tr></table><p> </p><div align='right'><p align='right'><b><font color='#6A8894'><img height='10' src='images/hand.gif' width='19' border='0'>T&#7845;t c&#7843; tính n&#259;ng ti&#7871;n ti&#7871;n cùng nh&#7919;ng chu&#7849;n m&#7921;c k&#297; thu&#7853;t, b&#7843;o m&#7853;t<br>kh&#7855;t khe nh&#7845;t trong l&#297;nh v&#7921;c Web Hosting &#273;ang &#273;&#432;&#7907;c cung c&#7845;p t&#7841;i các </font><font color='#FF0000'>TOP 10<br></font><font color='#6A8894'> nhà cung c&#7845;p d&#7883;ch v&#7909; hàng &#273;&#7847;u th&#7871; gi&#7899;i, &#273;&#7873;u hi&#7879;n di&#7879;n &#273;&#7847;y &#273;&#7911; t&#7841;i sohuuWeb.com.</font><br><br> </b>sohuuWeb.com hoàn toàn <b>không</b> có b&#7845;t kì server nào <font color='#FF0000'>&#273;&#7863;t t&#7841;i Vi&#7879;t nam</font>.<br>Toàn b&#7897; servers ph&#7909;c v&#7909; quí Khách &#273;&#7873;u &#273;&#432;&#7907;c &#273;&#7863;t t&#7841;i Trung tâm d&#7919; li&#7879;u hàng &#273;&#7847;u th&#7871; gi&#7899;i: <a href='http://theplanet.com' target='_blank'>thePlanet.com</a>. &#272;&#7889;i v&#7899;i chúng tôi, hosting v&#7899;i servers &#273;&#7863;t t&#7841;i Vi&#7879;t Nam th&#7921;c s&#7921; là ý t&#432;&#7903;ng<br><i>không-th&#7875;-ch&#7845;p-nh&#7853;n</i>, là s&#7921; l&#7921;a ch&#7885;n mang tính kém-hi&#7875;u-bi&#7871;t v&#7873; nhi&#7873;u m&#7863;t trong<br>th&#7871; gi&#7899;i k&#297; thu&#7853;t m&#7841;ng bi&#7871;n &#273;&#7893;i t&#7915;ng ngày...<p align='right'>...m&#7901;i Quí Khách xem thêm v&#7873; v&#7845;n &#273;&#7873; này t&#7841;i<b><br><img border='0' src='images/hand.gif' width='19' height='10'><font size='2'><a href='http://sohuuweb.com/forum/viewtopic.php?f=6&t=45' target='_blank'>forum sohuuWeb.com</a></font></b><br>&nbsp;";
document.getElementById('static_content').innerHTML=contentz;

var contentz2="<b><img border='0' src='images/dot3.gif' width='5' height='8'> Khách hàng nói gì?</b> <br><br><img border='0' src='images/hand.gif' width='19' height='10'>Allan, CEO. Giám &#273;&#7889;c qu&#7843;n lí h&#7879; th&#7889;ng Website t&#7841;o online<i> Button-Icon </i><b>hàng &#273;&#7847;u th&#7871; gi&#7899;i</b>, v&#7883; trí hi&#7879;n t&#7841;i thu&#7897;c trong s&#7889;<font color='#FF6600'><b> TOP 20</b></font> trên Google.com và Yahoo.com. Website:<br>&nbsp;<img border='0' src='images/dot1.gif' width='7' height='7'> <a href='http://freebuttoniconmaker.com' target=_blank class=fade>freebuttoniconmaker</a></font><br><br><font color='#81766C'>It's my right decision to have Sohuuweb.com operate my network system. Thanks guys.</font><div style='padding: 1px; border-bottom: 1px solid #C0C0C0;'>&nbsp;</div><div style='padding: 1px; border-top: 1px solid #ffffff;'>&nbsp;</div><img border='0' src='images/hand.gif' width='19' height='10'>Bs. M&#7929; Ph&#432;&#7907;ng, M.D. Khoa M&#7855;t b&#7879;nh vi&#7879;n &#272;a Khoa &#272;&#7891;ng Nai. Website:<br>&nbsp;<img border='0' src='images/dot1.gif' width='7' height='7'> <a href='http://phongkhammat.com' target=_blank class=fade>phongkhammat.com</a><br><br>...m&#7895;i khi g&#7863;p khó kh&#259;n k&#7929; thu&#7853;t, tôi login vào tài kho&#7843;n sohuuweb c&#7911;a mình &#273;&#7875; g&#7917;i phi&#7871;u yêu c&#7847;u h&#7895; tr&#7907;. Không ph&#7843;i &#273;&#7907;i ch&#7901; lâu, ch&#7881; vài phút sau tôi nh&#7853;n &#273;&#432;&#7907;c ngay h&#7891;i âm.<br>Có sohuuweb bên c&#7841;nh h&#7895; tr&#7907; m&#7885;i m&#7863;t k&#7929; thu&#7853;t, tôi r&#7845;t yên tâm...";
document.getElementById('ikienkhachhang').innerHTML=contentz2;

var contentz3 = "<p align='center' class=t>...s&#7921; hài lòng c&#7911;a<br>quí Khách- là tiêu chí #1<br>c&#7911;a sohuuWeb.com.<br><br><img border=0 src='images/guarantee.gif' width=71 height=71><br><br><br><font color='#6A8894'>Servers ho&#7841;t &#273;&#7897;ng b&#7873;n b&#7881;,<br>liên t&#7909;c. Th&#7901;i gian <b>UP-TIME</b> [<a href='http://sohuuweb.com/faq.php?q_id=31&pos=2#here'>?</a>]<br>&#273;&#7841;t m&#7913;c tuy&#7879;t &#273;&#7889;i:</font> <font color='#FF0000'><b>100%</b></font>.<br>...theo d&#7887;i và xác nh&#7853;n<br>b&#7903;i <a href='http://www.webhostingstuff.com/uptime/sohuuweb.html' target='_blank'>webhostingstuff.com</a><br><br><img border=0 src='images/sohuuweb_slogan_dark.gif'><br>&nbsp;</p>";
document.getElementById('static_content2').innerHTML=contentz3;











//** Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com.
//** May 2nd, 08'- Script rewritten and updated to 2.0.

//** May 11th, 08': Custom mod. Slideshow pauses rotating onMouseover: http://www.dynamicdrive.com/forums/showthread.php?t=32360

var featuredcontentslider={

//3 variables below you can customize if desired:
ajaxloadingmsg: '',
bustajaxcache: true, //bust caching of external ajax page after 1st request?
enablepersist: true, //persist to last content viewed when returning to page?

ajaxconnect:function(setting){
	var page_request = false
	if (window.ActiveXObject){ //Test for support for ActiveXObject in IE first (as XMLHttpRequest in IE7 is broken)
		try {
		page_request = new ActiveXObject("Msxml2.XMLHTTP")
		} 
		catch (e){
			try{
			page_request = new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch (e){}
		}
	}
	else if (window.XMLHttpRequest) // if Mozilla, Safari etc
		page_request = new XMLHttpRequest()
	else
		return false
	var pageurl=setting.contentsource[1]
	page_request.onreadystatechange=function(){
		featuredcontentslider.ajaxpopulate(page_request, setting)
	}
	document.getElementById(setting.id).innerHTML=this.ajaxloadingmsg
	var bustcache=(!this.bustajaxcache)? "" : (pageurl.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
	page_request.open('GET', pageurl+bustcache, true)
	page_request.send(null)
},

ajaxpopulate:function(page_request, setting){
	if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
		document.getElementById(setting.id).innerHTML=page_request.responseText
		this.buildpaginate(setting)
	}
},

buildcontentdivs:function(setting){
	var alldivs=document.getElementById(setting.id).getElementsByTagName("div")
	for (var i=0; i<alldivs.length; i++){
		if (this.css(alldivs[i], "contentdiv", "check")){ //check for DIVs with class "contentdiv"
			setting.contentdivs.push(alldivs[i])
		}
	}
},

buildpaginate:function(setting){
	this.buildcontentdivs(setting)
	var sliderdiv=document.getElementById(setting.id)
	var pdiv=document.getElementById("paginate-"+setting.id)
	var phtml=""
	var toc=setting.toc
	var nextprev=setting.nextprev
	if (typeof toc=="string" && toc!="markup" || typeof toc=="object"){
		for (var i=1; i<=setting.contentdivs.length; i++){
			phtml+='<a href="#'+i+'" class="toc">'+(typeof toc=="string"? toc.replace(/#increment/, i) : toc[i-1])+'</a> '
		}
		phtml=(nextprev[0]!=''? '<a href="#prev" class="prev">'+nextprev[0]+'</a> ' : '') + phtml + (nextprev[1]!=''? '<a href="#next" class="next">'+nextprev[1]+'</a>' : '')
		pdiv.innerHTML=phtml
	}
	var pdivlinks=pdiv.getElementsByTagName("a")
	var toclinkscount=0 //var to keep track of actual # of toc links
	for (var i=0; i<pdivlinks.length; i++){
		if (this.css(pdivlinks[i], "toc", "check")){
			if (toclinkscount>setting.contentdivs.length-1){ //if this toc link is out of range (user defined more toc links then there are contents)
				pdivlinks[i].style.display="none" //hide this toc link
				continue
			}
			pdivlinks[i].setAttribute("rel", ++toclinkscount) //store page number inside toc link
			pdivlinks[i].onclick=function(){
				featuredcontentslider.turnpage(setting, this.getAttribute("rel"))
				return false
			}
			setting.toclinks.push(pdivlinks[i])
		}
		else if (this.css(pdivlinks[i], "prev", "check") || this.css(pdivlinks[i], "next", "check")){ //check for links with class "prev" or "next"
			pdivlinks[i].onclick=function(){
				featuredcontentslider.turnpage(setting, this.className)
				return false
			}
		}
	}
	this.turnpage(setting, setting.currentpage, true)
	if (setting.autorotate[0]){
		pdiv.onclick=function(){
			featuredcontentslider.cleartimer(window["fcsautorun"+setting.id])
		}
		sliderdiv.onclick=function(){
			featuredcontentslider.cleartimer(window["fcsautorun"+setting.id])
		}
		sliderdiv.onmouseover=function(){featuredcontentslider.cleartimer(window["fcsautorun"+setting.id])}
		sliderdiv.onmouseout=function(){featuredcontentslider.cleartimer(window["fcsautorun"+setting.id]); featuredcontentslider.autorotate(setting)}
		setting.autorotate[1]=setting.autorotate[1]+(1/setting.enablefade[1]*50) //add time to run fade animation (roughly) to delay between rotation
	 this.autorotate(setting)
	}
},

turnpage:function(setting, thepage, autocall){
	var currentpage=setting.currentpage //current page # before change
	var totalpages=setting.contentdivs.length
	var turntopage=(/prev/i.test(thepage))? currentpage-1 : (/next/i.test(thepage))? currentpage+1 : parseInt(thepage)
	turntopage=(turntopage<1)? totalpages : (turntopage>totalpages)? 1 : turntopage //test for out of bound and adjust
	if (turntopage==setting.currentpage && typeof autocall=="undefined") //if a pagination link is clicked on repeatedly
		return
	setting.currentpage=turntopage
	setting.contentdivs[turntopage-1].style.zIndex=++setting.topzindex
	this.cleartimer(window["fcsfade"+setting.id])
	if (setting.enablefade[0]==true){
		setting.curopacity=0
		setting.cacheprevpage=setting.prevpage
		this.fadeup(setting)
	}
	if (setting.enablefade[0]==false) //if fade is disabled, fire onChange event immediately (verus after fade is complete)
		setting.onChange(setting.prevpage, setting.currentpage)
	setting.contentdivs[turntopage-1].style.visibility="visible"
	if (setting.prevpage<=setting.toclinks.length) //make sure pagination link exists (may not if manually defined via "markup", and user omitted)
		this.css(setting.toclinks[setting.prevpage-1], "selected", "remove")
	if (turntopage<=setting.toclinks.length) //make sure pagination link exists (may not if manually defined via "markup", and user omitted)
		this.css(setting.toclinks[turntopage-1], "selected", "add")
	setting.prevpage=turntopage
	if (this.enablepersist)
		this.setCookie("fcspersist"+setting.id, turntopage)
},

setopacity:function(setting, value){ //Sets the opacity of targetobject based on the passed in value setting (0 to 1 and in between)
	var targetobject=setting.contentdivs[setting.currentpage-1]
	if (targetobject.filters && targetobject.filters[0]){ //IE syntax
		if (typeof targetobject.filters[0].opacity=="number") //IE6
			targetobject.filters[0].opacity=value*100
		else //IE 5.5
			targetobject.style.filter="alpha(opacity="+value*100+")"
	}
	else if (typeof targetobject.style.MozOpacity!="undefined") //Old Mozilla syntax
		targetobject.style.MozOpacity=value
	else if (typeof targetobject.style.opacity!="undefined") //Standard opacity syntax
		targetobject.style.opacity=value
	setting.curopacity=value
},

fadeup:function(setting){
	if (setting.curopacity<1){
		this.setopacity(setting, setting.curopacity+setting.enablefade[1])
		window["fcsfade"+setting.id]=setTimeout(function(){featuredcontentslider.fadeup(setting)}, 50)
	}
	else
		setting.onChange(setting.cacheprevpage, setting.currentpage)
},

cleartimer:function(timervar){
	if (typeof timervar!="undefined"){
		clearTimeout(timervar)
		clearInterval(timervar)
	}
},

css:function(el, targetclass, action){
	var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
	if (action=="check")
		return needle.test(el.className)
	else if (action=="remove")
		el.className=el.className.replace(needle, "")
	else if (action=="add")
		el.className+=" "+targetclass
},

autorotate:function(setting){
 window["fcsautorun"+setting.id]=setInterval(function(){featuredcontentslider.turnpage(setting, "next")}, setting.autorotate[1])
},

getCookie:function(Name){ 
	var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
	if (document.cookie.match(re)) //if cookie found
		return document.cookie.match(re)[0].split("=")[1] //return its value
	return null
},

setCookie:function(name, value){
	document.cookie = name+"="+value
},


init:function(setting){
	var persistedpage=this.getCookie("fcspersist"+setting.id) || 1
	setting.contentdivs=[]
	setting.toclinks=[]
	setting.topzindex=0
	setting.currentpage=(this.enablepersist)? persistedpage : 1
	setting.prevpage=setting.currentpage
	setting.curopacity=0
	setting.onChange=setting.onChange || function(){}
	if (setting.contentsource[0]=="inline")
		this.buildpaginate(setting)
	if (setting.contentsource[0]=="ajax")
		this.ajaxconnect(setting)
}

}





///////////


//floating menu///////
var timerz;
var displayed;
function showmenu(){clearTimeout(timerz);
document.getElementById("sub1").style.display = "block";

if (displayed != true ){
fade('sub1');
displayed = true;
}
}


function turnoffz(){
displayed = false;
document.getElementById("sub1").style.display = "none";
}


 
 
///fade////

var TimeToFade = 500;

function fade(eid)
{
  var element = document.getElementById(eid);
  if(element == null)
    return;
    
   
  if(element.FadeState == null)
  {
    if(element.style.opacity == null || element.style.opacity == '' 
       || element.style.opacity == '1')
      element.FadeState = 2;
    else
      element.FadeState = -2;
  }
    
  if(element.FadeState == 1 || element.FadeState == -1)
  {
    element.FadeState = element.FadeState == 1 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
  }
  else
  {
    element.FadeState = element.FadeState == 2 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade;
    setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
  }  
}

function animateFade(lastTick, eid)
{  
  var curTick = new Date().getTime();
  var elapsedTicks = curTick - lastTick;
  
  var element = document.getElementById(eid);
 
  if(element.FadeTimeLeft <= elapsedTicks)
  {
    element.style.opacity = element.FadeState == 1 ? '1' : '0';
    element.style.filter = 'alpha(opacity = ' + (element.FadeState == 1 ? '100' : '0') + ')';
    element.FadeState = element.FadeState == 1 ? 2 : -2;
    return;
  }
 
  element.FadeTimeLeft -= elapsedTicks;
  var newOpVal = element.FadeTimeLeft/TimeToFade;
  if(element.FadeState == 1)
    newOpVal = 1 - newOpVal;

  element.style.opacity = newOpVal;
  element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';
  
  setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33);
}


////// 
 





