// JavaScript Document
$(document).ready(function(){
//	$('img[@src$=.png]').ifixpng(); 
//	$("img.active").removeClass("rollover");
	  $('a[rel*=facebox]').facebox() ;
	  	$('#feedbackloop div').hide();
	$('#feedbackloop div:first').show();
	jQuery.preLoadImages("/images/firm_on.jpg","/images/home_on.jpg","/images/knowledge_on.jpg","/images/quote_on.jpg","/images/solutions_on.jpg","contact_on.gif","a_visible_site_on.png");
//	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");
			}
		);
	$("#prev").click(function() {
							  var cur = $('#feedbackloop div:visible');
							  cur.hide().prev().show();
							  if ($('#feedbackloop div:visible').length == 0) {
							  	cur.show();
							  }
							  return false;
							  });
	$("#next").click(function() {
							  var cur = $('#feedbackloop div:visible');
							  cur.hide().next().show();
							  if ($('#feedbackloop div:visible').length == 0) {
							  	cur.show();
							  }							  return false;
							  });
});
(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)
