// I AM THAT GIRL - JQuery Code

$(document).ready(function(){
									
    /* --------------------------------------- */
    /* --( PNG Fix )-- */
    /* --------------------------------------- */

    $(function(){$(document).pngFix();});
    
    /* --------------------------------------------- */
	/* --( The Adam Duro Blur Label Hider Thingy )-- */
	/* --------------------------------------------- */
	
	$("form.blurlabel input.label_hide, form.blurlabel textarea.label_hide")
		.each(function(){
			var title = $(this).attr("title");
			var id = $(this).attr("id");
			$(this).before('<span class="overlabel" rel="'+id+'">'+title+'</span>');
		})
		.focus(function(){
			var id = $(this).attr("id");
			var e = "span[@rel="+id+"].overlabel";
			$(e).hide();
		})
		.blur(function(){
			var id = $(this).attr("id");
			var e = "span[@rel="+id+"].overlabel";
			var n = $(this).val()
			if (n == ""){
				$(e).show();
			}
		});
	// Sets hide and focus when user clicks on the text label
		$("form.blurlabel span.overlabel").click(function(){
			var f = $("form.blurlabel").attr("id");
			var id = $(this).attr("rel");
			$(this).hide();
			document[f][id].focus();
		});
		
	/* --------------------------------------- */
	/* --( Superfish )-- */
	/* --------------------------------------- */

	if ($('body').hasClass('members') || $('body').hasClass('free') ) {
	       $("#nav ul").superfish();
	}
									
});