<!--
var speed = 20;
var img_cnt = 15;
var start_x = 780; // start at the right most side 780
var end_x = 0; // begining of the #container, make sure to add the width of the image before reseting x coordinate
var img_width = 120; // image width + space
var img_height = 90;
var img_margin = 5; // spacing between images
var flag = true; // flag on mouse over

function popWindowMap(win_n, win_f, win_w, win_h) {
	var winl = (screen.width - win_w) / 2;
	var wint = (screen.height - win_h) / 2;
	var winprops = 'height='+win_h+',width='+win_w+',top='+wint+',left='+winl+',scrollbars=0,menubar=0';
	var win = window.open(win_f, win_n, winprops);
	win.focus();
}
function popWindowProduct(win_n, win_f, win_w, win_h) {
	var winl = (screen.width - win_w) / 2;
	var wint = (screen.height - win_h) / 2;
	var winprops = 'height='+win_h+',width='+win_w+',top='+wint+',left='+winl+',scrollbars=0,menubar=0';
	var win = window.open(win_f, win_n, winprops);
	win.focus();
}
function popWindow(win_n, win_f, win_w, win_h) {
	var winl = (screen.width - win_w) / 2;
	var wint = (screen.height - win_h) / 2;
	var winprops = 'height='+win_h+',width='+win_w+',top='+wint+',left='+winl+',scrollbars=1,menubar=0';
	var win = window.open(win_f, win_n, winprops);
	win.focus();
}
function popWindowInvestment(win_n, win_f, win_w, win_h) {
	var winl = (screen.width - win_w) / 2;
	var wint = (screen.height - win_h) / 2;
	var winprops = 'height='+win_h+',width='+win_w+',top='+wint+',left='+winl+',scrollbars=0,menubar=0';
	var win = window.open(win_f, win_n, winprops);
	win.focus();
}
function initImages() {
	for( var i=0; i<img_cnt; i++ ) {
		var obj = document.getElementById( 'p'+(i+1) ); // defined layer for the images
		obj.style.position = 'absolute';
		if( i==0 ) {
			obj.style.left = end_x;
		} else {
			var obj2 = document.getElementById( 'p'+i ); // get previous image
			var obj2_left = obj2.style.left.substring( 0, obj2.style.left.indexOf('px') ) * 1;
			obj.style.left = obj2_left + ( img_width + img_margin );
		}
	}
	setInterval( 'scrollImages()', speed ); 
}
function scrollImages() {
	for( var i=0; i<img_cnt; i++ ) {
		var obj = document.getElementById( 'p'+ (i+1) ); // get previous image
		var obj_left = obj.style.left.substring(0, obj.style.left.indexOf('px')) * 1; // multiply by 1 to change it to number

		if( (obj_left + img_width) < end_x ) {
			var obj2 = document.getElementById( 'p'+ ((i==0) ? img_cnt : i) ); // get previous image
			var obj2_left = obj2.style.left.substring( 0, obj2.style.left.indexOf('px') ) * 1; // multiply by 1 to change it to number
			obj_left = obj2_left + ( img_width + img_margin ); // move at the end of the left most image
			obj.style.left = obj_left;
		}
		if( flag ) {
			obj.style.left = obj_left-1;
		}
	}
}
-->
