 $(document).ready(function() {   
 $(".outsidelink").click(function() {
 var msg = "By selecting this link you are leaving First Federal Savings of Lorain's website ";
 msg += "and accessing an external website. First Federal takes no responsibility for any external website. ";
 msg += "We neither endorse the information, content, presentation, or accuracy nor make any warranty, ";
 msg += "express or implied, regarding any external website. ";

fancyConfirm(msg, $(this).attr("href"));
return false;
 });
 });

function fancyConfirm(msg, url) {
   
    
    jQuery.fancybox({
        modal : true,
        content : "<div style=\"margin:1px;width:440px;background-color:#dae4fd;font-family:arial;padding:5px;\"><div style=\"background-color:#043ab8;color:white;font-weight:bold;padding:3px;margin-bottom:1px;\">Leaving First Federal Site</div>"+msg+"<div style=\"text-align:right;margin-top:10px;\"><a href=\"#\" id=\"fancyConfirm_cancel\">Return to Prevous Page</a> | <a href=\"#\" id=\"fancyConfirm_ok\">Leave First Federal Site</a></div></div>",
        onComplete : function() {
            jQuery("#fancyConfirm_cancel").click(function() {
            
                jQuery.fancybox.close();
                
            })
            jQuery("#fancyConfirm_ok").click(function() {
                 document.location=url;
                jQuery.fancybox.close();
               
            })
        },
        onClosed : function() {
            
                jQuery.fancybox.close();
                
        }
    });
}

