$(document).ready(function() {

	$("ul.sf-menu").supersubs({ 
		minWidth:    12,   	// minimum width of sub-menus in em units 
		maxWidth:    27,   	// maximum width of sub-menus in em units 
		extraWidth:  1     	// extra width can ensure lines don't sometimes turn over 
							// due to slight rounding differences and font-family 
	}).superfish();  		// call supersubs first, then superfish, so that subs are 
							// not display:none when measuring. Call before initialising 
							// containing tabs for same reason.

	/* Load flash */
	if($("#flash-banner").attr('id') != '') {
		$("#flash-banner").flash(Templates_Image + '/banner.swf', {
			width: 974,
			height: 200,
			flashvars: {},
			paremeters: {
				wMode: 'opaque',
				quality: 'high',
				menu: 'false',
				bgcolor: '#000000'
			}
		});
	}
	
	/* Perform some common task */
	$('a._blank').each(function(index, element) { 
		$(element).attr('target', '_blank');
	});

	$('#frmRegRequest').validate();
});

function showForm()
{
	$("#frmSignup").slideDown("slow");
}

function ShowRequestForm()
{
	$("#showpatronform").slideDown("slow");
}



/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}





