

/**
 * Closure oo0 !_! 0oo
 */
(function() {
	var window = this,
			// raccourcis
			STYLE = 'style', BG = 'background';

	window.openBigImage = function(photo) {
		var wnd = window.open('', 'chargement', 'scrollbars=no, width=' + 40 + ', height=' + 40),
				// raccourcis
				doc = wnd.document, wrt = 'write';
		// FIXME peut-etre de meilleure méthode pour afficher 'photo' dans une fenetre... (div flottant, URL, ... mais pas document.write() GRRR !)
		doc[wrt]('<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n');
		doc[wrt]('<html><head><title>Easyvoyage</title></head><body style=\"margin: 0\">');
		doc[wrt]('<style type=\"text/css\">');
		doc[wrt]('#closePopup {position:absolute; top:0; right:0;}');
		doc[wrt]('<\/style>');
		doc[wrt]('<a href=\"javascript:window.close();\">');
		doc[wrt]('<img name=\"imageMax\" src=\"'+ photo + '\" border=\"0\" onLoad=\"self.resizeTo((imageMax.width+7),(imageMax.height+85))\" \/><\/a>');
		doc[wrt]('<table width=\"100%\"><tr><td align=\"center\"><a href=\"javascript:window.close();\">');
		doc[wrt]('<img id=\"closePopup\" src=\"\/base\/imgs\/closePopup.gif\" border=\"0\" /><\/a><\/td><\/tr><\/table>');
		doc[wrt]('<\/body><\/html>');
		doc.close();
	};

	window.clik = function(parametre) {
		window.location.href = parametre;
	};

	window.clikOpen = function(parametre) {
		var wnd = window.open(parametre);
		if (wnd) {
			wnd.focus();
		}
	};

	window.pbClik = function(parametre1, parametre2) {
		window.xt_clic('S', '0', parametre2);
		var wnd = window.open(parametre1);
		if (wnd) {
			wnd.focus();
		}
	};

	window.bpOver = function(tag) {
		tag[STYLE][BG] = '#FC7BAE';
	};

	window.bpOut = function(tag) {
		tag[STYLE][BG] = '#FFD6E6';
	};

	window.menuOver = function(tag) {
		tag[STYLE][BG] = '#66CCCC';
	};

	window.menuOut = function(tag) {
		tag[STYLE][BG] = '#006666';
	};

	window.mOver = function(tag) {
		tag[STYLE][BG] = '#FFE4BB';
	};

	window.mOut = function(tag) {
		tag[STYLE][BG] = '#FFFFFF';
	};

	window.fOver = function(tag) {
		tag[STYLE][BG] = '#66CCCC';
	};

	window.fOut = function(tag) {
		tag[STYLE][BG] = '#CCFFFF';
	};

	window.bOver = function(tag) {
		tag[STYLE][BG] = '#FFD6E6';
	};

	window.bOut = function(tag) {
		tag[STYLE][BG] = '#FFFFFF';
	};
}());

