$(document).ready(function() {
    $(".topMenuAction").click( function() {
        if ($("#openCloseIdentifier").is(":hidden")) {
            $("#slider").animate({
                marginLeft: "774px"
                }, 500 );
            $("#topMenuImage").html('<img src="media/img/arrow-open.png" border="0"/>');
            $("#openCloseIdentifier").show();
						
				/*if($.browser.msie && $.browser.version<=7){	
					   $("#slider").animate({
               		 	marginLeft: "775px"
                		}, 500 );
				}*/
			$("#styleslide").html('');	
        } else {
            $("#slider").animate({
                marginLeft: "916px"
                }, 500 );
            $("#topMenuImage").html('<img src="media/img/arrow-close.png" border="0"/>');
            $("#openCloseIdentifier").hide();
			
			/*if($.browser.msie && $.browser.version<=7){	
					   $("#slider").animate({
               		 	marginLeft: "-40px"
                		}, 500 );
			}*/
				
			$("#styleslide").html('<style>html{	overflow-x: scroll;	overflow-y: auto;	}</style>');	
			//document.write('<link rel="stylesheet" type="text/css" href="scripts/css/slideroverflow.css" media="screen">');
        }
    });
	
});
