window.onload = function () {
	
	document.getElementById('crosslink').onmouseover = slideout;
	document.getElementById('crosslink').onmouseout = slideback;
	
	return true;
	
}

xPos = -19;

function slideout() {
	
	//if (xPos > -19) {
	
	//xPos = -19
		
	//}
	
	//clearTimeout(timer2);
	
	xPos += 2;
	document.getElementById('crosslink').style.right = xPos+'px';
	timer = setTimeout(slideout, 1);
	
	if (xPos >= -1) {
	
		clearTimeout(timer);
		
	}
	
	return true;
	
}

function slideback() {
	
	clearTimeout(timer);
	
	xPos -= 2;
	document.getElementById('crosslink').style.right = xPos+'px';
	timer2 = setTimeout(slideback, 1);
	
	if (xPos <= -19) {
	
		clearTimeout(timer2);
		
	}
	
	return true;
	
}
