$j = jQuery.noConflict();

var $_GET = {};

document.location.search.replace(/\??(?:([^=]+)=([^&]*)&?)/g, function () {
    function decode(s) {
        return decodeURIComponent(s).replace(/\+/g, " ");
    }

    $_GET[decode(arguments[1])] = decode(arguments[2]);
});

$j(document).ready(function(){
	if($_GET['download'] && $_GET['file']){
		var anchor = $j('a[href*=' + $_GET['file'] + ']');
		document.location = anchor.attr('href');
	}
});