/**
 * Fichier de parametrage du site SIE Corse.
 *
 * File : inc/findepage-accueil.inc.js
 *
 * PHP version 4
 *
 * LICENSE: Ce programme est mis à disposition selon le Contrat Creative Commons
 * Paternitéon Commercial-ShareAlike 2.0 France disponible en ligne 
 * http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ ou par courrier postal à 
 * Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
 *
 * @category   Sites Web des Systemes d'Information sur l'Eau des bassins RM et Corse
 * @author     Estelle Grand <estelle.grand@apx.fr> - APX
 * @copyright  2009 Agence de l'eau Rhone-Mediterranee et Corse
 * @license    http://creativecommons.org/licenses/by-nc-sa/2.0/fr/  Creative Commons Paternite-NonCommercial-ShareAlike 2.0 France
 * @version    1.0.0 du 03/12/2009
 */
 
$(document).ready(function()
{
	//Pour page accueil
	$("h2.titreVert").corner("dog tr").corner("round tl 3px"); 
	$("h2.titreRouge").corner("dog tr").corner("round tl 3px"); 
	$("h2.titreBleu").corner("dog tr").corner("round tl 3px"); 
	$("h2.titreOrange").corner("dog tr").corner("round tl 3px");
	$("h2.titreMauve").corner("dog tr").corner("round tl 3px");
} );


$(document).ready(function()
{
	$('a').filter(
		function()
		{
			return this.hostname 
					&& (this.href == location.href) ;
		}
	).addClass('linkselected');
	$('a').filter(
		function()
		{
			return this.href 
					&& (this.hostname !== location.hostname) 
					&& this.hostname!='sierm.eaurmc.fr' 
					&& this.hostname!='www.actus.rhone-mediterranee.eaufrance.fr'
					&& this.hostname!='www.bsh.rhone-mediterranee.eaufrance.fr';
		}
	).addClass('external');
	$('a').filter(
		function()
		{
			return this.hostname 
					&& (this.hostname !== location.hostname) 
					&& this.hostname!='sierm.eaurmc.fr' 
					&& this.hostname!='www.actus.rhone-mediterranee.eaufrance.fr'
					&& this.hostname!='www.bsh.rhone-mediterranee.eaufrance.fr';
		}
	).attr('target','_blank');
});
