
function init()
{
	//prettyphoto eats up the resize function, so fake it
	var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
	//browser and 
	var is_iphone = navigator.userAgent.toLowerCase().indexOf('iphone') > -1;
	var is_ipad = navigator.userAgent.toLowerCase().indexOf('ipad') > -1;
	var is_safari = navigator.userAgent.toLowerCase().indexOf('safari') > -1;
	
	if(is_chrome || is_iphone || is_ipad || is_safari){
		forceResize();	
	}
	
	function forceResize()
	{
		$('#bg img').css({"min-height":$(document).height()});	
		window.setTimeout(forceResize,500);
	}
	//$("#output").append($(this).attr("author") + "<br />");
	
	$('#mycarousel-next').bind('click',doShowcase);

    $('#mycarousel-prev').bind('click', doShowcase);
	
	$('#showcase').bind('click', doShowcase);
	$('#viewall').bind('click', doShowcase);
};

function doShowcase()
{
	window.location.href = "showcase.html?animateShowcase=true";	
}
