/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var HV_Serveur_debug="no";

/*function HV_Frame_GetHeight(){

	if (HV_Serveur_debug == "yes") alert('HV_Frame_GetHeight');
	var lo_height = 0;
	var current = this;
	
	if (current.contentDocument && current.contentDocument.body.offsetHeight) //ns6 syntax
		lo_height = current.contentDocument.body.offsetHeight; 
	else if (current.Document && current.Document.body.scrollHeight) //ie5+ syntax
		lo_height = current.Document.body.scrollHeight;
	
	if (HV_Serveur_debug == "yes") alert('Fin HV_Frame_GetHeight : '+ lo_height);
	
	return lo_height;
}*/

function HV_Recalcul_Domain() {
	try {
		if (!DoNotRecalculDomain) DoNotRecalculDomain = false;
	} catch(e) {
		DoNotRecalculDomain = false;
	}
	
	if (HV_Serveur_debug == "yes") alert('Debut HV_Recalcul_Domain : ' + document.domain);
	
	if (DoNotRecalculDomain != true) {
		var la_domain = new String(document.domain).split('.');
		if (la_domain.length >= 2) document.domain = la_domain[la_domain.length - 2] + '.' + la_domain[la_domain.length - 1];
	}
		
	if (HV_Serveur_debug == "yes") alert('Fin HV_Recalcul_Domain : ' + document.domain);
}

HV_Recalcul_Domain();