    var old_match_id='';
    var old_frame_id='';
    function reloadIframe(frame_id,url, position, match_id, url_images)
    {
    
    	var fleche_gauche = url_images+'/images/widget/fleche_left.gif';
    	var fleche_droite = url_images+'/images/widget/fleche_right.gif';

    	// deux tests:
    	// le src de liframe document.getElementById(frame_id).src
    	// le display none ou pas none de liframe document.getElementById(frame_id).style.display

    	if (old_match_id != match_id)
    	{
    	
    		if (document.getElementById(frame_id).src != url )
    		{
        		document.getElementById(frame_id).src=url;
			}
			
    		if (position == 'left')
    		{
    			if (old_match_id != '') 
    			{
        			document.getElementById('apl_iconeFleche_'+old_match_id).style.backgroundImage = 'url('+fleche_gauche+')';
        		}
        		document.getElementById('apl_iconeFleche_'+match_id).style.backgroundImage = 'url('+fleche_droite+')';			
    		}
    		else
    		{
    			if (old_match_id != '') 
    			{
    				document.getElementById('apl_iconeFleche_'+old_match_id).style.backgroundImage = 'url('+fleche_droite+')';
    			}
    			document.getElementById('apl_iconeFleche_'+match_id).style.backgroundImage = 'url('+fleche_gauche+')';			
    		}
    		Effect.Appear('main_iframe');
    		old_match_id = match_id;
		}
		else
		{
			if (position == 'left')
    		{
        		document.getElementById('apl_iconeFleche_'+match_id).style.backgroundImage = 'url('+fleche_gauche+')';			
    		}
    		else
    		{
    			document.getElementById('apl_iconeFleche_'+match_id).style.backgroundImage = 'url('+fleche_droite+')';
    		}
    		old_match_id ='';
    		Effect.Fade('main_iframe');
		}
    }
