// to avoid conflicts with other libraries 
var $j = jQuery.noConflict();

// global scripts to run on page load
$j(function() {
	$j('a[rel=external]').click(function(event) {
		event.preventDefault();
		open(this.href);
	});
	toggleDefaults($j("input#newsletter_email_address, input#newsletter_our_shop"));
});

function toggleDefaults (el) {
	el.focus(function() {
		if (this.value == this.defaultValue) {
			this.value = "";
		}
	}).blur(function() {
		if (this.value == "") {
			this.value = this.defaultValue;
		}
	});
}
