$(document).ready(function(){
	/*Uncomment to scroll to the first hash on page load...
	$.localScroll.hash({
		target: '#pageContent',
		queue:true,
		duration:3000
	});*/

	$('#pageContent').localScroll({
		target: '#pageContent',
		queue:true,
		duration:1500,
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});

	var currentCat = 'dream';

	/*$('#whatMenu a').click({

	});*/

	$('#whatMenu').localScroll({
		target: '#pageContent',
		queue:true,
		duration:0,
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});

	$('.vendorLink').popupWindow({
		centerBrowser:1,
		scrollbars:1
	});

	$("a[rel^='attachPop']").prettyPhoto({
		animationSpeed: 'fast', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.35, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: false, /* true/false */
		counter_separator_label: ' of ', /* The separator for the gallery counter 1 "of" 2 */
		theme: 'dark_square', /* light_rounded / dark_rounded / light_square / dark_square */
		hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
		modal: false, /* If set to true, only the close button will close the window */
		changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
		callback: function(){} /* Called when prettyPhoto is closed */
	});

	/* Show or hide the contact form that drops down from the top of the page. */
	/*var showForm = true;

	$("#showQuickForm a").click(function () {
		$("#quickContact").slideToggle("normal");
		/*$("#quickContact").toggleClass('hasBG');*/
		/*showForm = showForm == true ? false : true;
		$("#showQuickForm a").toggleClass('hideForm');
		return false;
	});*/

	$(".vendorLink").click( function(){
		var test = '#';
		test += $(this).attr('rel');
		$(test).slideToggle("normal");
		return false;
	});
});
