/**
auther xurun
date 2006-8-16
*/

document.write("<div id='pup' onmouseout=hidepupTip() class='popmenu' style='position:absolute; filter=Alpha(opacity=95);opacity:0.90;z-index:10;line-height:21px;width:180px;overflow: visible;visibility: hidden;font-size:12px;padding:5px 5px 5px 5px;'></div>")

var displayObj = null;

var a=0;
function showpup(e,str){
	showpupCommon(null,e,str);
}
function showpupCommon(divWidth,e,str)
{	
	var disObj = null;
	if(displayObj==str)return;
	var left=-30,top=e.height+7;
	var x,y;
	while (e.offsetParent){
		left += e.offsetLeft;
		top  += e.offsetTop;
		e     = e.offsetParent;
	}

	left += e.offsetLeft;
	top  += e.offsetTop;
	x = left;
	y = top;
	if (document.layers){
		disObj = document.layers['pup'];
        disObj.left = x;
        disObj.top = y;
    }
    else if (document.all){
		disObj = document.all['pup'];
		disObj.style.left=x;
        disObj.style.top=y;
    }
    else if (document.getElementById){
        disObj = document.getElementById('pup');
		disObj.style.left=x+"px";
       	disObj.style.top=y+"px";
    }

	disObj.style.visibility="visible";
	if(divWidth!=null && divWidth!=""){
		disObj.style.width=divWidth+"px";
	}else{
		disObj.style.width="180px";
	}
	//disObj.style.width=e.style.width;
	disObj.innerHTML=str;
	displayObj = str;
	a=0;
	checkBrowserForVersion4();
}

function showpupindex(imgObj,val){
	showpupCommon(170,imgObj,val);
}

function hidepup()
{
  pup.style.innerHTML=""
  pup.style.visibility="hidden";
  displayObj = null;
}


function  hidepupTip(){
	var div = document.all.pup;
	div.style.visibility='hidden'
}

function checkBrowserForVersion4(){
	var	x=navigator.appVersion;
	y=x.substring(0,4);
	if(y>=4) Effect();
}

var	isNav=(navigator.appName.indexOf("Netscape")!=-1);
var	colors=new Array("FFFFFF","61BAFF","3BAAFF","3B85FF","3B65FF","3B59FF","2344F7","1234EB","0022dd");

function Effect(){
	color=colors[a];
	pup.style.color = color;
	
	if(a<colors.length){
		a++;
		xx=setTimeout("Effect()",45);
	}
}