// old-school js
function hover(element, img_name, active)
{
	if(active) {
		element.src= '/content/images/' + img_name + '_active.png';
	} else {
		element.src= '/content/images/' + img_name + '.png';
	}
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
/*
// ya, some jquery shiznit rite here, lawl
$(document).ready(function() {
	$("a.internal-link").each(function() {
		var $link = this;
		$("#"+$link.id).click(function(e) {
			e.preventDefault();

			$.ajax({
				url: "/get.php?p="+$link.id,
				dataType: "html",
				type: "GET",
				async: true,
				success: function(data) {
					$("#containerright-inside").css({opacity:0}).html(data).fadeTo("normal", 1);
					$("#containerright").animate({scrollTop: 0}, 500);
				},
				error: function() {
					document.location = $link.href;
				}
			});
		});
	});
});
*/

