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.getAttribute("rel") == "nofollow") ) {
			anchor.target = "_blank";
		} else if( anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup") {
			anchor.onclick = function() { window.open(this.href,'_blank',"height=550,width=600,status=no,toolbar=no,menubar=yes,scrollbars=yes,resizable=yes"); return false; };
		}
	}
}
$(document).ready(externalLinks);

$('#bannerfade').cycle({
	fx: 'fade',
	speed: 6000, 
	timeout: 4000
});


$(document).ready( function() {
	$('#aboutoverlaylink').hover(
		function() {
			$('#aboutoverlay').show();
		}, 
		function() {
			$('#aboutoverlay').hide();
		}
	);
	$('#easiwipeoverlaylink').hover(
		function() {
			$('#easiwipeoverlay').show();
		}, 
		function() {
		$('#easiwipeoverlay').hide();
		}
	);
});
