//cj div  show	
xpos = 20;
ypos = 70;

function setVisible(obj)
{
//setTimeout("placeIt('layer1')",500);
 obj = document.getElementById(obj);
 obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
 obj.style.left = (cursor.x -15) + 'px' ;
 obj.style.top = (cursor.y -15)+ 'px' ;

}
function placeIt1(obj)
{
 obj = document.getElementById(obj);
 if (document.documentElement)
 {
  theLeft = document.documentElement.scrollLeft;
  theTop = document.documentElement.scrollTop;
 }
 else if (document.body)
 {
  theLeft = document.body.scrollLeft;
  theTop = document.body.scrollTop;
 }
 theLeft += xpos;
 theTop += ypos;
 obj.style.left = theLeft + 'px' ;
 obj.style.top = theTop + 'px' ;
 setTimeout("placeIt('layer1')",500);
}


function hideElement (element) {
if (element.style) {
element.style.visibility = 'hidden';
}
}

function hideCjdiv(myobj,e){
if(!e)	e=window.event;

if (mouseLeaves(myobj, e)) {hideElement(myobj);}
}

function mouseLeaves (element, evt) {
if (typeof evt.toElement != 'undefined' && typeof element.contains !=
'undefined') {
return !element.contains(evt.toElement);
}
else if (typeof evt.relatedTarget != 'undefined' && evt.relatedTarget) {
return !contains(element, evt.relatedTarget);
}
}
function contains (container, containee) {
while (containee) {
if (container == containee) {
return true;
}
containee = containee.parentNode;
}
return false;
}
var cursor = {x:0, y:0};
function getPosition(e) {
    e = e || window.event;
    if (e.pageX || e.pageY) {
        cursor.x = e.pageX;
        cursor.y = e.pageY;
    } 
    else {
        var de = document.documentElement;
        var b = document.body;
        cursor.x = e.clientX + 
            (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
        cursor.y = e.clientY + 
            (de.scrollTop || b.scrollTop) - (de.clientTop || 0);
    }
    return cursor;
}

