// -----------------------------------------------------------------
//        Page description: Bonzo Crunch Javascripts
//        Page creation date: February 21, 2008
//
//        Copyright (c) 2008 
//
// -----------------------------------------------------------------


// -----------------------------------------------------------------
//    Pre-load the image files needed for the rollover Menu Panel
// -----------------------------------------------------------------
function preLoadMenuImages()
{
    // Check if the browser understands image objects. If so, load them.
    if (document.images) {
        Home_DK = new Image
        Home_LT = new Image
        About_DK = new Image
        About_LT = new Image
        Services_DK = new Image
        Services_LT = new Image
        Quotes_DK = new Image
        Quotes_LT = new Image
        Press_DK = new Image
        Press_LT = new Image
        Photos_DK = new Image
        Photos_LT = new Image
        Customers_DK = new Image
        Customers_LT = new Image
        Contact_DK = new Image
        Contact_LT = new Image
        // Assign image files to the new image objects
        Home_DK.src = "images/home_dk.jpg"
        Home_LT.src = "images/home_lt.jpg"
        About_DK.src = "images/about_dk.jpg"
        About_LT.src = "images/about_lt.jpg"
        Services_DK.src = "images/services_dk.jpg"
        Services_LT.src = "images/services_lt.jpg"
        Quotes_DK.src = "images/quotes_dk.jpg"
        Quotes_LT.src = "images/quotes_lt.jpg"
        Press_DK.src = "images/press_dk.jpg"
        Press_LT.src = "images/press_lt.jpg"
        Photos_DK.src = "images/photos_dk.jpg"
        Photos_LT.src = "images/photos_lt.jpg"
        Customers_DK.src = "images/customers_dk.jpg"
        Customers_LT.src = "images/customers_lt.jpg"
        Contact_DK.src = "images/contact_dk.jpg"
        Contact_LT.src = "images/contact_lt.jpg"
    }
    else {
    // If the browser doesn't understands image objects, load empty strings.
        Home_DK = ""
        Home_LT = ""
        About_DK = ""
        About_LT = ""
        Services_DK.src = ""
        Services_LT.src = ""
        Quotes_DK.src = ""
        Quotes_LT.src = ""
        Press_DK.src = ""
        Press_LT.src = ""
        Photos_DK.src = ""
        Photos_LT.src = ""
        Customers_DK.src = ""
        Customers_LT.src = ""
        Contact_DK.src = ""
        Contact_LT.src = ""
    }
}




// -----------------------------------------------------------------
//    Function to manage pop-up windows for gallery photo pages
// -----------------------------------------------------------------

function WSNewWindow(mypage, myname, w, h, scroll, resizable, status, toolbar, menubar, location)
{
        var winl = (screen.width - w) / 2;
        var wint = (screen.height - h) / 2;
        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+',status='+status+',toolbar='+toolbar+',menubar='+menubar+',location='+location
        win = window.open(mypage, myname, winprops)
        if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}




// -----------------------------------------------------------------
//    END
// -----------------------------------------------------------------


