function init(){
	if (!document.getElementsByTagName) return;
	imgArray = document.getElementsByTagName("img");
		for (i=0;i<imgArray.length;i++){
			if(imgArray[i].alt!=-1) imgArray[i].title=imgArray[i].alt;
		}
	aArray = document.getElementsByTagName("a");
		for (i=0;i<aArray.length;i++){
			if(aArray[i] && aArray[i].href && !aArray[i].title && aArray[i].childNodes[0])	aArray[i].title = aArray[i].childNodes[0].nodeValue;
		}
}

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";
		}
	}
}

function PopItUp(src,w,h,s,r) {
	(s)?(w=w+17):w;
	(!r)?(r=0):(r=1);
	Popwin = window.open(src,"popwin","toolbar=0,width=" + w + ",height=" + h + ",location=0,directories=0,status=0,scrollbars="+s+",menubar=0,resizable="+r+",copyhistory=0");
	Popwin.focus();
	return false;
}

function getUrl(obj){
	selectedObj=obj.options[obj.selectedIndex].value;
	if(selectedObj!="blank" && document.location.href!=selectedObj){
		document.location.href=selectedObj;
	}
	return true;
}

window.onload = function() {
	init();
	externalLinks();
}