    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: 210px; position: relative; float: right\">  <div id=\"main_iframe\" style=\"width:300px; position:absolute; top:0px; left: -300px ; display:none; float: left\">  <iframe allowTransparency=\"true\" scrolling=\"no\" frameborder=\"0\" src=\"\" id=\"widget_frame\" width=\"300\"></iframe>  </div>  <div id=\"apl_api\" style=\"width: 210px;\">          <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/logo210.gif\" /></a>    <img class=\"apl_vague\" alt=\"\" src=\"http://www.allomatch.com/images/widget/vague210.gif\" />                    <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/fr/widget/displayMarginWidgetFrame/match_id/14658/zone_id\', \'right\', \'14658\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_14658\" class=\"apl_heureMatch\" style=\"padding-left: 15px;\">            mardi 2 décembre - 20:30          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: right; \">               <img alt=\"\" style=\"left: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_right.gif\" />              <div id=\"apl_iconeFleche_14658\" class=\"apl_iconeFleche\" style=\"right: 196px; background-image: url(http://www.allomatch.com/images/widget/fleche_right.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_14658\" class=\"apl_Match\" style=\"width: 194px; padding-left: 15px;\">              Burnley - Arsenal            </div>                              <div class=\"widget_chaines\">                                      Sky Sports 1                                      Canal + Sport                                  </div>                        </div>        </div>                <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/fr/widget/displayMarginWidgetFrame/match_id/14414/zone_id\', \'right\', \'14414\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_14414\" class=\"apl_heureMatch\" style=\"padding-left: 15px;\">            mercredi 3 décembre - 20:45          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: right; \">               <img alt=\"\" style=\"left: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_right.gif\" />              <div id=\"apl_iconeFleche_14414\" class=\"apl_iconeFleche\" style=\"right: 196px; background-image: url(http://www.allomatch.com/images/widget/fleche_right.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_14414\" class=\"apl_Match\" style=\"width: 194px; padding-left: 15px;\">              Manchester City - PSG            </div>                              <div class=\"widget_chaines\">                                      M6                                  </div>                        </div>        </div>                <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/fr/widget/displayMarginWidgetFrame/match_id/14415/zone_id\', \'right\', \'14415\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_14415\" class=\"apl_heureMatch\" style=\"padding-left: 15px;\">            jeudi 4 décembre - 20:45          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: right; \">               <img alt=\"\" style=\"left: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_right.gif\" />              <div id=\"apl_iconeFleche_14415\" class=\"apl_iconeFleche\" style=\"right: 196px; background-image: url(http://www.allomatch.com/images/widget/fleche_right.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_14415\" class=\"apl_Match\" style=\"width: 194px; padding-left: 15px;\">              Nancy - CSKA Moscou            </div>                              <div class=\"widget_chaines\">                                      Canal + Sport                                  </div>                        </div>        </div>                <div class=\"apl_representation\" onclick=\"reloadIframe(\'widget_frame\', \'http://www.allomatch.com/fr/widget/displayMarginWidgetFrame/match_id/14680/zone_id\', \'right\', \'14680\', \'http://www.allomatch.com\'); return false;\" >              <div id=\"apl_heure_match_14680\" class=\"apl_heureMatch\" style=\"padding-left: 15px;\">            vendredi 5 décembre - 20:50          </div>             <div class=\"apl_matchContener\" >            <div class=\"apl_entireFleche\" style=\"text-align: right; \">               <img alt=\"\" style=\"left: 6px;\" src=\"http://www.allomatch.com/images/widget/ligne_fleche_right.gif\" />              <div id=\"apl_iconeFleche_14680\" class=\"apl_iconeFleche\" style=\"right: 196px; background-image: url(http://www.allomatch.com/images/widget/fleche_right.gif)\"/>              </div>            </div>            <div id=\"apl_ligneMatch_14680\" class=\"apl_Match\" style=\"width: 194px; padding-left: 15px;\">              Cardiff Blues - Biarritz Olympique            </div>                              <div class=\"widget_chaines\">                                      S4C                                      Sky Italia                                      Sky Sports 1                                      Canal + Sport                                  </div>                        </div>        </div>                    <a target=\"_blank\" id=\"apl_link_integration\" href=\"http://www.allomatch.com/\">Tous les lieux, tous les matches</a>  </div></div>');