
function HideIt(id)
{
//SquishIt('content1') ;
//effct = "Effect.Appear(\'content2\', {duration:.3})" ;
//window.setTimeout(effct ,2500);


//alert(document.getElementById('content1').style.display);

//alert(document.getElementById('content2').style.display);*

//alert(id);

//	document.getElementById("ImagePort").src="imgs/"+nador+".gif" ; 
//		window.setTimeout(effct ,1000);
//setContent(id);

Initilize();

effct = "Effect.Appear(\'"+id+"\', {duration:.3})" ;
window.setTimeout(effct ,1500);


}

 function SquishIt(id)
 {
    new Effect.Squish(id, {duration:.3});
    return true ;
 }
 
 
 
function setContent(id)
{

    if (document.getElementById('content1').style.display=='')
    {
    SquishIt('content1') ;
	effct = "Effect.Appear(\'content2\', {duration:.3})" ;
	document.getElementById("ImagePort").src="imgs/"+id+".gif" ; 
	window.setTimeout(effct ,1500);
 
    }
    else 
    {
   // document.getElementById("ImagePort").src="imgs/"+id+".gif" ; 

SquishIt('content2') ;
effct = "Effect.Appear(\'content1\', {duration:.3})" ;
window.setTimeout(effct ,1500);

    }
    
    
     
}


function Show(id)
{

effct = "Effect.Appear(\'"+id+"\', {duration:.3})" ;

}
function Initilize()
{
     if (document.getElementById('casa').style.display=='')
     {
        SquishIt('casa') ;
   
     }
     if (document.getElementById('nador').style.display=='')
     {
           SquishIt('nador') ;

     }
     if (document.getElementById('tanger').style.display=='')
     {
         SquishIt('tanger') ;
  
     }
     
      if (document.getElementById('mohammedia').style.display=='')
     {
        SquishIt('mohammedia') ;
   
     }
     if (document.getElementById('jorf').style.display=='')
     {
           SquishIt('jorf') ;

     }
     if (document.getElementById('safi').style.display=='')
     {
         SquishIt('safi') ;
  
     }


 if (document.getElementById('agadir').style.display=='')
     {
        SquishIt('agadir') ;
   
     }
     if (document.getElementById('dakhla').style.display=='')
     {
           SquishIt('dakhla') ;

     }
     if (document.getElementById('laayoune').style.display=='')
     {
         SquishIt('laayoune') ;
  
     }

     

}
