//if (navigator.appName=="Netscape") document.location = "ie_tab.php";
if (top.location != self.location)
    top.location.href = self.location.href;
if (navigator.cookieEnabled != true) {
    alert("Cookie non autorisé");
}
i = 0;
nbcount = 0;
defaultStatus = "Connection";

NavName = navigator.appName.substring(0, 3);
NavVersion = navigator.appVersion.substring(0, 1);
if (NavName != "Mic" || NavVersion >= 4) {
    entree = new Date;
    entree = entree.getTime();
}
function ZsortIe() {
    if (NavName != "Mic" || NavVersion >= 4) {
	fin = new Date;
	fin = fin.getTime();
	secondes = (fin - entree) / 1000;
	window.defaultStatus = 'Page chargée en ' + secondes + ' seconde(s).';
	// cache("loading");
    }
}

var bookmarkurl = "http://www.lambdaprod.com/";
var bookmarktitle = "Lambda [ PROD ]";

var txt = "Spécialisé dans le Marketing et la communication appliquées aux nouvelles technologies. Réalisation: Internet,Intranet,Audiotel,CD-Rom,DVD... L'agence est organisée en trois départements Conseil, Développements, Medias Production , Environnement de communication.";
var espera = 100;
var refresco = null;
function rotulo_title() {
    document.title = "Agence de Production LAMBDA : [" + Date() + "] - " + txt;
    txt = txt.substring(1, txt.length) + txt.charAt(0);
    refresco = setTimeout("rotulo_title()", espera);
}
if (navigator.appName != "Netscape")
    rotulo_title();

n = (window.document.layers) ? 1 : 0;

function opendiv(urlx, targetx, heightx, widthx) {
    var popup = window
	    .open(
		    urlx,
		    targetx,
		    'toolbar=no,location=no,status=no,toolbar=no,menubar=no,scrollbars=1,titlebar=no,directories=no,resizable=no,hotkeys=no,height='
			    + heightx + ',width=' + widthx);
    popup.resizeTo(widthx, heightx);
    popup.moveTo(0, 0);
    popup.focus();
}
nx = true;
function opensearch() {
    if (nx) {
	document.images['search'].src = '/logos/checkbox_on.png';
	// taillediv('search',document.body.clientHeight-60,160);
	montre('search');
	nx = false;
    } else {
	document.images['search'].src = '/logos/checkbox_off.png';
	// taillediv('search',1,1)
	// openurldiv('search','');
	cache('search');
	nx = true;
    }
}
function opensearchx() {
    if (nx) {
	document.images['search'].src = '/logos/checkbox_on.png';
	var popup = window.open('http://www.lambdaprod.com/?terminalx=robots',
		'_search');
	self.opener = null;
	nx = false;
	void (0);
    } else {
	document.images['search'].src = '/logos/checkbox_off.png';
	self.window.toolbar = 0;
	nx = true;
    }
}
function getNavInfoIndex() {
    this.appname = navigator.appName;
    this.navops = navigator.opsProfile;
    this.navlangue = navigator.userLanguage;
    this.navversion = navigator.appVersion.substring(0, 4);
    this.navcodename = navigator.appCodeName;
    this.navplatform = navigator.platform;
    this.navsecuritys = navigator.securityPolicy;
    this.navplugins = document.plugins;
    this.navfonts = navigator.appFont;
    this.navjavaplug = navigator.javaEnabled();
    this.navcolors = window.screen.colorDepth;
    this.navtypes = navigator.mimeTypes;
    this.preference = navigator.preference;
    if (navigator.appName == "Netscape") {
	this.osname = java.lang.System.getProperty('os.name');
	this.osrch = java.lang.System.getProperty('os.arch');
	this.user = name;
	this.navheight = window.innerHeight;
	this.navwidth = window.innerWidth;
    } else {
	this.osname = "Windows";
	this.osrch = "X86";
	this.user = name;
	this.navheight = document.body.clientHeight;
	this.navwidth = document.body.clientWidth;
    }
    if (navigator.appName != "Netscape") {
	document.body.scroll = "no";
    }
    defaultStatus = "Lambda production (" + this.navlangue + ") : "
	    + this.navwidth + "/" + this.navheight + " " + this.user + " "
	    + this.osname + "=[" + this.navplatform + "-" + this.osrch
	    + "] - User:" + this.user + " Chargements:" + i + " - Nb:"
	    + nbcount++;
    if (navigator.appName != "Netscape")
	document.title = defaultStatus;
    ZsortIe();
}
function openurldiv(id, argv) {
    if (document.getElementById) {
	document.getElementById(id).innerHTML = new document(argv).body.innerHTML;
    } else if (document.all) {
	document.all[id].innerHTML = new document(argv).body.innerHTML;
    } else if (document.layers) {
	document.layers[id].document.open();
	document.layers[id].document.write(new document(argv).body.innerHTML);
	document.layers[id].document.close();
    }
}
function writediv(id, argv) {
    if (document.getElementById) {
	document.getElementById(id).innerHTML = argv;
    } else if (document.layers) {
	document.layers[id].document.open();
	document.layers[id].document.write(argv);
	document.layers[id].document.close();
    } else if (document.all) {
	document.all[id].document.open();
	document.all[id].document.write(argv);
	document.all[id].document.close();
    }
}
function taillediv(id, b, c) {
    if (document.getElementById) {
	document.getElementById(id).style.height = b + "px";
	document.getElementById(id).style.width = c + "px";
    } else if (document.layers) {
	document.layers[id].height = b + "px";
	document.layers[id].width = c + "px";
    } else if (document.all) {
	document.all[id].style.height = b + "px";
	document.all[id].style.width = c + "px";
    }
}
function montre(id) {
    if (document.getElementById) {
	document.getElementById(id).style.display = "block";
    } else if (document.all) {
	document.all[id].style.display = "block";
    } else if (document.layers) {
	document.layers[id].display = "block";
    }
    document.forms[2].pageouvert.value = "0";
}
function cache(id) {
    if (document.getElementById) {
	document.getElementById(id).style.display = "none";
    } else if (document.all) {
	document.all[id].style.display = "none";
    } else if (document.layers) {
	document.layers[id].display = "none";
    }
    document.forms[2].pageouvert.value = "1";
}
function testwin(id) {
    if (document.forms[2].pageouvert.checked == true) {
	cache(id);
	document.forms[2].pageouvert.checked = true;
    } else {
	montre(id);
	document.forms[2].pageouvert.checked = false;
    }
}
function copyright() {
    alert("Copyright : www.LambdaProd.com");
    return true;
}
document.onkeydown = function(e) {
    var etag = "";
    if (navigator.appName == "Netscape") {
	etag = e.which;
    } else {
	etag = event.keyCode;
    }
    if ((etag == "16") | (etag == "17") | (etag == "18") | (etag == "19")
	    | (etag == "27") | (etag == "45") | (etag == "145")) {
	defaultStatus = "Touche de Controle: " + etag;
    } else {
	defaultStatus = "Touche de Claviers Alpha Numerique : " + etag;
    }
    return true;
}
document.onmousedown = function(e) {
    if (event.button > 1)
	copyright();
    return true;
}
document.onmouseover = function(e) {
    return true;
}

function addbookmark() {
    if (document.all)
	window.external.AddFavorite(bookmarkurl, bookmarktitle);
}

objects = document.getElementsByTagName("object");
for ( var i = 0; i < objects.length; i++) {
    objects[i].outerHTML = objects[i].outerHTML;
}

function starting() {
    var Indexer = new getNavInfoIndex();
}

