$(document).ready(function(){

	/* Main Menu */
    $("ul.mainmenu li img").hover(
      function () {
      	var newsrc = $(this).attr('src').replace(/_off.png/g, '_on.png');
        $(this).attr('src', newsrc);
      }, 
      function () {
      	if (!$(this).hasClass("selected")){
	      	var newsrc = $(this).attr('src').replace(/_on.png/g, '_off.png');
	        $(this).attr('src', newsrc);
        }
      }
    );
    
	/* Right Menu */
    $("ul.rightmenu li img").hover(
      function () {
      	var newsrc = $(this).attr('src').replace(/_off.png/g, '_on.png');
        $(this).attr('src', newsrc);
      }, 
      function () {
      	if (!$(this).hasClass("selected")){
	      	var newsrc = $(this).attr('src').replace(/_on.png/g, '_off.png');
	        $(this).attr('src', newsrc);
	    }
      }
    );
    
    /* ModellScroller */
    $('#scroll_right').click(function (){
    	this.blur();
    	return false;
    });
    $('#scroll_left').click(function (){
    	this.blur();
    	return false;
    });
    $('#scroll_right').hover(
    	function () {
    		$('#content>ul').animate({ left: "-140%" }, 2000);
		},
		function () {
    		$('#content>ul').stop();
		}
	);
    $('#scroll_left').hover(
    	function () {
    		if (jQuery.browser['msie']){
	    		$('#content>ul').animate({ "left": "-1%" }, 2000);
			}else{
	    		$('#content>ul').animate({ "left": "0%" }, 2000);
			}
		},
		function () {
    		$('#content>ul').stop();
		}
	);

    
});
