$(document).ready(function(){							
						var n=-1;
    $(".beldesign #header ul li").hover(
      function () {
	        $(this).css({'background':'url(img/menu1.gif) no-repeat left'});
		},
	    function () {
        $(this).css({'background':'url(img/menu.gif) no-repeat left'});
		}
	   );
	$(".dropdownmenu").hover(
      function () {
		  if (n==-1)
	        $(this).css({'background':'url(img/menu6.gif) no-repeat 0 0.3em'})
			else $(this).css({'background':'url(img/menu4.gif) no-repeat 0 0.3em'});
			
		},
	    function () {
			  if (n==-1)
        $(this).css({'background':'url(img/menu5.gif) no-repeat 0 0.3em'})
		else $(this).css({'background':'url(img/menu2.gif) no-repeat 0 0.3em'});
		});
	   
	   $(".dropdownmenu1").hover(
      function () {
		  if (n==-1)
	        $(this).css({'background':'url(img/menu6.gif) no-repeat 0 0.3em'})
			else $(this).css({'background':'url(img/menu4.gif) no-repeat 0 0.3em'});
			
		},
	    function () {
			  if (n==-1)
        $(this).css({'background':'url(img/menu5.gif) no-repeat 0 0.3em'})
		else $(this).css({'background':'url(img/menu2.gif) no-repeat 0 0.3em'});
		});
	   
	$(".dropdownmenu div").click(function() { 
			n=n*(-1);
			 if (n==-1)
	        $(this).parent().css({'background':'url(img/menu6.gif) no-repeat 0 0.3em'})
			else $(this).parent().css({'background':'url(img/menu4.gif) no-repeat 0 0.3em'});
			$(".dropmenuitems").toggle('blind',{},500);
			return false;
		});	
 });

window.onload = function(){
	  for (var i = 0; i < $(".site img").length; i++) {
                      	w=$(".site img")[i].width;
						h=$(".site img")[i].height;
						h=240/w*h;
						$(".site img")[i].width=240;
						$(".site img")[i].height=h;	}
}