 $(function() {
	 // window.resizeTo(970,690);
	 /*
   window.resizeTo(970,690);
   */
				/**
				* for each menu element, on mouseenter, 
				* we enlarge the image, and show both sdt_active span and 
				* sdt_wrap span. If the element has a sub menu (sdt_box),
				* then we slide it - if the element is the last one in the menu
				* we slide it to the left, otherwise to the right
				*/
                $('#sdt_menu > li').bind('mouseenter',function(){
					var $elem = $(this);
					if ($elem.hasClass("selected")){
						
					}else{
						$elem.css("background-image", "url(./images/nav-on.png)");  
					}
					
					
						var $sub_menu = $elem.find('.sdt_box');
						if($sub_menu.length){
							$sub_menu.show().animate({'height':'170px'},300);
						}	
				}).bind('mouseleave',function(){
					var $elem = $(this);
					if ($elem.hasClass("selected")){
						
					}else{
						$elem.css("background-image", "url(./images/nav-off.png)");  
					}
					var $sub_menu = $elem.find('.sdt_box');
					if($sub_menu.length)
						$sub_menu.show().animate({'height':'0px'},200,function(){
						$sub_menu.hide();
					});
					
				});
            });
