        $(function(){
            $.fn.supersized.options = {  
                startwidth: 16,  
                startheight: 9,
                vertical_center: 1,
                slideshow: 1,
                navigation: 1,
                transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
                pause_hover: 0,
                slide_counter: 1,
                slide_captions: 0,
                slide_interval: 4000
            };
            $('#supersize').supersized(); 
        });
    

<!--THIS IS THE MENU TO FADE TRANSPARENT-->

            $(document).ready(function() {
                $('.nav.portfolio .navMask ul.navContent, .menu, .footer').hover(function() {
                    $('.nav.portfolio .navMask ul.navContent').animate({right: '0px'}, {queue:false, duration: 500});
                    $('.menu, .footer').animate({opacity: '1'}, {queue:false, duration: 500});
                },
                function(){
                    $('.nav.portfolio .navMask ul.navContent').animate({right: '-200px'}, {queue:false, duration: 300});
                    $('.menu, .footer').animate({opacity: '0.1'}, {queue:false, duration: 300});
                });
                
                $('.nav.portfolio .navMask ul.navContent li p.image a').click(function() {
                    $('.loading').show();
                    $.ajax({
                        type: 'GET',
                        url: 'http://tavshan.com/demo/contrast/wp-content/themes/contrast/load_background.php',
                        data: 'BG_image=' + $(this).attr('rel'),
                        success: function(html) {
                            $('#background').html(html);
                            
                            $('#background img').load(function() {
                                $(this).css({
                                    top: ($(window).height() - $(this).height()) / 2,
                                    display: 'block'
                                });
                                
                                $('.loading').hide();
                            });
                        }
                    });
                });
                
                $('.nav.portfolio .navMask ul.navContent li p.image a:eq(0)').click();
            });


<!--THIS WAS HIDDEN IN jQUERY FROM THE FILE FUNCTION.js-->
    
            
            $(document).ready(function(){
    
            $('.menu ul.list li a').hover(function() {
                $(this).animate({paddingLeft: '50px'}, {queue:false, duration: 100});
            },
            function(){
                $(this).animate({paddingLeft: '25px'}, {queue:false, duration: 300});

        });

     });

// --> nema desnog miša
if (navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) >= 4){ 
  function nocontextmenu() {
    event.cancelBubble = true;event.returnValue = false;return false;
  }
  document.oncontextmenu = nocontextmenu; 
}



<!-- THIS IS TO DISABLE TO THE MOUSE RIGHT-CLICK-->
/*
    var message="Function Disabled!";
    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }
    function clickNS4(e){

    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }
    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }
    document.oncontextmenu=new Function("alert(message);return false")
    // --> 
  */

