var loaded	= false;
var Culture	= 'FR' ;
var Culture_Redirect = Culture;

try
{
	var locat= self.top.location.pathname;
	var P1_locat= locat.lastIndexOf('/');
	var locat2= locat.substr(0,P1_locat);
	Culture	= locat2.substr(locat2.lastIndexOf('/')+1,P1_locat).toUpperCase();
	Culture_Redirect= locat2.substr(locat2.lastIndexOf('/')+1,P1_locat);
}
catch (e)
{

}

if (Culture.length>2) Culture= Culture.substr(0,2);

var Type_Product= 'Hermes_Net';

var ie5 		= document.all != null && document.getElementsByTagName != null;
var ie7 		= navigator.appVersion.indexOf("MSIE 7.0") > 0;
var __isSafari 		= navigator.userAgent.toLowerCase().indexOf('safari') != -1;
var gecko 		= navigator.userAgent.toLowerCase().indexOf('gecko') != -1;
var browserPngSupport 	= ie7 || gecko;

var abspath = "/_net/"; var abswebservice = "/_net/BackEnd_WS/BackEndWS.asmx";

function VoIP_Call_Center_Software(In)
{
	try
	{
		var res = Array_Translation[In];
		if (!res) return In; else return res;
	}
	catch (e)
	{
		return In;
	}
}

function DisplayCulture(p)
{
	if (p!='')
		document.getElementById("display_culture").src = "../img/dr_" + p + ".gif";
	else
		document.getElementById("display_culture").src = "../img/s.gif";

}

function ChangeCulture(p)
{
	var Page_Location = document.location.href;
	Page_Location = Page_Location.replace('/' + Culture_Redirect + '/' , '/' + p + '/')
	document.location.href = Page_Location;
}

