// $(function() { 
//         $("button[rel]").overlay({expose: '#000', effect: 'apple'}); 
//        }); 
//        

$(function() {         
         
    // positions for each overlay 
   //var positions = [ [0,     530],[400, 20],[400, 530], [0,     20]     ];       

    // setup triggers 
    $("button[rel]").each(function(i) { 
        $(this).overlay({ 
 
            // common configuration for each overlay 
            oneInstance: false,  
            closeOnClick: false,  
              
            // setup custom finish position 
            //top: positions[i][0], 
            //left: positions[i][1], 
            
            //top: 40, 
            //left: 250, 
             
             
             
             expose: {

		// you might also consider a "transparent" color for the mask
		color: '#000'},


            // use apple effect 
            effect: 'apple' 
             
        });             
    }); 
     
});


 
function OverlayDivOpen()
{
        document.write("<div  class='divHeader'>");
        document.write("<div class='divLogo'>");
        document.write("<a href='#' class='close'><img alt='Close'  src='/images/overlay/PopUp_Close.gif' class='closeButton' /></a>");
        document.write("</div>");
        document.write("</div>");
        document.write("<div class='divContent'>");            
            
}
      
function OverlayDivClose()
{
        document.write("</div>");
}



    
function btnmouseover(obj,imgurl)
{
        obj.style.backgroundImage="url('"+imgurl+"')";        
        obj.style.cursor='pointer'; 
}
function btnmouseout(obj,imgurl)
{
         obj.style.backgroundImage="url('"+imgurl+"')";
         obj.style.cursor='pointer';  
}
