// <![CDATA[
/// FUNCTION ADDED BY MINDTREE - 20/4/2011
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];
}
$(document).ready(function()
{
	var glidePopUpCheck=gup('redirect');
	var loc = window.location.href;
	var sub=loc.replace('?redirect=glidefloss','');
	newurl=sub;
	if(glidePopUpCheck=='glidefloss')
	{
		$("#glide_o_basic-modal-content_redirect").modal({
				opacity:80,
				overlayCss: {backgroundColor:"#09213c"},
				onShow :function()
				{
					$('.glide_o_popUpBorder').corner();
					$('#glide_o_popUp').corner();
					$('#glide_o_redirectURL').attr({'href':newurl})
					setTimeout(function()
					{
						if ($("#glide_o_basic-modal-content_redirect").is(":visible"))
						{
							window.location=newurl;
						}
					}, 10000);
				}
		});
	}
});
/// FUNCTION ADDED BY MINDTREE - 20/4/2011
// ]]>
