			// GESTION des images survolés -------------------------
		   function loading() {
                if($('cadreauto_cube').style.display != 'none')
                {
                    $('cadreauto_cube').style.display = 'none';
		    $('cadreauto_xiti').style.display = 'none';
                    $('cadreauto').className = 'cadreauto';
                }
                
                if($('cadreimmo_cube').style.display != 'none')
                {
                    $('cadreimmo_cube').style.display = 'none';
		    $('cadreimmo_xiti').style.display = 'none';
                    $('cadreimmo').className = 'cadreimmo';
                }
                
                if($('cadrevacances_cube').style.display != 'none')
                {
                    $('cadrevacances_cube').style.display = 'none';
		    $('cadrevacances_xiti').style.display = 'none';
                    $('cadrevacances').className = 'cadrevacances';
                }
				
				$('cadreservice').className = 'cadreservice';
				$('cadreanimaux').className = 'cadreanimaux';
				$('cadreaffpro').className = 'cadreaffpro';

				/* mdf home onglets AnnimoS */
				$('cadreanimaux_lib').style.display = 'block';
				$('cadreservice_lib').style.display = 'block';
				$('cadreaffpro_lib').style.display = 'block';
				$('cadreanimaux_over').style.display = 'none';
				$('cadreservice_over').style.display = 'none';
				$('cadreaffpro_over').style.display = 'none';
				/* FIN mdf home onglets AnnimoS */
            }
            
			// GESTION des cubes Auto, Immo, Vacances -------------------------
            function displaying(id) {
                $(id+'_cube').style.display = 'block';
                $(id+'_xiti').style.display = 'block';
                $(id).className = id+"_over";
            }
			
			// GESTION des cubes Services, Animaux, Aff de pro ----------------
            function displayingbeta(id) {
                $(id).className = id+"_over";
				/* mdf home onglets AnnimoS */
                $(id+'_lib').style.display = 'none';
				$(id+'_over').style.display = 'block';
				/* FIN mdf home onglets AnnimoS */
            }	
					
			// Changement de l'image poster une annonce -----------------------
			function changeimg(id) {$(id).src = '/communfo/img/images2008/annonce_over.png';}
			function changeimgbeta(id) {$(id).src = '/communfo/img/images2008/annonce.png';}
			
			// GESTION des liens sur une DIV ----------------------------------
			function liensurblock(destination) {
				window.location.href = destination;
			}





function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
			
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Les annonces de la Depeche de Tahiti","http://www.annonces.ladepeche.pf",""); }
else { window.external.AddFavorite("http://www.annonces.ladepeche.pf","Les annonces de la Depeche de Tahiti"); } }

function compter(f) {
	var txt=f.texte.value;
	var nb=txt.length;
	f.nbcar.value=nb+1;
}

function timer() {
	compter(document.forms["publier_pa"]);
	setTimeout("timer()",100);
}

