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")=="ext")
			anchor.target = "_blank";
	}
}

function getObj(name){
  	if(document.getElementById){
  		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	}
}



var lefter = 0;
var amount = -10;
var motto;

function realscroll(){
	if (!document.getElementById) return;
	lefter += amount;
	if(lefter< -430 || lefter > -5){
		amount = -amount;
	}
	motto.style.left = lefter + 'px';
	time = setTimeout('realscroll()',100);
}

function stopScroll(){
	if(time) clearTimeout(time);
}

function init(){
	motto = new getObj('motto');
}

function dothings(){
	externalLinks();
	init();
	realscroll();
}

window.onload = dothings;

