var detect = navigator.userAgent.toLowerCase();
var safariFlag;

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

if (checkIt('safari')) safariFlag = true; else safariFlag = false;

