function switchImages() { 
	$('#mainimage').fadeOut("slow", function(){
		// slide 1
		$("#mainimage").html('<a href="http://www.plasma.com/jvcprojectors/dlahd250.htm"><img src="images/index/plasmablueleft.jpg" alt="JVC DLA-HD250 1080p Home Theater Video Projector" /></a><a href="http://www.plasma.com/lgled/lgledtv.htm"><img src="images/index/plasmablueright.jpg" alt="LG 5400  Series 1080p LED TV Blowout Special" /></a>').fadeIn("slow");
		$("#mainimagetext").html('JVC DLA-HD250 1080p Home Theater Video Projector / LG LC-55LE5400 1080p 55 inch LED TV').fadeIn("slow");
		// slide 2
	});
}

// preloads the slide images
jQuery.preloadImages = function() {
  for(var i = 0; i<arguments.length; i++) {
    jQuery("<img>").attr("src", arguments[i]);
  }
}

$.preloadImages("images/index/plasmablueleft.jpg", "images/index/plasmablueright.jpg");

// start slides when page loads
$(document).ready(function(){ setTimeout(switchImages, 1300); });
