/*Build Laguna Beach Tooltip*/
$(function() {
	$(".line").qtip({
		content: '<div style="width: 598px; height: 197px;"><img src="images/lb.png" /></div><div style="text-align:center; font-family:Verdana; font-size: 10px;">Historic Laguna Beach (1918)</div>',
		show: 'mouseover',
		hide: 'mouseout',
		style: {
			border: {
				width: 3,
				radius: 8,
				color: '#303030'
			}
		}
	});
});

/*Build mbContainers*/
$(function(){
	$(".containerPlus").buildContainers({
		containment:"document",
		elementsPath:"elements/",
		onClose:function(e,o){alert("minimizing!!")}
	});
});

/*Build Nav Hover*/
$(function() { 
	$('#nav ul li').ahover();
});

/*Build Technology Hover*/
$(function() { 
	$('#technology ul li').ahover({
		className: 'thover'
	});
});


function switchMe(f)
{
	$('.icon').fadeOut();
	setTimeout(f, 500);	
}

function switchToOrder()
{	
	switchMe(switchToOrderFinish);
}

function switchToOrderFinish()
{
	$(function() {
		$('#mp1').slideUp();
		$('#mp2').slideUp();
		$('#mp3').slideUp();
		$('#mp4').slideUp("normal", function() { $('#op1').slideDown(); });
	});
}

function switchToMain()
{
	switchMe(switchToMainFinish);
}

function switchToMainFinish()
{
	$(function() {
		$('#op1').slideUp("normal", function() 
			{ 
				$('#mp1').slideDown();
				$('#mp2').slideDown();
				$('#mp3').slideDown();
				$('#mp4').slideDown("normal", function() { $('.icon').fadeIn(); });
			});
	});
}



function makeReservation()
{
	/*
	new Boxy('<div style="padding-top: 10px; margin: 0 auto; width: 100%; text-align: center;">Sorry, not available as of yet.</div>"', {
    	modal: true, closeable: true, title: 'Make a Reservation', x: 50, y: 50, behaviours: function(c) {
        	c.find('a:first').click(function() {
            	newModal();
			});
		}
	});*/
	alert('Sorry, this feature is not yet available.');
}

/*$(window).bind('resize', function() {
	$("#lock").css('margin-left', '10px');
});*/