function showSub() {
	var container = document.getElementById('submenu');
	container.style.display = "block";
}
function hideSub() {
	var container = document.getElementById('submenu');
	container.style.display = "none";
}
function new_window(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,left=170,top=20,width=530,height=430");
}

function scroolBy(direction, howmuch, varid) {
	var curent = document.getElementById('img_scrol_' + varid + '').scrollLeft; 
	var newval = 0;
	var chby = parseInt(howmuch);
	if(direction=='left') {
		var newval = (curent+chby);
		document.getElementById('img_scrol_' + varid + '').scrollLeft = newval;
	}
	if(direction=='right') {
		var newval = (curent-chby);
		document.getElementById('img_scrol_' + varid + '').scrollLeft = newval;
	}
	
}

function scrollLeftme(varid) {
	moveleft = setInterval("scroolBy('left', " + 12 + ", " + varid + ")", 100);
}

function scrollRightme(varid) {
	moveright = setInterval("scroolBy('right', " + 12 + ", " + varid + ")", 100);
}

function StopScroll(what) {
	var newwhat = eval(what);
	clearInterval(newwhat);
}
