var cdd={
dmo: null, ie: document.all, firefox: document.getElementById&&!document.all, st: undefined, bottomclip:0,
gpO:function(what, offsettype){
var t=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
t=(offsettype=="left")? t+parentEl.offsetLeft : t+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return t;
},
se:function(){
if (this.bottomclip<parseInt(this.dmo.offsetHeight)){
this.bottomclip+=10+(this.bottomclip/10)
this.dmo.style.clip="rect(0 auto "+this.bottomclip+"px 0)"
}
else
return
this.st=setTimeout("cdd.se()", 10)
},
sh:function(obj, e){
if (this.ie || this.firefox)
this.dmo.style.left=this.dmo.style.top="-500px"
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){
if (typeof this.st!="undefined")
clearTimeout(this.st)
obj.clip="rect(0 auto 0 0)"
this.bottomclip=0
this.se()
obj.visibility="visible"
}
else if (e.type=="click")
obj.visibility="hidden"
},
iet:function(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
},
cbr:function(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=this.ie && !window.opera? this.iet().scrollLeft+this.iet().clientWidth-15 : window.pageXOffset+window.innerWidth-15
this.dmo.contentmeasure=this.dmo.offsetWidth
if (windowedge-this.dmo.x < this.dmo.contentmeasure)
edgeoffset=this.dmo.contentmeasure-obj.offsetWidth
}
else{
var topedge=this.ie && !window.opera? this.iet().scrollTop : window.pageYOffset
var windowedge=this.ie && !window.opera? this.iet().scrollTop+this.iet().clientHeight-15 : window.pageYOffset+window.innerHeight-18
this.dmo.contentmeasure=this.dmo.offsetHeight
if (windowedge-this.dmo.y < this.dmo.contentmeasure){
edgeoffset=this.dmo.contentmeasure+obj.offsetHeight
if ((this.dmo.y-topedge)<this.dmo.contentmeasure)
edgeoffset=this.dmo.y+obj.offsetHeight-topedge}}
return edgeoffset
},
di:function(obj, e, dropmenuID){
if (this.dmo!=null)
this.dmo.style.visibility="hidden"
this.chm()
if (this.ie||this.firefox){
obj.onmouseout=function(){cdd.dhm()}
obj.onclick=function(){return true}
this.dmo=document.getElementById(dropmenuID)
this.dmo.onmouseover=function(){cdd.chm()}
this.dmo.onmouseout=function(e){cdd.dh(e)}
this.dmo.onclick=function(){cdd.dhm()}
this.sh(this.dmo.style, e)
this.dmo.x=this.gpO(obj, "left")
this.dmo.y=this.gpO(obj, "top")
this.dmo.style.left=this.dmo.x-this.cbr(obj, "rightedge")+"px"
this.dmo.style.top=this.dmo.y-this.cbr(obj, "bottomedge")+obj.offsetHeight+1+"px"
}},
cff:function(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
},
dh:function(e){
var evtobj=window.event? window.event : e
if (this.ie&&!this.dmo.contains(evtobj.toElement))
this.dhm()
else if (this.firefox&&e.currentTarget!= evtobj.relatedTarget&& !this.cff(evtobj.currentTarget, evtobj.relatedTarget))
this.dhm()
},
dhm:function(){
this.delayhide=setTimeout("cdd.dmo.style.visibility='hidden';",250)
},
chm:function(){
if (this.delayhide!="undefined")
clearTimeout(this.delayhide)
},
startchrome:function(){
for (var ids=0; ids<arguments.length; ids++){
var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
for (var i=0; i<menuitems.length; i++){
if (menuitems[i].getAttribute("rel")){
var relvalue=menuitems[i].getAttribute("rel")
menuitems[i].onmouseover=function(e){
var event=typeof e!="undefined"? e : window.event
cdd.di(this,event,this.getAttribute("rel"))
}}}}}}


var x = 0, y = 0, snow = 0, sw = 0, cnt = 0;

over = document.getElementById('overDiv').style;
document.onmousemove = mouseMove;

function drc(text,as)
{
dtc(text,as);
}

	function nd()
	{
		if ( cnt >= 1 ) { sw = 0 };

		if ( sw == 0 )
		{
			snow = 0;
			hideObject(over);
		}
		else
		{
			cnt++;
		}
	}

	function dtc(text,widtht)
	{
		txt = "<TABLE cellpadding=0 cellspacing=0 width=400 border=0><TR><TD style='padding:4px;background-color:#2F2F2F'><SPAN ID=PST style='font-family:verdana;font-size:10px'>"+unescape(text)+"<SPAN></TD></TR></TABLE>";
		layerWrite(txt);
		disp();
	}

	function disp()
	{
		if (snow == 0)
		{
			moveTo(over,x+10,y+10);
			showObject(over);
			snow = 1;
}
}

function mouseMove(e)
{
oCanvas = document.getElementsByTagName(
(document.compatMode && document.compatMode == "CSS1Compat") ? "HTML" : "BODY"
)[0];

e = (e) ? e : event;

x =e.clientX + oCanvas.scrollLeft;
y = e.clientY + oCanvas.scrollTop;

if (snow)
{
moveTo(over,x+10,y+10);
}
}

function layerWrite(txt)
{
document.getElementById("overDiv").innerHTML = txt
}

function showObject(obj)
{
obj.visibility = "visible"
}

function hideObject(obj)
{
obj.visibility = "hidden"
}

function moveTo(obj,xL,yL)
{
curX = document.getElementById('PST').offsetWidth + eval(xL);
curY = document.getElementById('PST').offsetHeight + eval(yL);

xL = (curX>=(document.body.clientWidth-10)) ? eval(xL)-document.getElementById('PST').offsetWidth-20 : eval(xL);
yL = (curY>=(document.body.clientHeight-10)) ? eval(yL)-document.getElementById('PST').offsetHeight-20 : eval(yL);

obj.left = eval(xL) + 'px';
obj.top = eval(yL) + 'px';
}