 $(document).ready(function(){
                /* arrows */
                
                var docWidth = $(document).width();
                var leftIndent = docWidth / 2 - 480;
                var rightIndent = docWidth / 2 + 416;     
                var leftEdge = docWidth / 2 - 480 + 16;              
                var headingWidth = $("#headingDetail").width(); 
                headingWidth = leftEdge + headingWidth;                
                
                $("#footerContent").css("background", "url(http://www.pragoimex.cz/i/bg-footer.png) " + leftIndent +"px top no-repeat");
                $("#footerContent").css("width", docWidth); 
                
                $("#newsContent").css("background", "url(http://www.pragoimex.cz/i/bg-news.png) " + rightIndent +"px top no-repeat #fff");
                $("#newsContent").css("width", docWidth); 
                                
                $("#headingDetail").css('left', '-'+leftEdge+'px');
                $("#headingDetail").css('width', headingWidth+'px');
                $("#headingDetail h1").css('padding-left', leftEdge+'px');
                                                
                /* gallery */
                $("#morePhotos").hide();
                $("#hideWrapper").hide(); 
                
                $("#showGallery a").click(function(){
                    $("#morePhotos").show();
                    $("#showWrapper").hide();
                    $("#hideWrapper").show();
                    return false;                    
                });
                
                $("#hideGallery a").click(function(){
                    $("#morePhotos").hide(); 
                    $("#showWrapper").show();
                    $("#hideWrapper").hide();   
                    return false;                    
                });                
                
                /* searchForm */
                
                $("input[name=search]").focus(function(){
                   $("input[name=search]").val('');  
                });
                   
            });
