function IncludeJavaScript(jsFile)
{
  document.write('<script type="text/javascript" src="'
    + jsFile + '"></scr' + 'ipt>');
}

function funcMenuFocus() {
    $('#left ul li').hover(function(){
        if($(this).attr('active') != 1)
            $(this).css({background:'url(./images/functionality/hoverTestBg.gif) no-repeat'});
    },
    function(){
        if($(this).attr('active') != 1)
            $(this).css({background:'transparent'});
    });

    $('#left ul li').click(function(){
        $('#left ul li').each(function(){
            if($(this).attr('active') == 1) {
                $(this).attr('active','0');
                $(this).css({background:'transparent'});
            }
        });
        $(this).attr('active','1');
        $(this).css({background:'url(./images/functionality/hoverBg.gif) no-repeat'});
    });
}

$(document).ready(function() {
    funcMenuFocus();
    $("a.gallery").fancybox({
        overlayOpacity: 0.5,
        zoomOpacity: true,
        imageScale: true,
        easingOut: 'easeInExpo',
        easingIn: 'easeOutExpo',
        easingChange: 'easeOutElastic',
        zoomSpeedIn: 500,
        zoomSpeedOut: 300,
        zoomSpeedChange: 500
    });
});