document.write('	<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://www.allomatch.com/sf/prototype/js/prototype.js\"></script>	<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://www.allomatch.com/sf/prototype/js/effects.js\"></script>	<script type=\"text/javascript\" language=\"JavaScript\" src=\"http://www.allomatch.com/js/scriptaculous_plugins.js\"></script><style>#apl{  height: 0;  width: 0;  display: none;}#new_apl *{	padding: 0;	margin: 0;	border: 0;	list-style: none;	color: black;	z-index: 100;	font-family: Verdana, Arial, Helvetica, sans-serif;  font-size: 11px;	text-align: center;}#amwidget body{  background: transparent;	}#new_apl{  height: 452px;}#new_apl a#apl_link_integration{  position: absolute;  bottom: 4px;  left: 0; 	width: 100%;	color: black;  font-weight: bold;  text-decoration: underline;  font-family: Arial, Verdana, serif;  font-size: 10px;  text-align: center;  display: block;}#new_apl a:hover#apl_link_integration{  color: #7AC043;}#new_apl .apl_Match{  font-weight: bold;  padding: 0;  margin: 0;  padding-top: 2px;}#new_apl .apl_representation{	padding: 6px 0 !important;	cursor: pointer;}#new_apl .apl_heureMatch{	font-family: Arial, Verdana, serif;	font-size: 10px !important;}#apl_api{  position: absolute;	top: 0;	left: 0;	border: solid 1px black;  height: 450px;  z-index: 10000;	background-color: white;}#new_apl .apl_matchContener{  position: relative;  margin: 0;  padding: 0;}#new_apl .apl_entireFleche{	width: 100%;}#new_apl .apl_entireFleche img{  position: absolute;  top: 1px;}#new_apl .apl_iconeFleche{  background: center top no-repeat;  position: absolute;  text-decoration: none;  top: -4px;  width: 12px;  height: 11px;}#new_apl .widget_chaines{  color: gray;  font-style: italic;}#widget_frame{	margin-top: 40px; /* this could not work properly with IE6 */	z-index: 10000;  width: 298px;  height: 410px;  background: url(http://www.allomatch.com/images/widget/backgroundPanneau.png) top right no-repeat;  border: solid 1px black;}</style><!--[if IE]><style>  #new_apl .apl_matchContener  {    position: relative;    margin: 0;    padding: 0;    border: 1px solid white;    padding-top:0 !important;    height:0  }</style><![endif]--><div id=\"new_apl\" style=\"width: 150px; position: relative; float: left\">  <div id=\"main_iframe\" style=\"width:300px; position:absolute; top:0px; left:150px ; display:none; float: right\">  <iframe allowTransparency=\"true\" scrolling=\"no\" frameborder=\"0\" src=\"\" id=\"widget_frame\" width=\"300\"></iframe>  </div>  <div id=\"apl_api\" style=\"width: 150px;\">          <a class=\"apl_headerAPI\" href=\"http://www.allomatch.com/\"><img alt=\"Allomatch - tout le sport près de chez vous\" class=\"apl_logoAPI\" src=\"http://www.allomatch.com/images/widget/logo150.gif\" /></a>    <img class=\"apl_vague\" alt=\"\" src=\"http://www.allomatch.com/images/widget/vague150.gif\" />                    <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/en/widget/displayMarginWidgetFrame/match_id/12192/zone_id\', \'left\', \'12192\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_12192\" class=\"apl_heureMatch\" style=\"padding-right: 15px;\">            Thursday 21 August - 13:30          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: left; \">               <img alt=\"\" style=\"right: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_left.gif\" />              <div id=\"apl_iconeFleche_12192\" class=\"apl_iconeFleche\" style=\"left: 136px; background-image: url(http://www.allomatch.com/images/widget/fleche_left.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_12192\" class=\"apl_Match\" style=\"width: 134px; padding-right: 15px;\">              jeux olympiques 2008            </div>                        </div>        </div>                <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/en/widget/displayMarginWidgetFrame/match_id/12197/zone_id\', \'left\', \'12197\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_12197\" class=\"apl_heureMatch\" style=\"padding-right: 15px;\">            Friday 22 August - 13:30          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: left; \">               <img alt=\"\" style=\"right: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_left.gif\" />              <div id=\"apl_iconeFleche_12197\" class=\"apl_iconeFleche\" style=\"left: 136px; background-image: url(http://www.allomatch.com/images/widget/fleche_left.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_12197\" class=\"apl_Match\" style=\"width: 134px; padding-right: 15px;\">              jeux olympiques 2008            </div>                        </div>        </div>                <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/en/widget/displayMarginWidgetFrame/match_id/11616/zone_id\', \'left\', \'11616\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_11616\" class=\"apl_heureMatch\" style=\"padding-right: 15px;\">            Saturday 23 August - 19:00          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: left; \">               <img alt=\"\" style=\"right: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_left.gif\" />              <div id=\"apl_iconeFleche_11616\" class=\"apl_iconeFleche\" style=\"left: 136px; background-image: url(http://www.allomatch.com/images/widget/fleche_left.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_11616\" class=\"apl_Match\" style=\"width: 134px; padding-right: 15px;\">              Le Havre - Marseille            </div>                        </div>        </div>                <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/en/widget/displayMarginWidgetFrame/match_id/11621/zone_id\', \'left\', \'11621\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_11621\" class=\"apl_heureMatch\" style=\"padding-right: 15px;\">            Sunday 24 August - 21:00          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: left; \">               <img alt=\"\" style=\"right: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_left.gif\" />              <div id=\"apl_iconeFleche_11621\" class=\"apl_iconeFleche\" style=\"left: 136px; background-image: url(http://www.allomatch.com/images/widget/fleche_left.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_11621\" class=\"apl_Match\" style=\"width: 134px; padding-right: 15px;\">              Bordeaux - Nantes            </div>                        </div>        </div>                    <a target=\"_blank\" id=\"apl_link_integration\" href=\"http://www.allomatch.com/\">Every place, every match</a>  </div></div>');