
function redirect() {
	window.location = "http://www.google.com";
}



function google_afd_ad_request_done(resp) {
	if (!resp) return;
	if (resp.error_code) return;
	
	site.rendered = true;
	
	var status = [];
	
	if (resp.needsreview) {
		status.push('needsreview');
	}
	if (resp.faillisted) {
		status.push('faillisted');
	}
	if (resp.adult != site.adult) {
		status.push('adult');
	}
	
	if (status.length > 0) {
		$.get("/unique/status.js", {'status': status.toString(), 't': site.t} );
	}
	
	if (resp.faillisted) {
		return;
	}
	
	if (typeof(js_debug) != 'undefined') {
		if (resp.request) {
			$.each(resp.request, function(key, val) {
				var row = $('<tr/>');
				
				$('<td/>').text(key).appendTo(row);
				$('<td/>').text(val).appendTo(row);
				
				$('#ggl_response_vars').append(row);
			});
		}
		if (resp.ads) {
			$('#ggl_adcount').text(resp.ads.length);
		}
		if (resp.link_units) {
			$('#ggl_relcount').text(resp.link_units.length);
		}
		if (resp.categories) {
			$('#ggl_catcount').text(resp.categories.length);
		}
	}
	if (js_targets.results && js_targets.results.length > 0) {
		$.each(js_targets.results, funct