var relTip = '';
var t='';

$(document).ready(function(){

    $(".clueTip").hide();
    $('a.tip').mouseover( function(){
        relTip = $(this).attr("rel");
        //showTip();
        waitAndShow();
    }).mouseout( function(){
        //waitAndHide();
        hideTip();
    });

}); //END document.ready

function showTip(){
    $(".clueTip").hide();
    var tip = $("dl[id='" + relTip + "']");
    tip.mouseover( function(){
        tip.show();
    }); //END showTip
	
	clearTimeout(t);
    //tip.show();
	tip.show();
} //END showTip

function waitAndHide() {
	t = setTimeout("hideTip()", 1100);
} //END waitAndHide

function waitAndShow() {
	t = setTimeout("showTip()", 1100);
} //END waitAndShow

function hideTip(){
	clearTimeout(t);
    $(".clueTip").hide();
} //hideTip