// ========================================
// 		INTEGRIA
// ========================================
// 		Fait par : Simon Allard
// 		Dernière modification : 15/06/2007
// ========================================

$.integria = {
	init: function() {
		for (module in $.integria) {
			if ($.integria[module].init)
				$.integria[module].init();
		}
	}
};

$.integria.pageheight = {
	init: function() {
		var url = window.location.href;
		var folder = url.substring(url.lastIndexOf('/')-9, url.lastIndexOf('/'));
		if (folder!="mots_cles") {
			var browser = BrowserDetect.browser;
			var version = BrowserDetect.version;
			var y = $('#centre').height();
			var x = $('#colonne-gauche').height();
			if (version < 7) {
				if (y < 473) {
					$('#colonne-gauche').height(x+200);
					$('#colonne-centre').height(x+200);
					$('#colonne-droite').height(x+22);
				} else if (y > 473 && y < 510) {
					if (browser=="Explorer") {
						$('#colonne-gauche').height(x+261);
						$('#colonne-centre').height(x+200);
						$('#colonne-droite').height(x-50);
					} else{
						$('#colonne-gauche').height(x+200);
						$('#colonne-centre').height(x+200);
						$('#colonne-droite').height(x-50);
					}
				} else {
					$('#colonne-gauche').height(x+200);
					$('#colonne-centre').height(x+200);
					$('#colonne-droite').height(x+22);
				}
				if (y > 625) {
					$('#colonne-gauche').height(y+200);
					$('#colonne-centre').height(y+200);
					$('#colonne-droite').height(y+22);
				}
			}
		}
	}
};

$.integria.motscles = {
	init: function(){
		var url = window.location.href;
		var folder = url.substring(url.lastIndexOf('/')-9, url.lastIndexOf('/'));
		if (folder=="mots_cles") {
			var y = $('#centre').height();
			$('#colonne-gauche').height(y+360);
			$('#colonne-centre').height(y+360);
			$('#colonne-droite').height(y+100);
		}
	}
};

$(document).ready($.integria.init);









