// JavaScript Document

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function StylingFunction(oThis) {

    $(oThis).next('div').css('display', '');
    $(oThis).css('display', 'none');


    $(oThis).next('div').bind("mouseleave",function() {
        $(this).css('display', 'none');
        $(oThis).css('display', '');    
    });
}

function mouseReallyOut(oThis, e) {
    return true;
    clickX = e.clientX-oThis.offsetLeft;
    clickY = e.clientY-oThis.offsetTop;

    Str = (clickX).toString() + ":" + clickY.toString()
    + " " + oThis.Parent.offsetLeft + ":" + oThis.Parent.offsetTop;
    alert(Str);

    if (clickX < 0 || clickX >= oThis.offsetWidth || clickY < 0 || clickY >= oThis.offsetHeight) {
        //if (!isNaN(clickX))
        return true;
    }
    

    
    return false;
}



//flash popup

function toggle_visibility(id) {
   var e = document.getElementById(id);
   var cover = document.getElementById('CoverDiv');
   if(e.style.display == 'block')
	  e.style.display = cover.style.display = 'none';
   else
	  e.style.display = cover.style.display = 'block';
}