$(document).ready(function() {
(function($) {
  var cache = [];
  // Arguments are image paths relative to the current page.
  $.preLoadImages = function() {
    var args_len = arguments.length;
    for (var i = args_len; i--;) {
      var cacheImage = document.createElement('img');
      cacheImage.src = arguments[i];
      cache.push(cacheImage);
    }
  }
})(jQuery)

$("#design,#logo,#illustration,#other,#self").hover(function(){
	$('#designlabel').stop(true, true).fadeTo(0, 0.0);
},function(){
	$('#designlabel').stop(true, true).fadeTo(700, 1.0);
});

$("#design,#logo,#illustration,#other,#self").hover(function(){
	$(this).stop(true, true).fadeTo(300, 0.0);
},function(){
	$(this).stop(true, true).fadeTo(0, 1.0);
});
	
	$("#design").hover(function(){
		$("#designroll,#designlabel2").stop(true, true).fadeTo(200, 1.0);
	},function(){
   		$("#designroll,#designlabel2").stop(true, true).fadeTo(250, 0.0);
	});
	$("#logo").hover(function(){
		$("#logoroll,#logolabel").stop(true, true).fadeTo(200, 1.0);
	},function(){
   		$("#logoroll,#logolabel").stop(true, true).fadeTo(250, 0.0);
	});
	$("#illustration").hover(function(){
		$("#illustrationroll,#illustrationlabel").stop(true, true).fadeTo(250, 1.0);
	},function(){
   		$("#illustrationroll,#illustrationlabel").stop(true, true).fadeTo(250, 0.0);
	});
	$("#other").hover(function(){
		$("#otherroll,#otherlabel").stop(true, true).fadeTo(250, 1.0);
	},function(){
   		$("#otherroll,#otherlabel").stop(true, true).fadeTo(250, 0.0);
	});
	$("#self").hover(function(){
		$("#selfroll,#selflabel").stop(true, true).fadeTo(200, 1.0);
	},function(){
   		$("#selfroll,#selflabel").stop(true, true).fadeTo(250, 0.0);
	});

$("[name='thumb']").css("opacity", "0.4");
$("[name='thumb']").hover(function(){
		$(this).stop(true, true).fadeTo(200, 1.0);
	},function(){
   		$(this).stop(true, true).fadeTo(200, 0.4);
	});

$("[name='tabs']").css("opacity", "0.4");
$("[name='tabs']").hover(function(){
		$(this).stop(true).fadeTo(100, 1.0);
},function(){
   		$(this).stop(true).fadeTo(100, 0.4);
});

$("img.one").mouseover(function(){
	$(this).remove();
	});
//$(".robbii2,[name='rindex']").hover(function(){
	//	$(this).stop(true).fadeTo(500, 0.3);
//},function(){
  // 		$(this).stop(true).fadeTo(500, 1.0);
//});
});
