$(function(){
	
	$(".shortcut img").each(function(){
	
		$(this).load(function(){
		
			var width = $(this).width();
			var height = $(this).height();
			
			var parent = $(this).parent();
			parent.data("img",$(this));
			
			$(this).css("width",width);
			$(this).css("height",height);
			$(this).css("vertical-align","bottom");
		
			$(this).data("width",width);
			$(this).data("height",height);
			
			parent.mouseover(function(){
				var img = $(this).data("img");
				var newWidth = img.data("width") + 10;
				var newHeight = img.data("height") + 10;
				if($.browser.msie){
					img.css("width",newWidth);
					img.css("height",newHeight);
				}else{
					img.animate({
						width: newWidth,
						height: newHeight
					}, 200);
				}
			});
			
			parent.mouseout(function(){
				var img = $(this).data("img");
				var newWidth = img.data("width");
				var newHeight = img.data("height");
				if($.browser.msie){
					img.css("width",newWidth);
					img.css("height",newHeight);
				}else{
					img.animate({
						width: newWidth,
						height: newHeight
					}, 200);
				}
			});
			
		});
	});
	
	/*
	$(".shortcut").each(function(){
		img = $(this).find("img");
		if($.browser.msie){
			img.data("width",img.width());
			img.data("height",img.height());
			img.animate({
				width: img.data('width')+"px",
				height: img.data('height')+"px"
			}, 200 );
		}else{
			img.bind("load",function(){
				$(this).data("width",$(this).width());
				$(this).data("height",$(this).height());
			});
		}	
		
		$(this).mouseover(function(){
			img = $(this).find("img");
			var w = img.data('width');
			var h = img.data('height');
			var nw = parseInt(w,10)+10;
			var nh = parseInt(h,10)+10;
			if(img.width() == w){
				img.animate({
					width: nw+"px",
					height: nh+"px"
				}, 200 );
			}
		});
		
		$(this).mouseout(function(){
			img = $(this).find("img");
			if(img.width() == (img.data("width")+10)){
				img.animate({
					width: img.data('width')+"px",
					height: img.data('height')+"px"
				}, 200 );
			}
		});
		
	});
	*/
	
});
