/*
* Le code suivant va apprendre la balise blink à IE
*/
if ( document.all )
{
	function blink_show()
	{
		blink_tags  = document.all.tags('blink');
		blink_count = blink_tags.length;
		for ( i = 0; i < blink_count; i++ )
		{
			blink_tags[i].style.visibility = 'visible';
		}
		
		window.setTimeout( 'blink_hide()', 700 );
	}
	
	function blink_hide()
	{
		blink_tags  = document.all.tags('blink');
		blink_count = blink_tags.length;
		for ( i = 0; i < blink_count; i++ )
		{
			blink_tags[i].style.visibility = 'hidden';
		}
		
		window.setTimeout( 'blink_show()', 250 );
	}
	
	window.onload = blink_show;
}



function ShowPhoto (prefixe)
{
   nb = 0;
   if (prefixe == 'random') {
      num = parseInt (Math.random () * 8);
      switch (num) {
         case 1 : tmpprefixe = 'paysage'; break;
         case 2 : tmpprefixe = 'briere_1'; break;
         case 3 : tmpprefixe = 'briere_2'; break;
         case 4 : tmpprefixe = 'marais'; break;
         case 5 : tmpprefixe = 'table'; break;
         case 6 : tmpprefixe = 'chambres'; break;
         case 7 : tmpprefixe = 'briere_1'; break;
         default : tmpprefixe = 'longere'; break;
      }
   }
   else
      tmpprefixe = prefixe;
   
   if (tmpprefixe == 'paysage') nb = 8;
   if (tmpprefixe == 'marais') nb = 8;
   if (tmpprefixe == 'briere_1') nb = 8;
   if (tmpprefixe == 'briere_2') nb = 8;
   if (tmpprefixe == 'longere') nb = 4;
   if (tmpprefixe == 'chambres') nb = 8;
   if (tmpprefixe == 'longere') nb = 4;
   if (tmpprefixe == 'table') nb = 6;
   document.write ("<td valign='top' bgcolor='#606060' align='center' width='220'>\n");
   document.write ("<br>\n");
   document.write ("<table width='100%' cellpadding='0'>\n");
   document.write ("<tr height='350'>\n");
   document.write ("<td bgcolor='#606060' width='100%' valign='center' align='center'>\n");
   
   if (nb != 0) {
	   num = Math.random () * nb + 1;
	   document.write ("<img width='200' src='images/photos/small/photo_"+tmpprefixe+"_"+parseInt(num)+".jpg'>");
	   document.write ("<br><br>");
      num = num + 1;
	   if (num > nb) num = 1;
	   document.write ("<img width='200' src='images/photos/small/photo_"+tmpprefixe+"_"+parseInt(num)+".jpg'>");
	   document.write ("<br><br>");
      num = num + 1;
	   if (num > nb) num = 1;
	   document.write ("<img width='200' src='images/photos/small/photo_"+tmpprefixe+"_"+parseInt(num)+".jpg'>");
      document.write ("<br><br><center><a href='frame_photos.html'><font size='1' color='#FFFFFF'>voir d'autres photos</font></a></center>");
   }
   else {
      document.write ("Bientôt des Photos...\n");
   }
	
   document.write ("<br>\n");
   document.write ("</td>\n");
   document.write ("</tr>\n");
   document.write ("</table>\n");
   document.write ("<br>\n");
   document.write ("</td>\n");
   document.write ("<td bgcolor='#FFFFFF' width='3'>&nbsp;</td>\n");
}

function PrintFooter ()
{
   document.write ("<font size='2' face='arial' color='#FCD2D4'>\n");
   document.write ("La Musardise 47 rue du Mené 44350 Guérande - Tél:02.40.61.90.50 - Mobile:06.83.01.38.95\n");
   document.write ("&nbsp;&nbsp;&nbsp;<a target='_blank' href='brochure-2012.pdf'><font color='white'><b>Télécharger la brochure</b></font></a>\n");
   document.write ("</font>\n");
}

function JumpLine (percent)
{  
   document.write ("<p height='"+percent+"%'></p>\n");
}

