function showDhtml(){
	window.scrollTo(0,0);
	if (document.getElementById('div_girls'))
		document.getElementById('div_girls').style.zIndex = '400';

	if (navigator.userAgent.indexOf("MSIE 6") != -1 && navigator.userAgent.indexOf("MSIE 7") == -1 ) {

	}
	else {
		if (document.getElementById('overlay'))
			document.getElementById('overlay').style.display = 'block';
		
		if (document.getElementById('dhtml_texte'))
			document.getElementById('dhtml_texte').style.display = 'block';
	}	
}

function showDhtmlYes(tracker,contact_mail){
	window.scrollTo(0,0);
	if (navigator.userAgent.indexOf("MSIE 6") != -1 && navigator.userAgent.indexOf("MSIE 7") == -1 ) {

	}
	else {
		if (document.getElementById('overlay'))
			setTimeout("document.getElementById('overlay').style.display = 'block'",1000);
		
		if (document.getElementById('lien_camsympa')) {
			document.getElementById('lien_camsympa').href = "/index.php?p=05&tracker="+tracker+"&contact_mail="+contact_mail;
		}
		
		if (document.getElementById('dhtml_yes'))
			setTimeout("document.getElementById('dhtml_yes').style.display = 'block'",1000);			
	}	
}


function hideDhtml(){
	if (document.getElementById('overlay'))
		document.getElementById('overlay').style.display = 'none';
	
	if (document.getElementById('dhtml_texte'))
		document.getElementById('dhtml_texte').style.display = 'none';
	
	if (document.getElementById('dhtml_yes'))
		document.getElementById('dhtml_yes').style.display = 'none';
	
	if (document.getElementById('div_girls'))
		document.getElementById('div_girls').style.zIndex = '1000';
}

var TouchKeyDown = 0;
var TouchKeyPress = 0;
var TouchKeyUp = 0;
function func_KeyDown(event){
TouchKeyDown = (window.Event) ? event.which : event.keyDown;
}
function func_KeyPress(event){
TouchKeyPress = (window.Event) ? event.which : event.keyPress;
}
function func_KeyUp(event){
TouchKeyUp = (window.Event) ? event.which : event.keyDown;
if (TouchKeyDown > 0){
	if (TouchKeyDown == 27) {
		hideDhtml();
	}
}
TouchKeyDown = 0;
TouchKeyPress = 0;
TouchKeyUp = 0;
} 
