// JavaScript Document
$(document).ready(function(){
//	$("img[src$='.png']").ifixpng(); 
	$("img.active").removeClass("rollover");
	jQuery.preLoadImages("images/about_on.gif","images/contact_on.gif","images/home_on.gif","images/results_on.gif","images/services_on.gif");
	if ($("img.active").size() > 0) {
		var src = $("img.active").attr("src").replace("_off","_on");
		$("img.active").attr("src", src);
	}
	$("img.rollover").hover(
			function()
			{
				$(this).src = $(this).src.replace("_off","_on");
			},
			function()
			{
				$(this).src = $(this).src.replace("_on","_off");
			}
		);
	$("div.recent a img, a.next img, a.prev img").css({opacity: 0.7});
	$("div.recent a img, a.next img, a.prev img").hover(
			function()
			{
				$(this).css({opacity: 1});
			},
			function()
			{
				$(this).css({opacity: 0.7});
			}
		);
	$(".scrollable").scrollable({ vertical: true, mousewheel: true, speed: 700 });
/*	$(".recent img[title]").tooltip({
   offset: [122, 0],
   effect: 'fade',
   predelay: 0,
   fadeOutSpeed: 100,
   fadeInSpeed: 200
// add dynamic plugin with optional configuration for bottom edge
}); */
});
$(window).load(function() {
		$("img[rel], .apple").overlay({effect: 'apple'});
});
(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)

