<!-- Hide script from older browsers
var curUrl
var protName = window.location.protocol
var hostName = window.location.host
var fileName = window.location.pathname

curUrl = getCountry(window.location.pathname)

////----- Flag output ------------------------------------------------------
document.write("<table border=0 cellspacing=0 cellpadding=0>")
document.write("<tr>")
	document.write("<td>")
		document.write("<a href=../../ROL" + getLoc(window.location.pathname) + "?idIdioma=0><img src=" + protName + "//" + hostName + "/img_nav/bandera_cat_p.gif width=27 height=21 border=0 alt='Versió catalana'></a>")
	document.write("</td>")
	document.write("<td>")
		document.write("<a href=../../ROL" + getLoc(window.location.pathname) + "?idIdioma=2><img src=" + protName + "//" + hostName + "/img_nav/bandera_ing_p.gif width=30 height=21 border=0 alt='English version'></a>")
	document.write("</td>")
	document.write("<td>")
		document.write("<a href=../../ROL" + getLoc(window.location.pathname) + "?idIdioma=1><img src=" + protName + "//" + hostName + "/img_nav/bandera_esp_p.gif width=29 height=21 border=0 alt='Versión española'></a>")
	document.write("</td>")
	document.write("<td>")
		document.write("<a href=../../ROL" + getLoc(window.location.pathname) + "?idIdioma=3><img src=" + protName + "//" + hostName + "/img_nav/bandera_fra_p.gif width=29 height=21 border=0  alt='Version française'></a>")
	document.write("</td>")
	document.write("<td>")
		document.write("<a href=../../ROL" + getLoc(window.location.pathname) + "?idIdioma=4><img src=" + protName + "//" + hostName + "/img_nav/bandera_ita_p.gif width=29 height=21 border=0  alt='Italiano'></a>")
	document.write("</td>")
document.write("</tr>")
document.write("</table>")
////----- End of output ---------------------------------------------------


////----- Functions used --------------------------------------------------
function getLoc(str)
{
	return(str.substring(4, str.length));
}
function getCountry(str)
{
	return(str.substring(1,4));
}
////----- End of functions -------------------------------------------------

	////-------- End of current script ---------------------------------------------------------------
	//
	//		//...................................................
	//		//for ev. later use, to get instr or variable strings
	//		//...................................................
	//		//function delineate(str)
	//		//{
	//		//theleft = str.indexOf("/") + 5;
	//		//theright = str.lastIndexOf("/");
	//		//return(str.substring(theleft, theright));
	//		//}
	//
	//		//function delineate3(str)
	//		//{
	//		//theleft = str.indexOf("/") + 1;
	//		//theright = str.lastIndexOf("/");
	//		//return(str.substring(theright + 1, str.length));
	//		//}
	//		//...................................................
	//



//End of hiding script for older browsers

