// JavaScript Document

/*
 * jQuery Form Example Plugin 1.4.2
 * Populate form inputs with example text that disappears on focus.
 *
 * Copyright (c) Paul Mucur (http://mucur.name), 2007-2008.
 * Dual-licensed under the BSD (BSD-LICENSE.txt) and GPL (GPL-LICENSE.txt)
 * licenses.
 */
(function(a){a.fn.example=function(e,c){var d=a.isFunction(e);var b=a.extend({},c,{example:e});return this.each(function(){var f=a(this);if(a.metadata){var g=a.extend({},a.fn.example.defaults,f.metadata(),b)}else{var g=a.extend({},a.fn.example.defaults,b)}if(!a.fn.example.boundClassNames[g.className]){a(window).unload(function(){a("."+g.className).val("")});a("form").submit(function(){a(this).find("."+g.className).val("")});a.fn.example.boundClassNames[g.className]=true}if(a.browser.msie&&!f.attr("defaultValue")&&(d||f.val()==g.example)){f.val("")}if(f.val()==""&&this!=document.activeElement){f.addClass(g.className);f.val(d?g.example.call(this):g.example)}f.focus(function(){if(a(this).is("."+g.className)){a(this).val("");a(this).removeClass(g.className)}});f.change(function(){if(a(this).is("."+g.className)){a(this).removeClass(g.className)}});f.blur(function(){if(a(this).val()==""){a(this).addClass(g.className);a(this).val(d?g.example.call(this):g.example)}})})};a.fn.example.defaults={className:"example"};a.fn.example.boundClassNames=[]})(jQuery);

/**
* Select a Gallery
*/
function show_gallery(url)
{
	popup(url, 830, 640, '_showgallery');
	return false;
}

/**
* Window popup
*/
function popup(url, width, height, name)
{
	if (!name)
		name = '_popup';
	var features = 'resizable=no,scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,centerscreen=yes,alwaysRaised=yes,';
	window.open(url.replace(/&amp;/g, '&'), name, features+'height='+height+',width='+width);
	return false;
}

$(function(){
	$(document).bind("contextmenu",function(e){alert('Gail McInnis Productions.');return false;});
	$('input, textarea').example(function(){if($(this).attr('title') != "") return $(this).attr('title');},{className:'eg_text'});
});