function setlocale(locale){
	document.f_select_language.locale.value=locale;
	document.f_select_language.submit();
}

/* images slideshow */
var imagesInterval = null;

function imagesMove( type , cont){	
	cont = document.getElementById( cont );
	if (!type){
		if (cont.scrollLeft > 0) cont.scrollLeft -= 2;
	} else {
		cont.scrollLeft += 2;
	}
}

function imagesMoveStart( type , cont){
	imagesInterval = setInterval( "imagesMove( "+type+" ,'"+cont+"')", 8 );
}

function imagesMoveStop(){
	clearInterval( imagesInterval );
	imagesInterval = null;
}
/* /images slideshow */

function getBaseURL(){
	// Get document base path
	documentBasePath = document.location.href;
	if (documentBasePath.indexOf('?') != -1)
		documentBasePath = documentBasePath.substring(0, documentBasePath.indexOf('?'));
	documentBasePath = documentBasePath.substring(0, documentBasePath.lastIndexOf('/'));
	return( documentBasePath );
}
