   
         $(document).ready(function () { 		
      
      
      	 $("#reset").click(
								function(){
									
                     $("#block_reportez").slideUp("slow");
                     
								}
					);
			         
         $("#lien_reportez").click(
								function(){
										if ($("#block_reportez:first").is(":hidden")) {
										var ie7 = (document.all && !window.opera && window.XMLHttpRequest) ? true : false;
                      if(ie7)  $("#block_reportez").show("slow");
                      else $("#block_reportez").slideDown("slow");

                    } else {
                      $("#block_reportez").slideUp("fast");
                    }

										
								}
					);
					
					$("#typeTexte1").click(
								function(){
										$("#formtexte1").slideDown("fast");
                    				$("#formvideo1").slideUp("fast");
                    				document.getElementById("contenu1_texte").value = 'Citation (max. 255 caracteres)';
								}
					);
					
					$("#typeVideo1").click(
								function(){
										$("#formtexte1").slideUp("fast");
                    $("#formvideo1").slideDown("fast");
                    document.getElementById("contenu1_video").value = 'Collez ici le code du lecteur exportable';
								}
					);
					
					$("#typeTexte2").click(
								function(){
										$("#formtexte2").slideDown("fast");
                    $("#formvideo2").slideUp("fast");
                    document.getElementById("contenu2_texte").value = 'Citation (max. 255 caracteres)';
								}
					);
					
					$("#typeVideo2").click(
								function(){
										$("#formtexte2").slideUp("fast");
                    $("#formvideo2").slideDown("fast");
document.getElementById("contenu2_video").value = 'Collez ici le code du lecteur exportable';
								}
					);
					
					});
					
					function fixHeight(classe)
					{
					   
						$("."+classe).equalHeights(100);
            		
            		/* if(document.getElementById(id1).offsetHeight < document.getElementById(id2).offsetHeight)
					     document.getElementById(id1).style.height = document.getElementById(id2).offsetHeight + 'px';
					       
					   if(document.getElementById(id1).offsetHeight > document.getElementById(id2).offsetHeight)
					       document.getElementById(id2).style.height = document.getElementById(id1).offsetHeight + 'px' ;
					     */
					     //alert(id1 + ':' + document.getElementById(id1).style.height + ' | ' + id2 + ':' + document.getElementById(id2).style.height);
					}
					
					function verticalCentering(idElem, dynVar){
   					 if (document.getElementById) {
        
       						 if (typeof dynVar == 'string') heightParent = document.getElementById(dynVar).offsetHeight;
        						else  heightParent = dynVar;
        
        						elem     =  document.getElementById(idElem);
        						elemHeight   =  elem.offsetHeight;
        
       					 if (heightParent - elemHeight > 0) {
            					elem.style.position = 'relative';
            				elem.style.top = ((heightParent / 2) - (elemHeight / 2)) -10 + 'px';
       				 }
       				 else elem.style.position = 'static';
    }
}
					