
var xy = 0;
var counter= 10;


// run in the eternal loop
function init() {
	
	xy = 0;
	for ( i = 0; i < 1000; i++) setTimeout( 'scan()', 500);
	
}

function scan() {
	
	//alert( 'I am in scan()');
	
	slide1 = document.getElementById( 'vertical');
	slide2 = document.getElementById( 'horizontal');
	if ( xy < 800) {
		slide1.setAttribute( 'style', 'top:' + xy + 'px;');
		slide2.setAttribute( 'style', 'left:' + xy + 'px;');
		xy++;
	}
	
	
}

function helper( url) {
	window.open( url, 'window_' + counter, "top=100,left=100,width=900,height=500,scrollbars"); 
}

function note( url) {
	window.open( url, 'window_' + counter, "top=100,left=100,width=400,height=400,scrollbars"); 
}

