﻿function SurfTo(strURL) {

    if (strURL.search("http:") == -1) {
        window.location.href = strURL;
    }
    else {
        var name = strURL.replace(/[^a-z0-9]+/g, ""); //fix for IE 
        var myWin = window.open(strURL, name);
        myWin.focus();
    }
}

$(document).ready(function () {
 
    // select the overlay element - and "make it an overlay"
    $("#overlayfunc").overlay({

        // custom top position
        top: 120,

        // some mask tweaks suitable for facebox-looking dialogs
        mask: {

            // you might also consider a "transparent" color for the mask
            color: '#000',

            // load mask a little faster
            loadSpeed: 200,

            // very transparent
            opacity: 0.6
        },

        // disable this for modal dialog-type of overlays
        closeOnClick: true,

        // load it immediately after the construction
        load: true

    });

});

