//JOHN RESIG'S FLICKER OF CONTENT FIX
    $.fn.addStyle = function(a,b) {
      var d = document;
      var s = d.createElementNS ?
        d.createElementNS("http://www.w3.org/1999/xhtml", "style") :
        d.createElement("style");

			if ( !document.all || navigator.userAgent.indexOf('Opera') > -1 )
			  s.appendChild(d.createTextNode(a+" {"+b+"}"));

      $("head").append(s);

      /*@cc_on @*/
      /*@if (@_win32)
        var ss = d.styleSheets;
        if ( ss && ss.length && ss[ss.length - 1].addRule )
          ss[ss.length - 1].addRule( a, b );
      /*@end @*/

      return this;
    };

//FLICKER OF CONTENT FIX
$(document).addStyle("#cart","display:none");
$(document).addStyle("#map","display:none");
$(document).addStyle("#photopane","display:none");
$(document).addStyle("#fashionistas","display:none");






$(document).ready(function(){

// FORM INPUT TEXT REPLACE - SEARCH
$("#search input[@type=text]").focus(function(){
	if(this.value=='Boutique or Keyword'){
		this.value='';
	}
}).blur(function(){
	if(this.value==''){
		this.value='Boutique or Keyword';
}
});

$("#shopper-search input[@type=text]").focus(function(){
	if(this.value=='Shopper'){
		this.value='';
	}
}).blur(function(){
	if(this.value==''){
		this.value='Shopper';
}
});

$("#product-search input[@type=text]").focus(function(){
	if(this.value=='Product'){
		this.value='';
	}
}).blur(function(){
	if(this.value==''){
		this.value='Product';
}
});

$("#blog-search input[@type=text]").focus(function(){
	if(this.value=='Blog Entries'){
		this.value='';
	}
}).blur(function(){
	if(this.value==''){
		this.value='Blog Entries';
}
});

// FORM INPUT TEXT REPLACE - CREATE NEW USER - USERNAME
$("#username").focus(function(){
	if(this.value=='Enter username.'){
		this.value='';
	}
}).blur(function(){
	if(this.value==''){
		this.value='Enter username.';
}
});

// FORM INPUT TEXT REPLACE - CREATE NEW USER - PASSWORD
$("#password").focus(function(){
	if(this.value=='Enter password.'){
		this.value='';
	}
}).blur(function(){
	if(this.value==''){
		this.value='Enter password.';
}
});

// BOUTIQUE LISTING SEARCH - KEYWORD SEARCH
$("#boutique-filter-bar input[@type=text]").focus(function(){
	if(this.value=='Boutique or Keyword'){
		this.value='';
	}
}).blur(function(){
	if(this.value==''){
		this.value='Boutique or Keyword';
}
});

//ZEBRA STRIPING
$(".zebra tr:even").addClass("alt");

});
