$(document).ready(function(){         
            if(!navigator.cookieEnabled)           
            {
            	var url = getAbsolutePath();             	
            	if(window.location.toString().indexOf('entered') == -1){
            		$(window.location).attr('href', url+'cookiesDisabled.htm?entered=1'); 
            	}
            	else{
            		$(window.location).attr('href', getPathname()+'cookiesDisabled.htm');
            		
            	}
           }           
        }
 );

function getAbsolutePath() {
    var loc = window.location;
    var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1);
    return loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length));
}
function getPathname(){
	var loc = window.location;
	var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1);	
	return pathName;
}

