

if(prototype == 1) {
	Event.observe(window, 'load', function() {
	    $$('a[rel="external"]').each(function(link){
	        if(link.readAttribute('href') != '' && link.readAttribute('href') != '#'){
	            link.writeAttribute('target','_blank');
	        }
	    });
	});
}


function flash(page, target ) {
	
	var url 	= domain+"?page=AJAXdj&f="+page;
	
	$.get(url, "", function(data) {
		
		if(page == "charts" || page == "links" || page == "bio" || page == "guestbook") {
			
    		$("#"+target).html(data);
 
    		$("#"+target).css({"height" : "400px" });
		}
		else {
			$("#"+target).hide();
			$("#"+target).html(data);
    		$("#"+target).slideDown("slow");
		}
  	});
}
