function externalLinks01() {
	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") == "popup"){
			winPop01(anchor);
		}
	}
}
function winPop01(element){
	var link = element.getAttribute('href');
	element.onclick = function(){
		var wo = window.open(link,"popWin","width=590,height=595,status=yes,resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes");
		return false;
	}
}


function externalLinks02() {
	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") == "popup02"){
			winPop02(anchor);
		}
	}
}
function winPop02(element){
	var link = element.getAttribute('href');
	element.onclick = function(){
		var wo = window.open(link,"popWin","width=780,height=650,status=yes,resizable=yes,toolbar=yes,menubar=yes,scrollbars=yes");
		return false;
	}
}
function setJS(){
	smartRollover();
	externalLinks01();
	externalLinks02();
}

function winopen(url){
	window.open(url,"_blank");
	//return false;
}
window.onload = setJS;