$(document).ready(function(){
	
	// external links
	$('a[rel*=external]').click( function() {
		window.open(this.href);
		return false;
	});
	
	//image rollover
	$("a.roll").live('mouseover focus', function(event) {
		$(this).find('img').attr("src", $(this).find('img').attr("src").split('_f1').join('_f2'))
	}).live('mouseout blur', function(event) {/*mouseout*/
		$(this).find('img').attr("src", $(this).find('img').attr("src").split('_f2').join('_f1'))
	});

	
	$("form input").live('mouseover focus', function(event) {
		$(this).attr("src", $(this).attr("src").split('_f1').join('_f2'))
	}).live('mouseout blur', function(event) {
		$(this).attr("src", $(this).attr("src").split('_f2').join('_f1'))
	});


/*	
	$("form input").live('mouseover focus', function(event) {
		$(this).attr("src", "images/site_objects/add_to_cart_f2.gif");
	}).live('mouseout blur', function(event) {
		$(this).attr("src", "images/site_objects/add_to_cart_f1.gif");
	});
	
	$("#header #home").bind("mouseenter", function() {
		$(this).addClass("home_hover");
	});
	$("#header #home").bind("mouseleave", function() {
		$(this).removeClass("home_hover");
	});
*/	

	
});