
	function DESemail(emailname,emailserver,isTop) {
		document.write("<a href='mailto:" + emailname + "@" + emailserver +"' title=\"Email Me!\"");

		if (isTop == 'true') document.write(" id=\"email-nav\"");

		document.write(">");
		document.write(emailname + "@" + emailserver); 
		document.write("</a>"); 
	}


	function sizeIFrame() {
		var helpFrame = jQuery("#shop_frame");
		var innerDoc  = (shop_frame.get(0).contentDocument) ? shop_frame.get(0).contentDocument : shop_frame.get(0).contentWindow.document;

		shop_frame.height(innerDoc.body.scrollHeight + 35);
	}


	// --------------------------------
	// jQuery
	// --------------------------------
	$(document).ready(function() {
		// --------------------------------
		//  Project Photo Gallery
		// --------------------------------
		jQuery.each($("ul.thumbs li a"), function() {
			$(this).preload();
			$(this).click(function() {
				var new_src = $(this).attr('href');
				$("#image img").fadeOut('fast', function() {
					$("#image img").attr('src', new_src).fadeIn('medium');
				});

				$("ul.thumbs li a").removeClass("current");

				$(this).addClass("current");

				return false;
			});	
		});

		/* Form field + button pseudo stuff */
		$("input.def").focus(function()     { $(this).addClass("focused");    });
		$("input.def").blur(function()      { $(this).removeClass("focused"); });
		$("input.btn").mouseover(function() { $(this).addClass("hovered");    });
		$("input.btn").mouseout(function()  { $(this).removeClass("hovered"); });

		$(".btn").click( function() { $(this).val("Please Wait"); } );

		$("#shop_frame").load(sizeIFrame);

	}); // End jQuery
