
// function below gets the URL paramter and returns the result
function gup(name)
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

// used in conjunction with GA: sometimes pagetracker does not fire when called directly, hence need for intermediary function
function sfiTrack(mySection, myEvent, myContent, myValue){
	try { pageTracker._trackEvent(mySection, myEvent, myContent, myValue); }
	catch(err) {};
}
