// This javascript module requires the dab_agent.js module

function getGalleryURL (gallery) 
{
    return "shutterfly.htm?"+gallery;
}

function getSafariGalleryURL (gallery) 
{
    return "http://www.shutterfly.com/pro/dabstudios/"+gallery;
}

function getGalleryURLForAgent (gallery) 
{
	var userAgent = new userAgentIs();
	if (userAgent.safari) 
	{
    	return getSafariGalleryURL( gallery );
	}
	else 
	{
		return getGalleryURL( gallery );
	}
}


function goToGallery (gallery) 
{
    document.location.href = getGalleryURL( gallery );
}

function goToSafariGallery (gallery) 
{
    document.location.href = getSafariGalleryURL( gallery );
}

function goToGalleryForAgent (gallery) 
{
    document.location.href = getGalleryURLForAgent( gallery );
}


function galleryOrderProblemReportEmail() 
{
	return "mailto:support@dabstudios.com?subject=Gallery order problem report&body="+userAgent();
}

