jQuery(document).ready(function()
{

    jQuery('ul.super.sf-menu').superfish(
    {
        autoArrows:    false
    });


    jQuery('ul.navigation.sf-menu').superfish(
    {
        autoArrows:    false
    });


    jQuery('div#footer input[name=cm-name], div#footer input[name=cm-bujvj-bujvj]').focus(function()
    {
        if(jQuery(this).val() == 'Name' || jQuery(this).val() == 'Email')
        {
            jQuery(this).val('');
        }
    });

    jQuery('div#footer input[name=cm-name]').blur(function()
    {
        if(jQuery(this).val().length == 0)
        {
            jQuery(this).val('Name');
        }
    });

    jQuery('div#footer input[name=cm-bujvj-bujvj]').blur(function()
    {
        if(jQuery(this).val().length == 0)
        {
            jQuery(this).val('Email');
        }
    });

    jQuery('a.button.email').colorbox({href: BASE + 'contact-us/email-leaseplan/?modal=true', iframe:true, width:600, height:650});

});


function launchCourse (obj)
{
    var popupHeight = 50;
    var popupWidth = 500;
    var topMargin = (screen.height-popupHeight)/2
    var leftMargin = (screen.width-popupWidth)/2
    var WindowArgs = 'width='+popupWidth+',height='+popupHeight+',top='+topMargin+',left='+leftMargin+'status=no';
    launchWindow = window.open(BASE + 'lplearning/leaseplan_mod'+obj+'/index.htm','launchWindow_'+obj,WindowArgs);
    launchWindow.focus();
}
