
// Javascript for all new Web Designer initiated redirects at NSIDC starting 03.04.08
	
// single page redirects can be deleted after 6 months
	
    // using leading __ to try and reduce possible collisions with other page includes
	var __current_url = document.location.href;
	

    // pages to redirect stored in an array
    // Each entry of the array is itself an array; the [0] element is the "bad" page, the [1] element is the "new" page
    var __bad_pages = new Array(
        new Array('daac/amsre/', 'http://nsidc.org/daac/projects/passivemicro/amsre.html','03.13.08'), // added  3.13.08
		new Array('daac/icesat/', 'http://nsidc.org/daac/projects/lidar/glas.html','03.13.08'), // added  3.13.08
		new Array('daac/modis/', 'http://nsidc.org/daac/projects/visible_infrared/modis.html','03.13.08'), // added  3.13.08
		new Array('daac/scatterometry/', 'http://nsidc.org/daac/projects/activemicro/scatterometry.html','03.13.08'), // added  3.13.08
		new Array('daac/ramp/', 'http://nsidc.org/daac/projects/activemicro/radarsat.html','03.13.08'), // added  3.13.08
		new Array('daac/feedback.html', 'http://nsidc.org/daac/users/feedback.html','03.13.08') // added  3.17.08
		);

   
    // loop through each __bad_pages entry
    for (var __i = 0; __i < __bad_pages.length; __i++) {
		
		// check if the current entry is in the URL; if so, redirect to new page
        if (__current_url.indexOf(__bad_pages[__i][0]) >= 0) {
			window.location = __bad_pages[__i][1];
        }
        
    }

