﻿$(document).ready(function() {
	var browser=navigator.appName;
	if (browser=="Microsoft Internet Explorer")
	{
			var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
			if (re.exec(navigator.userAgent) != null)
			{
				var rv = parseFloat(RegExp.$1);
				if (rv <= 6)
				{
					$('#footerLayout').before('<div style="background: yellow; padding: 10px; text-align: center; border-bottom: 2px #ccc solid;">WARNING: Some website features may not display properly with your browser. <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Download the latest version of Internet Explorer</a>.</div>');
				}
			}
	}
	
	$('a[href$=/GroupResources/Forms/Upload.aspx]').each(function(i){
                var newURL = $(this).attr('href') + '?f=1&Source=' + location.pathname;
                $(this).attr('href', newURL);
	});
 });
