function idalgo_jsf_gradient(txt_name,num_lenght,num_color_multiplier,class_background,is_start_top,is_revert){var div_main=document.getElementById('idalgo_gra_'+txt_name);if(div_main){var class_position=is_start_top?'idalgo_opacity_area_top_':'idalgo_opacity_area_bottom_';var txt_return='';for(var i=1;i<=num_lenght;i++){var num_position=i<10?'0'+i:i;var num_opacity=i*num_color_multiplier;if(is_revert) num_opacity=(num_lenght*num_color_multiplier)-((i-1)*num_color_multiplier);num_opacity=num_opacity<10?'0'+num_opacity:num_opacity;txt_return+='<div class="idalgo_opacity '+class_background+' idalgo_opacity_'+num_opacity+' '+class_position+num_position+'"></div>';}div_main.innerHTML=txt_return;}}
(function(){
	var idalgo_js_class_iepngfix={
		list_image:[],
		add_image:function(obj){
			if(!this.list_image[obj.uniqueID]){
				this.list_image[obj.uniqueID]=obj;
				this.execute(obj);
			}
		},
		execute_all:function(){
			var txt_navigator=navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
			var is_ie=(txt_navigator!=null && Number(txt_navigator[1])<7 && document.all);
			if(is_ie){
				for(i=0;i<document.all.length;i++){
					var node=document.all[i];
					this.execute(node);
				}
			}
		},
		execute:function(node){
			var obj_image=node.currentStyle.backgroundImage;
			if(obj_image){
				if(obj_image.match(/\.png/)!=null){
					var txt_file=obj_image.substring(5,obj_image.length-2);
					var obj_image=new Image();
					obj_image.src=txt_file;

					node.style.backgroundImage="none";

					var div=document.createElement('div');
					div.style.filter		="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+txt_file+"', sizingMethod='crop')";
					div.style.position		='absolute';
					div.style.top			=this.idalgo_js_iepngfix_get_position(node.currentStyle.backgroundPositionY);
					div.style.left			=this.idalgo_js_iepngfix_get_position(node.currentStyle.backgroundPositionX);
					div.style.marginTop		=this.idalgo_js_iepngfix_get_margin(node.currentStyle.backgroundPositionY,obj_image.height);
					div.style.marginLeft	=this.idalgo_js_iepngfix_get_margin(node.currentStyle.backgroundPositionX,obj_image.width);
					div.style.width			=obj_image.width+'px';
					div.style.height		=obj_image.height+'px';
					div.style.overflow		='hidden';
					node.appendChild(div);
				}
			}
		},
		idalgo_js_iepngfix_get_position:function(txt_value){
			var txt_return=txt_value;
			switch(txt_value){
				case 'center'	: txt_return='50%'; break;
				case 'left'		: txt_return='0px'; break;
				case 'right'	: txt_return='100%'; break;
				case 'top'		: txt_return='0px'; break;
				case 'bottom'	: txt_return='100%'; break;
			}
			return txt_return;
		},
		idalgo_js_iepngfix_get_margin:function(txt_value,num_value){
			var txt_return='0px';
			switch(txt_value){
				case 'center'	: txt_return=(-num_value/2)+'px'; break;
				case 'bottom'	: 
				case 'right'	: txt_return=(-num_value)+'px'; break;
			}
			return txt_return;
		}
	}
	var txt_navigator=navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
	var is_ie=(txt_navigator!=null && Number(txt_navigator[1])<7 && document.all);
	if(is_ie){
		window.idalgo_iepngfix=idalgo_js_class_iepngfix;
	}
}())
// IE5.5+ PNG Alpha Fix v2.0 Alpha: Background Tiling Support
// (c) 2008 Angus Turnbull http://www.twinhelix.com

// This is licensed under the GNU LGPL, version 2.1 or later.
// For details, see: http://creativecommons.org/licenses/LGPL/2.1/

var IEPNGFix = window.IEPNGFix || {};

IEPNGFix.tileBG = function(elm, pngSrc, ready) {
	// Params: A reference to a DOM element, the PNG src file pathname, and a
	// hidden "ready-to-run" passed when called back after image preloading.

	var data = this.data[elm.uniqueID],
		elmW = Math.max(elm.clientWidth, elm.scrollWidth),
		elmH = Math.max(elm.clientHeight, elm.scrollHeight),
		bgX = elm.currentStyle.backgroundPositionX,
		bgY = elm.currentStyle.backgroundPositionY,
		bgR = elm.currentStyle.backgroundRepeat;

	// Cache of DIVs created per element, and image preloader/data.
	if (!data.tiles) {
		data.tiles = {
			elm: elm,
			src: '',
			cache: [],
			img: new Image(),
			old: {}
		};
	}
	var tiles = data.tiles,
		pngW = tiles.img.width,
		pngH = tiles.img.height;

	if (pngSrc) {
		if (!ready && pngSrc != tiles.src) {
			// New image? Preload it with a callback to detect dimensions.
			tiles.img.onload = function() {
				this.onload = null;
				IEPNGFix.tileBG(elm, pngSrc, 1);
			};
			return tiles.img.src = pngSrc;
		}
	} else {
		// No image?
		if (tiles.src) ready = 1;
		pngW = pngH = 0;
	}
	tiles.src = pngSrc;

	if (!ready && elmW == tiles.old.w && elmH == tiles.old.h &&
		bgX == tiles.old.x && bgY == tiles.old.y && bgR == tiles.old.r) {
		return;
	}

	// Convert English and percentage positions to pixels.
	var pos = {
			top: '0%',
			left: '0%',
			center: '50%',
			bottom: '100%',
			right: '100%'
		},
		x,
		y,
		pc;
	x = pos[bgX] || bgX;
	y = pos[bgY] || bgY;
	if (pc = x.match(/(\d+)%/)) {
		x = Math.round((elmW - pngW) * (parseInt(pc[1]) / 100));
	}
	if (pc = y.match(/(\d+)%/)) {
		y = Math.round((elmH - pngH) * (parseInt(pc[1]) / 100));
	}
	x = parseInt(x);
	y = parseInt(y);

	// Handle backgroundRepeat.
	var repeatX = { 'repeat': 1, 'repeat-x': 1 }[bgR],
		repeatY = { 'repeat': 1, 'repeat-y': 1 }[bgR];
	if (repeatX) {
		x %= pngW;
		if (x > 0) x -= pngW;
	}
	if (repeatY) {
		y %= pngH;
		if (y > 0) y -= pngH;
	}

	// Go!
	this.hook.enabled = 0;
	if (!({ relative: 1, absolute: 1 }[elm.currentStyle.position])) {
		elm.style.position = 'relative';
	}
	var count = 0,
		xPos,
		maxX = repeatX ? elmW : x + 0.1,
		yPos,
		maxY = repeatY ? elmH : y + 0.1,
		d,
		s,
		isNew;
	if (pngW && pngH) {
		for (xPos = x; xPos < maxX; xPos += pngW) {
			for (yPos = y; yPos < maxY; yPos += pngH) {
				isNew = 0;
				if (!tiles.cache[count]) {
					tiles.cache[count] = document.createElement('div');
					isNew = 1;
				}
				var clipR = (xPos + pngW > elmW ? elmW - xPos : pngW),
					clipB = (yPos + pngH > elmH ? elmH - yPos : pngH);
				d = tiles.cache[count];
				s = d.style;
				s.behavior = 'none';
				s.left = xPos + 'px';
				s.top = yPos + 'px';
				s.width = clipR + 'px';
				s.height = clipB + 'px';
				s.clip = 'rect(' +
					(yPos < 0 ? 0 - yPos : 0) + 'px,' +
					clipR + 'px,' +
					clipB + 'px,' +
					(xPos < 0 ? 0 - xPos : 0) + 'px)';
				s.display = 'block';
				if (isNew) {
					s.position = 'absolute';
					s.zIndex = -999;
					if (elm.firstChild) {
						elm.insertBefore(d, elm.firstChild);
					} else {
						elm.appendChild(d);
					}
				}
				this.fix(d, pngSrc, 0);
				count++;
			}
		}
	}
	while (count < tiles.cache.length) {
		this.fix(tiles.cache[count], '', 0);
		tiles.cache[count++].style.display = 'none';
	}

	this.hook.enabled = 1;

	// Cache so updates are infrequent.
	tiles.old = {
		w: elmW,
		h: elmH,
		x: bgX,
		y: bgY,
		r: bgR
	};
};


IEPNGFix.update = function() {
	// Update all PNG backgrounds.
	for (var i in IEPNGFix.data) {
		var t = IEPNGFix.data[i].tiles;
		if (t && t.elm && t.src) {
			IEPNGFix.tileBG(t.elm, t.src);
		}
	}
};
IEPNGFix.update.timer = 0;

if (window.attachEvent && !window.opera) {
	window.attachEvent('onresize', function() {
		clearTimeout(IEPNGFix.update.timer);
		IEPNGFix.update.timer = setTimeout(IEPNGFix.update, 100);
	});
}


/**************Variables globales */
var idalgo_vg=new Array();
idalgo_vg['REF_LANGUAGE']=2;
idalgo_vg['LIVE']=new Array();
idalgo_vg['LIVE']['TXT_STATUSBAR']="... tout sur le foot!!";
idalgo_vg['LIVE']['REFRESH_TTL']=new Array();
idalgo_vg['LIVE']['REFRESH_TTL']['NUM_TIMEREFRESH']=60;
idalgo_vg['LIVE']['REFRESH_TTL']['NUM_NEXTREFRESH']=0;
idalgo_vg['LIVE']['REFRESH_TTL']['IS_CHRONO']=0;
idalgo_vg['LIVE']['LIST_LANGUAGE']=new Array();
idalgo_vg['LIVE']['LIST_LANGUAGE']['TXT_ACTION']=new Array();
idalgo_vg['LIVE']['LIST_LANGUAGE']['TXT_ACTION'][1]='BUT';
idalgo_vg['LIVE']['CROSS_DOMAIN']=false;
idalgo_vg['LIVE']['IS_GET']=0;


/************** Main */
function idalgo_jsf_main(){
	idalgo_jsf_data_live();
}

/* chargement initial */
idalgo_jsf_main();

/* Rafraichissement Multiplex*/
function idalgo_jsf_multiplex_comment(txt_competition){
	var obj=document.getElementById('idalgo_content_multiplex_refresh');
	if(obj){
		var num_refresh=obj.innerHTML;
		if(num_refresh>0){
			window.setTimeout("loadModuleTargetSplash('"+document.getElementById('idalgo_content_multiplex_comment').parentNode.id+"','content_multiplex_comment','txt_competition="+txt_competition+"',false)",num_refresh*1000);
			window.setTimeout("idalgo_jsf_multiplex_comment_refresh()",1000);
			window.setTimeout("idalgo_jsf_multiplex_comment('"+txt_competition+"')",num_refresh*1000);
		}
	}
	else
		window.setTimeout("idalgo_jsf_multiplex_comment('"+txt_competition+"')",1000);
}
function idalgo_jsf_multiplex_comment_refresh(){
	var obj=document.getElementById('idalgo_content_multiplex_refresh');
	if(obj){
		if(obj.innerHTML>1){obj.innerHTML=obj.innerHTML-1;window.setTimeout('idalgo_jsf_multiplex_comment_refresh()',1000);} else {obj.parentNode.innerHTML='';}
	}
}

/* Rafraichissement Match Live */
function idalgo_jsf_match_comment(ref_match){
	var obj=document.getElementById('idalgo_content_match_refresh');
	if(obj){
		var num_refresh=obj.innerHTML;
		if(num_refresh>0){
			window.setTimeout("loadModuleTargetSplash('"+document.getElementById('idalgo_content_match_comment').parentNode.id+"','content_match_comment','ref_match="+ref_match+"',false)",num_refresh*1000);
			window.setTimeout("idalgo_jsf_match_comment_refresh()",1000);
			window.setTimeout("idalgo_jsf_match_comment("+ref_match+")",num_refresh*1000);
		}
	}
	else
		window.setTimeout("idalgo_jsf_match_comment("+ref_match+")",1000);
}
function idalgo_jsf_match_comment_refresh(){
	var obj=document.getElementById('idalgo_content_match_refresh');
	if(obj){
		if(obj.innerHTML>1){obj.innerHTML=obj.innerHTML-1;window.setTimeout('idalgo_jsf_match_comment_refresh()',1000);} else {obj.parentNode.innerHTML='';}
	}
}

/* Rafraichissement Time Line */
function idalgo_jsf_match_timeline(ref_match){
	var num_refresh=60;
	if(num_refresh>0){
		window.setTimeout("loadModuleTargetSplash('"+document.getElementById('idalgo_content_match_timeline').parentNode.id+"','content_match_timeline','ref_match="+ref_match+"',false)",num_refresh*1000);
		window.setTimeout("idalgo_jsf_match_timeline("+ref_match+")",num_refresh*1000);
	}
}

/************** classe  AJAX*/
function idalgo_oObjAjax(){
	this.url="/cache/page/loadmodule.php";
	this.url_cross='/idalgo_cross_loadmodule_sport_football.php';
	this.makenode=function(oMainNode){
		var oMain=new Array();
		oMain['value']=oMainNode.nodeValue;
		/* Liste des attributs */
		var list_attribute=oMainNode.attributes;
		if(list_attribute){
			for(var key=0;key<list_attribute.length;key++){
				var o_attribute=list_attribute[key];
				oMain[o_attribute.nodeName.toUpperCase()]=o_attribute.nodeValue;
			}
		}
		/* Liste des Noeuds */
		var list_node_brother=new Array();
		var list_node=oMainNode.childNodes;
		for(var key=0;key<list_node.length;key++){
			var o_node=list_node[key];
			var txt_node=o_node.nodeName.toUpperCase();

			if(list_node_brother[txt_node]>=0) list_node_brother[txt_node]++; else list_node_brother[txt_node]=0;

			if(!oMain[txt_node]) oMain[txt_node]=new Array();
			oMain[txt_node].length=oMain[txt_node].length++;

			oMain[txt_node][list_node_brother[txt_node]]=this.makenode(o_node);
		}
		/* Valeur de retour */
		return oMain;
	};
	this.request=function(Callfunction_ArgList,CallbackFunction){
		var oXHR=null;
		var _this=this;
		if(window.XMLHttpRequest) oXHR=new XMLHttpRequest(); /* Firefox */
		else{
			try{ oXHR=new ActiveXObject("Msxml2.XMLHTTP"); }
			catch(e){ oXHR=new ActiveXObject("Microsoft.XMLHTTP"); }
		}
		oXHR.onreadystatechange=function(){
			if(oXHR.readyState==4){
				var oReturn=new Array();
				if (oXHR.status==200){
					var objXML=oXHR.responseXML;
					if(objXML.childNodes[0]){
						if (objXML.childNodes[0].nodeName=='xml') var o_node=objXML.childNodes[1];
						else var o_node=objXML.childNodes[0];
						var oRes=new Array();
						var oA = new idalgo_oObjAjax();
						oRes=oA.makenode(o_node);

						oReturn['error']=null;
						oReturn['value']=oRes;
						oReturn['count']=objXML.documentElement.getAttribute('count');
					}
					else{
						oReturn['error']='Error '+oXHR.status;
						oReturn['value']='cross_domaine_active';
						oReturn['count']=0;
					}
					CallbackFunction(oReturn);
				}
				else{
					if(!window.idalgo_vg['LIVE']['CROSS_DOMAIN']){
						window.idalgo_vg['LIVE']['CROSS_DOMAIN']=true;
						_this.request(Callfunction_ArgList,CallbackFunction);
					}
					else{
						oReturn['error']='Error '+oXHR.status;
						oReturn['value']='cross_domaine_active';
						oReturn['count']=0;
						CallbackFunction(oReturn);
					}
				}
			}
		};

		var txt_url=window.idalgo_vg['LIVE']['CROSS_DOMAIN']==true?this.url_cross:this.url;
		if(window.idalgo_vg['LIVE']['IS_GET']==1){
			try{
				oXHR.open("GET",txt_url+'?'+Callfunction_ArgList,true);
				oXHR.send(null);
			}
			catch(e){
				window.idalgo_vg['LIVE']['CROSS_DOMAIN']=true;
				oXHR.open("GET",this.url_cross+'?'+Callfunction_ArgList,true);
				oXHR.send(null);
			}
		}
		else{
			try{
				oXHR.open("POST",txt_url,true);
				oXHR.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=utf-8");
				oXHR.send(Callfunction_ArgList);
			}
			catch(e){
				window.idalgo_vg['LIVE']['CROSS_DOMAIN']=true;
				oXHR.open("POST",this.url_cross,true);
				oXHR.setRequestHeader("Content-type","application/x-www-form-urlencoded;charset=utf-8");
				oXHR.send(Callfunction_ArgList);
			}
		}
	};
	this.execute=function(sModule,sType,ParameterList,CallbackFunction){
		var CallFct_ArgLst='';
		var aPar=new Array();
		for(var key in ParameterList) aPar[aPar.length]=key+'='+encodeURIComponent(ParameterList[key]);
		var sPar=aPar.join('&');
		sPar='module='+sModule+'&type='+sType+'&args='+encodeURIComponent(sPar);
		this.request(sPar,CallbackFunction);
	};
}

/************** Chargement des données */
function idalgo_jsf_data_live(oResponse){
	if (!oResponse){
		idalgo_jsf_timeout_clear();
		idalgo_jsf_display_statusbar('load_init');
		var aArg=new Array();
		aArg['ref_language']=this.idalgo_vg['REF_LANGUAGE'];
		var oA = new idalgo_oObjAjax();
		oA.execute('xml_live','xml',aArg,idalgo_jsf_data_live);
		oA=null;
		return;
	}
	idalgo_jsf_display_statusbar('load_end');

	/*Erreur */
	if(!oResponse.value && !oResponse.error){
		idalgo_jsf_display_statusbar('error_init',this.idalgo_vg['LIVE']['REFRESH_TTL']['NUM_TIMEREFRESH']);
		window.setTimeout('idalgo_jsf_data_live()',this.idalgo_vg['LIVE']['REFRESH_TTL']['NUM_TIMEREFRESH']*1000);
		return;
	}
	else if (oResponse.error!=null){
		if(oResponse.value){
			if(oResponse.value!='cross_domaine_active'){
				idalgo_jsf_display_statusbar('error_init',this.idalgo_vg['LIVE']['REFRESH_TTL']['NUM_TIMEREFRESH']);
				window.setTimeout('idalgo_jsf_data_live()',this.idalgo_vg['LIVE']['REFRESH_TTL']['NUM_TIMEREFRESH']*1000);
			}
		}
		return;
	}

	/* Lecture des données */
	/*this.idalgo_vg['LIVE']['__idalgo___test__']=oResponse; */
	if(oResponse['value']['MATCHLIST']){
		var o_matchlist=oResponse['value']['MATCHLIST'][0];
		this.idalgo_vg['LIVE']['TXT_FINISH']=o_matchlist['TXT_FINISH'];
		if(this.idalgo_vg['LIVE']['LIST_MATCH_NEW']) delete this.idalgo_vg['LIVE']['LIST_MATCH_NEW'];

		var list_match=o_matchlist['MATCH'];
		if(list_match){
			this.idalgo_vg['LIVE']['LIST_MATCH_NEW']=new Array;
			for(var i=0;i<list_match.length;i++){
				var oMatch=list_match[i];
				var ref_match=oMatch['REF_MATCH'];
				this.idalgo_vg['LIVE']['LIST_MATCH_NEW'][ref_match]=oMatch;

				if(oMatch['LIST_ACTION']){
					if(oMatch['LIST_ACTION'][0]['ACTION']){
						var list_action=oMatch['LIST_ACTION'][0]['ACTION'];
						var o_actionlist=new Array();
						for(var j=0;j<list_action.length;j++){
							var o_action=list_action[j];
							o_actionlist[o_action['REF_ACTION']]=o_action;
						}
						this.idalgo_vg['LIVE']['LIST_MATCH_NEW'][ref_match]['LIST_ACTION']=o_actionlist;
					}
				}
			}
		}
		idalgo_jsf_load_live();

		if(!list_match){
			var num_nextlive=o_matchlist['NUM_NEXTLIVE'];
			if(num_nextlive>0){
				idalgo_vg['LIVE']['REFRESH_TTL']['NUM_NEXTREFRESH']=num_nextlive;
				window.setTimeout('idalgo_jsf_data_live()',num_nextlive*1000);
				idalgo_jsf_display_statusbar('next_live',o_matchlist['TIME_NEXTMATCH']);
			}
		}
	}
}

/************** Chargement et analyse des rencontres */
function idalgo_jsf_load_live(){

	idalgo_jsf_display_live_event_end();

	if(this.idalgo_vg['LIVE']['LIST_MATCH_OLD']){
		var list_oldmatch=this.idalgo_vg['LIVE']['LIST_MATCH_OLD'];
		if(this.idalgo_vg['LIVE']['LIST_MATCH_NEW']){
			var list_match=this.idalgo_vg['LIVE']['LIST_MATCH_NEW'];
			for(var ref_match in list_match){
				var o_match=list_match[ref_match];
				var o_oldmatch=list_oldmatch[ref_match];

				if(o_oldmatch){
					if(o_match['REF_STATUS']!=o_oldmatch['REF_STATUS']) idalgo_jsf_display_live_change_status(ref_match);
					if(o_match['NUM_LOCALSCORE']!=o_oldmatch['NUM_LOCALSCORE']) idalgo_jsf_display_live_change_localscore(ref_match);
					if(o_match['NUM_VISITORSCORE']!=o_oldmatch['NUM_VISITORSCORE']) idalgo_jsf_display_live_change_visitorscore(ref_match);

					/* Actions*/
					var list_action=o_match['LIST_ACTION'];
					var list_oldaction=o_oldmatch['LIST_ACTION'];
					for(var ref_action in list_action){
						if(list_oldaction){
							var o_action=list_action[ref_action];
							var o_oldaction=list_oldaction[ref_action];

							if(!o_oldaction) idalgo_jsf_display_live_change_action(ref_match,ref_action);
						}
						else
							idalgo_jsf_display_live_change_action(ref_match,ref_action);
					}
				}
				else
					idalgo_jsf_display_live_change_status(ref_match);
			}

			for(var ref_match in list_oldmatch){
				var o_match=list_match[ref_match];
				if(!o_match) idalgo_jsf_display_live_change_status(ref_match);
			}

			this.idalgo_vg['LIVE']['LIST_MATCH_OLD']=new Array();
			this.idalgo_vg['LIVE']['LIST_MATCH_OLD']=this.idalgo_vg['LIVE']['LIST_MATCH_NEW'];
			idalgo_jsf_timeout_init();
		}
		else{
			for(var ref_match in list_oldmatch)
				idalgo_jsf_display_live_change_status(ref_match);
			delete this.idalgo_vg['LIVE']['LIST_MATCH_OLD'];
			idalgo_jsf_display_statusbar('normal','');
		}
		
	}
	else{
		if(this.idalgo_vg['LIVE']['LIST_MATCH_NEW']){
			this.idalgo_vg['LIVE']['LIST_MATCH_OLD']=new Array();
			this.idalgo_vg['LIVE']['LIST_MATCH_OLD']=this.idalgo_vg['LIVE']['LIST_MATCH_NEW'];
			idalgo_jsf_timeout_init();
		}
	}
	if(idalgo_vg['LIVE']['REFRESH_TTL']['IS_CHRONO']==0) idalgo_jsf_timeout_chrono_exec();
}

/************** Gestion du temps */
function idalgo_jsf_timeout_clear(){
	if(this.idalgo_vg['LIVE']['REFRESH_TTL']['OBJECT']){
		window.clearTimeout(this.idalgo_vg['LIVE']['REFRESH_TTL']['OBJECT']);
	}
}
function idalgo_jsf_timeout_init(num_second){
	idalgo_jsf_timeout_clear();
	num_second=num_second?num_second:this.idalgo_vg['LIVE']['REFRESH_TTL']['NUM_TIMEREFRESH'];
	this.idalgo_vg['LIVE']['REFRESH_TTL']['SECONDS']=num_second;
	idalgo_jsf_timeout_exec();
}
function idalgo_jsf_timeout_exec(){
	TimeOut=this.idalgo_vg['LIVE']['REFRESH_TTL']['SECONDS'];
	if(TimeOut<=0){
		idalgo_jsf_timeout_clear();
		idalgo_jsf_data_live();
	}
	else{
		idalgo_jsf_display_statusbar('live_refresh',TimeOut);
		this.idalgo_vg['LIVE']['REFRESH_TTL']['SECONDS']=TimeOut-1;
		this.idalgo_vg['LIVE']['REFRESH_TTL']['OBJECT']=window.setTimeout('idalgo_jsf_timeout_exec()',1000);
	}
}

function idalgo_jsf_timeout_chrono_exec(){
	idalgo_vg['LIVE']['REFRESH_TTL']['IS_CHRONO']=0;
	if(this.idalgo_vg['LIVE']['LIST_MATCH_OLD']){
		var list_oldmatch=this.idalgo_vg['LIVE']['LIST_MATCH_OLD'];
		var is_live=false;
		for(var ref_match in list_oldmatch){
			var o_match=list_oldmatch[ref_match];
			var ref_status=parseInt(o_match['REF_STATUS']);
			if(ref_status>=7){
				is_live=true;
				/*idalgo_jsf_display_live_change_chrono_live(o_match); */
				idalgo_jsf_display_live_change_chrono_match_navigation(o_match);
				idalgo_jsf_display_live_change_chrono_content_result(o_match);
			}
		}
		if(is_live){
			idalgo_vg['LIVE']['REFRESH_TTL']['IS_CHRONO']=1;
			window.setTimeout('idalgo_jsf_timeout_chrono_exec()',60000);
		}
	}
}

/************** Fonctions d'affichage */
function idalgo_jsf_display_live_change_status(ref_match){
	var o_match;
	if(this.idalgo_vg['LIVE']['LIST_MATCH_NEW']) o_match=this.idalgo_vg['LIVE']['LIST_MATCH_NEW'][ref_match];
	if(!o_match){
		o_match=this.idalgo_vg['LIVE']['LIST_MATCH_OLD'][ref_match];
		o_match['REF_STATUS']=2;
	}

	idalgo_jsf_display_live_change_status_block_matchlist(o_match);
	idalgo_jsf_display_live_change_status_match_navigation(o_match);
	idalgo_jsf_display_live_change_status_content_result(o_match);
}
function idalgo_jsf_display_live_change_localscore(ref_match){
	var o_match=this.idalgo_vg['LIVE']['LIST_MATCH_NEW'][ref_match];

	idalgo_jsf_display_live_change_score_block_matchlist(o_match);
	/*idalgo_jsf_display_live_change_localscore_live(o_match);*/
	idalgo_jsf_display_live_change_localscore_match_navigation(o_match);
	idalgo_jsf_display_live_change_localscore_content_result(o_match);

	idalgo_jsf_display_live_change_event_content_result(o_match);

	if(!this.idalgo_vg['LIVE']['LIST_MATCH_EVENT']) this.idalgo_vg['LIVE']['LIST_MATCH_EVENT']=new Array();
	if(!this.idalgo_vg['LIVE']['LIST_MATCH_EVENT'][ref_match]) this.idalgo_vg['LIVE']['LIST_MATCH_EVENT'][ref_match]=1;
}
function idalgo_jsf_display_live_change_visitorscore(ref_match){
	var o_match=this.idalgo_vg['LIVE']['LIST_MATCH_NEW'][ref_match];

	idalgo_jsf_display_live_change_score_block_matchlist(o_match);
	/*idalgo_jsf_display_live_change_visitorscore_live(o_match); */
	idalgo_jsf_display_live_change_visitorscore_match_navigation(o_match);
	idalgo_jsf_display_live_change_visitorscore_content_result(o_match);

	idalgo_jsf_display_live_change_event_content_result(o_match);

	if(!this.idalgo_vg['LIVE']['LIST_MATCH_EVENT']) this.idalgo_vg['LIVE']['LIST_MATCH_EVENT']=new Array();
	if(!this.idalgo_vg['LIVE']['LIST_MATCH_EVENT'][ref_match]) this.idalgo_vg['LIVE']['LIST_MATCH_EVENT'][ref_match]=1;
}
function idalgo_jsf_display_live_change_action(ref_match,ref_action){
	var o_match=this.idalgo_vg['LIVE']['LIST_MATCH_NEW'][ref_match];
	var o_action=o_match['LIST_ACTION'][ref_action];

	idalgo_jsf_display_live_change_action_content_result(o_match,o_action);
}

function idalgo_jsf_display_live_event_end(){
	if(this.idalgo_vg['LIVE']['LIST_MATCH_EVENT']){
		if(this.idalgo_vg['LIVE']['LIST_MATCH_EVENT'].length>0){
			for(var ref_match in this.idalgo_vg['LIVE']['LIST_MATCH_EVENT']) {
				var o_match=this.idalgo_vg['LIVE']['LIST_MATCH_OLD'][ref_match];
				if(o_match){
					idalgo_jsf_display_live_change_event_end_content_result(o_match);
				}
			}
		}
	}
}

function idalgo_jsf_display_statusbar(sAlert,sTextOption){
	if(!sTextOption){
		sTextOption='';
	}
	switch(sAlert){
		case 'normal'			: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']; break;
		case 'load_init'		: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']+' - Chargement en cours...'; break;
		case 'load_end'			: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']+' - Chargement termin\351...'; break;
		case 'load_live'		: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']+' - Mise \340 jour en cours...'; break;
		case 'error_init'		: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']+' - Re-Chargement pr\351vu dans '+sTextOption+' secondes...'; break;
		case 'load_match_init'	: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']+' - Chargement de la rencontre '+sTextOption+'...'; break;
		case 'live_refresh'		: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']+' - Mise \340 jour dans '+sTextOption+' secondes...'; break;
		case 'next_live'		: window.status=this.idalgo_vg['LIVE']['TXT_STATUSBAR']+" - Prochain live \340 "+sTextOption+'...'; break;
		default: window.status=''; break;
	}
}

/**************Divers */
function idalgo_jsf_misc_makematchtime(RefStatus,DateLive,DateSrv){
	var oDateLive=idalgo_jsf_misc_makedate(DateLive);
	var oDateSrv=idalgo_jsf_misc_makedate(DateSrv);

	var sMinuteMatch='';
	var NumMinute='';

	oDateLive=Math.ceil(oDateLive/(60*1000));
	oDateSrv=Math.ceil(oDateSrv/(60*1000));
	switch(parseInt(RefStatus)){
		case 7:
			NumMinute=oDateSrv-oDateLive;
			if(NumMinute>45) sMinuteMatch='45\'+'+(NumMinute-45);
			else sMinuteMatch=NumMinute+'\'';
			break;
		case 8:
			NumMinute=45+oDateSrv-oDateLive;
			if(NumMinute>90) sMinuteMatch='90\'+'+(NumMinute-90);
			else sMinuteMatch=NumMinute+'\'';
			break;
		case 9:
			NumMinute=90+oDateSrv-oDateLive;
			if(NumMinute>105) sMinuteMatch='105\'+'+(NumMinute-105);
			else sMinuteMatch=NumMinute+'\'';
			break;
		case 10:
			NumMinute=105+oDateSrv-oDateLive;
			if(NumMinute>120) sMinuteMatch='120\'+'+(NumMinute-120);
			else sMinuteMatch=NumMinute+'\'';
			break;
		default:
			break;
	}
	return sMinuteMatch;
}
function idalgo_jsf_misc_makedate(sDate){
	var aDateTime=sDate.split(' ');
	var aDate=aDateTime[0].split('-');
	var aTime=aDateTime[1].split(':');
	var dDate = new Date(aDate[0], aDate[1]-1, aDate[2], aTime[0], aTime[1], aTime[2]);
	return dDate;
}

/************** BLOCK_MATCHLIST */
function idalgo_jsf_display_live_change_status_block_matchlist(o_match){
	var txt_module='block_matchlist';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var ref_match=o_match['REF_MATCH'];

	if(o_module){
		var txt_score='idalgo_live_'+txt_module+'_'+ref_match+'_score';
		var txt_score_link='idalgo_live_'+txt_module+'_'+ref_match+'_score_link';
		var txt_status_area='idalgo_live_'+txt_module+'_'+ref_match+'_status_area';
		var txt_status_background='idalgo_live_'+txt_module+'_'+ref_match+'_status_background';
		var txt_status_content='idalgo_live_'+txt_module+'_'+ref_match+'_status_content';
		var txt_status_time='idalgo_live_'+txt_module+'_'+ref_match+'_status_time';

		var o_score=document.getElementById(txt_score);
		var o_score_link=document.getElementById(txt_score_link);
		/*var o_localscore=document.getElementById(txt_localscore);*/
		/*var o_visitorscore=document.getElementById(txt_visitorscore);*/
		var o_status_area=document.getElementById(txt_status_area);
		var o_status_background=document.getElementById(txt_status_background);
		var o_status_content=document.getElementById(txt_status_content);
		var o_status_time=document.getElementById(txt_status_time);

		o_match['REF_STATUS']=parseInt(o_match['REF_STATUS']);
		switch(o_match['REF_STATUS']){
			case 0:
				/*if(o_localscore) o_localscore.parentNode.removeChild(o_localscore);*/
				/*if(o_visitorscore) o_visitorscore.parentNode.removeChild(o_visitorscore);*/
				if(o_status_area) o_status_area.style.display='none';
				if(o_status_time) o_status_time.style.display='block';
				if(o_score) o_score.className='div_idalgo_block_matchlist_match_score idalgo_picture_preview_small';
				if(o_score_link) o_score_link.innerHTML='';
				break;
			case 4:
			case 5:
			case 6:
				/*if(o_localscore) o_localscore.parentNode.removeChild(o_localscore);*/
				/*if(o_visitorscore) o_visitorscore.parentNode.removeChild(o_visitorscore);*/
				if(o_status_area) o_status_area.style.display='block';
				if(o_status_background) o_status_background.className='div_idalgo_block_matchlist_status_content idalgo_color_bg_status_stop';
				if(o_status_content) o_status_content.innerHTML=o_match['TXT_STATUS_SHORTNAME'];
				if(o_status_time) o_status_time.style.display='none';
				if(o_score) o_score.className='div_idalgo_block_matchlist_match_score idalgo_picture_preview_small';
				if(o_score_link) o_score_link.innerHTML='';
				break;
			default:
				o_match['REF_STATUS']=parseInt(o_match['REF_STATUS']);
				var is_live=(o_match['REF_STATUS']==1||o_match['REF_STATUS']==2||o_match['REF_STATUS']==3)?false:true;
				var class_score='idalgo_color_bg_status_end';
				if(is_live==true) {
					if(o_match['REF_STATUS']==7||o_match['REF_STATUS']==8||o_match['REF_STATUS']==9||o_match['REF_STATUS']==10||o_match['REF_STATUS']==11)
						class_score='idalgo_color_bg_status_playing';
					else
						class_score='idalgo_color_bg_status_stop';
				}

				if(o_status_area) o_status_area.style.display='block';
				if(o_status_background) o_status_background.className='div_idalgo_block_matchlist_status_content '+class_score;
				if(o_status_content) o_status_content.innerHTML=is_live==true?o_match['TXT_STATUS_SHORTNAME']:this.idalgo_vg['LIVE']['TXT_FINISH'];
				if(o_status_time) o_status_time.style.display='none';
				if(o_score){
					if(is_live==true) o_score.className='div_idalgo_block_matchlist_match_score';
					else o_score.className='div_idalgo_block_matchlist_match_score';
				}
				if(o_score_link){
					if(is_live==true){
						o_score_link.href='';
						if(o_match['REF_STATUS']==7||o_match['REF_STATUS']==8||o_match['REF_STATUS']==9||o_match['REF_STATUS']==10||o_match['REF_STATUS']==11)
							o_score_link.className='a_idalgo_block_matchlist_match_score idalgo_font_02 idalgo_font_size_05 idalgo_color_status_playing';
						else
							o_score_link.className='a_idalgo_block_matchlist_match_score idalgo_font_02 idalgo_font_size_05 idalgo_color_status_stop';
					}
					else{
						o_score_link.href='';
						o_score_link.className='a_idalgo_block_matchlist_match_score idalgo_font_02 idalgo_font_size_05 idalgo_color_status_end';
					}
					o_score_link.innerHTML=o_match['IS_EXTRATIME']==1?o_match['NUM_LOCALSCORE_EXTRATIME']:o_match['NUM_LOCALSCORE'];
					o_score_link.innerHTML=o_score_link.innerHTML+"<span class='idalgo_color_grey_05'>&nbsp;-&nbsp;</span>";
					o_score_link.innerHTML=o_score_link.innerHTML+(o_match['IS_EXTRATIME']==1?o_match['NUM_VISITORSCORE_EXTRATIME']:o_match['NUM_VISITORSCORE']);
				}
				break;
		}
	}
}
function idalgo_jsf_display_live_change_score_block_matchlist(o_match){
	var txt_module='block_matchlist';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var ref_match=o_match['REF_MATCH'];

	if(o_module){
		var txt_score_link='idalgo_live_'+txt_module+'_'+ref_match+'_score_link';
		var o_score_link=document.getElementById(txt_score_link);
		if(o_score_link){
			o_score_link.innerHTML=o_match['IS_EXTRATIME']==1?o_match['NUM_LOCALSCORE_EXTRATIME']:o_match['NUM_LOCALSCORE'];
			o_score_link.innerHTML=o_score_link.innerHTML+"<span class='idalgo_color_grey_05'>-</span>";
			o_score_link.innerHTML=o_score_link.innerHTML+(o_match['IS_EXTRATIME']==1?o_match['NUM_VISITORSCORE_EXTRATIME']:o_match['NUM_VISITORSCORE']);
		}
	}
}

/************** MATCH NAVIGATION */
function idalgo_jsf_display_live_change_status_match_navigation(o_match){
	var txt_module='content_match_navigation';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var ref_match=o_match['REF_MATCH'];

	if(o_module){
		var txt_status='idalgo_live_'+txt_module+'_'+ref_match+'_status';
		var txt_localscore='idalgo_live_'+txt_module+'_'+ref_match+'_localscore';
		var txt_visitorscore='idalgo_live_'+txt_module+'_'+ref_match+'_visitorscore';
		var o_status=document.getElementById(txt_status);
		var o_localscore=document.getElementById(txt_localscore);
		var o_visitorscore=document.getElementById(txt_visitorscore);

		o_match['REF_STATUS']=parseInt(o_match['REF_STATUS']);
		switch(o_match['REF_STATUS']){
			case 0:
				if(o_localscore){
					o_localscore.className='idalgo_color_bg_grey_01 idalgo_color_white idalgo_font_02 idalgo_font_size_21';
					o_localscore.innerHTML='';
				}
				if(o_visitorscore){
					o_visitorscore.className='idalgo_color_bg_grey_01 idalgo_color_white idalgo_font_02 idalgo_font_size_21';
					o_visitorscore.innerHTML='';
				}
				if(o_status){
					o_status.innerHTML='';
					o_status.className='div_content_idalgo_match_navigation_competition_title idalgo_font_01 idalgo_font_size_20';
				}
				break;
			case 1:
			case 2:
			case 3:
				if(o_localscore) o_localscore.className='idalgo_color_bg_status_end idalgo_color_white idalgo_font_02 idalgo_font_size_21';
				if(o_visitorscore) o_visitorscore.className='idalgo_color_bg_status_end idalgo_color_white idalgo_font_02 idalgo_font_size_21';
				if(o_status){
					o_status.innerHTML=this.idalgo_vg['LIVE']['TXT_FINISH'];
					o_status.className='div_content_idalgo_match_navigation_competition_title idalgo_font_01 idalgo_font_size_20 idalgo_color_status_end';
				}
				break;
			case 4:
			case 5:
			case 6:
			case 12:
			case 13:
			case 14:
			case 15:
			case 16:
				if(o_localscore) o_localscore.className='idalgo_color_bg_status_stop idalgo_color_white idalgo_font_02 idalgo_font_size_21';
				if(o_visitorscore) o_visitorscore.className='idalgo_color_bg_status_stop idalgo_color_white idalgo_font_02 idalgo_font_size_21';
				if(o_status){
					o_status.innerHTML=o_match['TXT_STATUS_NAME'];
					o_status.className='div_content_idalgo_match_navigation_competition_title idalgo_font_01 idalgo_font_size_20 idalgo_color_status_stop';
				}
				break;
			default:
				if(o_localscore) o_localscore.className='idalgo_color_bg_status_playing idalgo_color_white idalgo_font_02 idalgo_font_size_21';
				if(o_visitorscore) o_visitorscore.className='idalgo_color_bg_status_playing idalgo_color_white idalgo_font_02 idalgo_font_size_21';
				if(o_status){
					o_status.innerHTML=o_match['TXT_STATUS_SHORTNAME'];
					if(o_match['TXT_MINUTE']!='') o_status.innerHTML=o_status.innerHTML+'-'+o_match['TXT_MINUTE'];
					o_status.className='div_content_idalgo_match_navigation_competition_title idalgo_font_01 idalgo_font_size_20 idalgo_color_status_playing';
				}
				break;
		}
	}
}
function idalgo_jsf_display_live_change_localscore_match_navigation(o_match){
	var txt_module='content_match_navigation';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var ref_match=o_match['REF_MATCH'];

	if(o_module){
		var txt_localscore='idalgo_live_'+txt_module+'_'+ref_match+'_localscore';
		var o_localscore=document.getElementById(txt_localscore);
		if(o_localscore)
			o_localscore.innerHTML=o_match['IS_EXTRATIME']==1?o_match['NUM_LOCALSCORE_EXTRATIME']:o_match['NUM_LOCALSCORE'];
	}
}
function idalgo_jsf_display_live_change_visitorscore_match_navigation(o_match){
	var txt_module='content_match_navigation';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var ref_match=o_match['REF_MATCH'];

	if(o_module){
		var txt_visitorscore='idalgo_live_'+txt_module+'_'+ref_match+'_visitorscore';
		var o_visitorscore=document.getElementById(txt_visitorscore);
		if(o_visitorscore)
			o_visitorscore.innerHTML=o_match['IS_EXTRATIME']==1?o_match['NUM_VISITORSCORE_EXTRATIME']:o_match['NUM_VISITORSCORE'];
	}
}
function idalgo_jsf_display_live_change_chrono_match_navigation(o_match){
	var txt_module='content_match_navigation';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var ref_match=o_match['REF_MATCH'];

	if(o_module){
		var txt_status='idalgo_live_'+txt_module+'_'+ref_match+'_status';
		var o_status=document.getElementById(txt_status);

		var txt_minute=idalgo_jsf_misc_makematchtime(o_match['REF_STATUS'],o_match['DATE_LIVE'],o_match['DATE_NOW']);
		var txt_title=o_match['TXT_STATUS_SHORTNAME']+'-'+txt_minute;
		if(o_status) o_status.innerHTML=txt_title;
	}
}

/************** RESULTATS */
function idalgo_jsf_display_live_change_status_content_result(o_match){
	var txt_module='content_result';
	var txt_module_live_score='content_live';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var o_module_live_score=document.getElementById('idalgo_'+txt_module_live_score);
	var ref_match=o_match['REF_MATCH'];

	if(o_module||o_module_live_score){
		var txt_score_preview='idalgo_live_'+txt_module+'_'+ref_match+'_preview';
		var txt_score_stop='idalgo_live_'+txt_module+'_'+ref_match+'_stop';
		var txt_score_score='idalgo_live_'+txt_module+'_'+ref_match+'_score';
		var txt_status='idalgo_live_'+txt_module+'_'+ref_match+'_status';
		var txt_status_area='idalgo_live_'+txt_module+'_'+ref_match+'_status_area';
		var txt_status_area_time='idalgo_live_'+txt_module+'_'+ref_match+'_status_area_time';
		var txt_status_background='idalgo_live_'+txt_module+'_'+ref_match+'_status_background';
		var txt_localscore='idalgo_live_'+txt_module+'_'+ref_match+'_localscore';
		var txt_visitorscore='idalgo_live_'+txt_module+'_'+ref_match+'_visitorscore';
		var txt_extratimescore='idalgo_live_'+txt_module+'_'+ref_match+'_extratimescore';
		var txt_penaltyscore='idalgo_live_'+txt_module+'_'+ref_match+'_penaltyscore';

		var o_score_preview=document.getElementById(txt_score_preview);
		var o_score_stop=document.getElementById(txt_score_stop);
		var o_score_score=document.getElementById(txt_score_score);
		var o_status=document.getElementById(txt_status);
		var o_status_area=document.getElementById(txt_status_area);
		var o_status_area_time=document.getElementById(txt_status_area_time);
		var o_status_background=document.getElementById(txt_status_background);
		var o_localscore=document.getElementById(txt_localscore);
		var o_visitorscore=document.getElementById(txt_visitorscore);
		var o_extratimescore=document.getElementById(txt_extratimescore);
		var o_penaltyscore=document.getElementById(txt_penaltyscore);

		o_match['REF_STATUS']=parseInt(o_match['REF_STATUS']);
		switch(o_match['REF_STATUS']){
			case 0:
				if(o_score_preview) o_score_preview.style.display='';
				if(o_score_stop) o_score_stop.style.display='none';
				if(o_score_score) o_score_score.style.display='none';
				if(o_localscore) o_localscore.className='idalgo_color_status_not_played idalgo_font_02 idalgo_font_size_10';
				if(o_visitorscore) o_visitorscore.className='idalgo_color_status_not_played idalgo_font_02 idalgo_font_size_10';
				if(o_status) o_status.innerHTML='';
				if(o_status_area) o_status_area.style.display='none';
				if(o_status_area_time) o_status_area_time.style.display='block';
				if(o_status_background) o_status_background.className='div_idalgo_block_matchlist_status_content idalgo_color_bg_status_not_played';
				if(o_extratimescore) o_extratimescore.style.display='none';
				if(o_penaltyscore) o_penaltyscore.style.display='none';
				break;
			case 4:
			case 5:
			case 6:
				if(o_score_preview) o_score_preview.style.display='none';
				if(o_score_stop) { o_score_stop.style.display=''; o_score_stop.innerHTML=o_match['TXT_STATUS_SHORTNAME']; }
				if(o_score_score) o_score_score.style.display='none';
				if(o_localscore) o_localscore.className='idalgo_color_status_stop idalgo_font_02 idalgo_font_size_10';
				if(o_visitorscore) o_visitorscore.className='idalgo_color_status_stop idalgo_font_02 idalgo_font_size_10';
				if(o_status) o_status.innerHTML='';
				if(o_status_area) o_status_area.style.display='none';
				if(o_status_area_time) o_status_area_time.style.display='block';
				if(o_extratimescore) o_extratimescore.style.display='none';
				if(o_penaltyscore) o_penaltyscore.style.display='none';
				break;
			default:
				if(o_match['REF_STATUS']==1||o_match['REF_STATUS']==2||o_match['REF_STATUS']==3){
					var txt_minute=this.idalgo_vg['LIVE']['TXT_FINISH'];
					var class_color_bg='idalgo_color_bg_status_end';
					var class_color='idalgo_color_status_end';
				}
				if(o_match['REF_STATUS']==7||o_match['REF_STATUS']==8||o_match['REF_STATUS']==9||o_match['REF_STATUS']==10){
					var txt_minute=(o_match['TXT_MINUTE']!='')?o_match['TXT_MINUTE']:'-';
					var class_color_bg='idalgo_color_bg_status_playing';
					var class_color='idalgo_color_status_playing';
				}
				if(o_match['REF_STATUS']==11){
					var txt_minute=o_match['TXT_STATUS_SHORTNAME'];
					var class_color_bg='idalgo_color_bg_status_playing';
					var class_color='idalgo_color_status_playing';
				}
				if(o_match['REF_STATUS']==12||o_match['REF_STATUS']==13||o_match['REF_STATUS']==14||o_match['REF_STATUS']==15||o_match['REF_STATUS']==16){
					var txt_minute=o_match['TXT_STATUS_SHORTNAME'];
					var class_color_bg='idalgo_color_bg_status_stop';
					var class_color='idalgo_color_status_stop';
				}
				if(o_score_preview) o_score_preview.style.display='none';
				if(o_score_stop) o_score_stop.style.display='none';
				if(o_score_score) o_score_score.style.display='';
				if(o_status) o_status.innerHTML=txt_minute;
				if(o_localscore) o_localscore.className='span_idalgo_content_result_date_match_score_local '+class_color+' idalgo_font_02 idalgo_font_size_10';
				if(o_visitorscore) o_visitorscore.className='span_idalgo_content_result_date_match_score_visitor '+class_color+' idalgo_font_02 idalgo_font_size_10';
				if(o_status_area) o_status_area.style.display='block';
				if(o_status_area_time) o_status_area_time.style.display='none';
				if(o_status_background) o_status_background.className=class_color_bg+' div_idalgo_block_matchlist_status_content';
				if(o_extratimescore) {
					if(o_match['IS_EXTRATIME']==1&&o_match['IS_PENALTY']==0) {
						o_extratimescore.className=class_color+' span_idalgo_content_result_date_match_score_extra idalgo_font_01 idalgo_font_size_03';
						o_extratimescore.style.display='';
					}
					else
						o_extratimescore.style.display='none';
				}
				if(o_penaltyscore) {
					if(o_match['IS_PENALTY']==1) {
						o_penaltyscore.className=class_color+' span_idalgo_content_result_date_match_score_extra idalgo_font_01 idalgo_font_size_03';
						o_penaltyscore.style.display='';
					}
					else
						o_penaltyscore.style.display='none';
				}
				break;
		}
	}
}
function idalgo_jsf_display_live_change_localscore_content_result(o_match){
	var txt_module='content_result';
	var txt_module_live_score='content_live';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var o_module_live_score=document.getElementById('idalgo_'+txt_module_live_score);
	var ref_match=o_match['REF_MATCH'];

	if(o_module||o_module_live_score){
		var num_score=o_match['IS_EXTRATIME']==1?o_match['NUM_LOCALSCORE_EXTRATIME']:o_match['NUM_LOCALSCORE'];

		var txt_localscore='idalgo_live_'+txt_module+'_'+ref_match+'_localscore';
		var txt_localalert='idalgo_live_'+txt_module+'_'+ref_match+'_local_alert';

		var o_localscore=document.getElementById(txt_localscore);
		var o_localalert=document.getElementById(txt_localalert);

		if(o_localscore) o_localscore.innerHTML=num_score;
		if(num_score>0)
			if(o_localalert) 
				o_localalert.innerHTML=this.idalgo_vg['LIVE']['LIST_LANGUAGE']['TXT_ACTION'][1];
	}
}
function idalgo_jsf_display_live_change_visitorscore_content_result(o_match){
	var txt_module='content_result';
	var txt_module_live_score='content_live';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var o_module_live_score=document.getElementById('idalgo_'+txt_module_live_score);
	var ref_match=o_match['REF_MATCH'];

	if(o_module||o_module_live_score){
		var num_score=o_match['IS_EXTRATIME']==1?o_match['NUM_VISITORSCORE_EXTRATIME']:o_match['NUM_VISITORSCORE'];

		var txt_visitorscore='idalgo_live_'+txt_module+'_'+ref_match+'_visitorscore';
		var txt_visitoralert='idalgo_live_'+txt_module+'_'+ref_match+'_visitor_alert';

		var o_visitorscore=document.getElementById(txt_visitorscore);
		var o_visitoralert=document.getElementById(txt_visitoralert);
		
		if(o_visitorscore) o_visitorscore.innerHTML=num_score;
		if(num_score>0)
			if(o_visitoralert) 
				o_visitoralert.innerHTML=this.idalgo_vg['LIVE']['LIST_LANGUAGE']['TXT_ACTION'][1];
	}
}
function idalgo_jsf_display_live_change_chrono_content_result(o_match){
	var txt_module='content_result';
	var txt_module_live_score='content_live';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var o_module_live_score=document.getElementById('idalgo_'+txt_module_live_score);
	var ref_match=o_match['REF_MATCH'];

	if(o_module||o_module_live_score){
		var txt_status='idalgo_live_'+txt_module+'_'+ref_match+'_status';
		var o_status=document.getElementById(txt_status);

		if(o_match['REF_STATUS']==7||o_match['REF_STATUS']==8||o_match['REF_STATUS']==9||o_match['REF_STATUS']==10){
			var txt_minute=idalgo_jsf_misc_makematchtime(o_match['REF_STATUS'],o_match['DATE_LIVE'],o_match['DATE_NOW']);
			var txt_title=txt_minute;
			if(o_status) o_status.innerHTML=txt_title;
		}
	}
}
function idalgo_jsf_display_live_change_event_content_result(o_match){
	var txt_module='content_result';
	var txt_module_live_score='content_live';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var o_module_live_score=document.getElementById('idalgo_'+txt_module_live_score);
	var ref_match=o_match['REF_MATCH'];

	var class_local='idalgo_font_size_02';
	var class_visitor='idalgo_font_size_02';
	if(parseInt(o_match['NUM_LOCALSCORE'])>parseInt(o_match['NUM_VISITORSCORE'])) class_local='idalgo_font_size_05';
	if(parseInt(o_match['NUM_LOCALSCORE'])<parseInt(o_match['NUM_VISITORSCORE'])) class_visitor='idalgo_font_size_05';

	if(o_module||o_module_live_score){
		var txt_matchline='idalgo_live_'+txt_module+'_'+ref_match+'_match';
		var txt_localscore='idalgo_live_'+txt_module+'_'+ref_match+'_localscore';
		var txt_visitorscore='idalgo_live_'+txt_module+'_'+ref_match+'_visitorscore';
		var txt_scoreseparate='idalgo_live_'+txt_module+'_'+ref_match+'_scoreseparate';
		var txt_local='idalgo_live_'+txt_module+'_'+ref_match+'_local';
		var txt_visitor='idalgo_live_'+txt_module+'_'+ref_match+'_visitor';

		var o_matchline=document.getElementById(txt_matchline);
		var o_localscore=document.getElementById(txt_localscore);
		var o_visitorscore=document.getElementById(txt_visitorscore);
		var o_scoreseparate=document.getElementById(txt_scoreseparate);
		var o_local=document.getElementById(txt_local);
		var o_visitor=document.getElementById(txt_visitor);

		if(o_matchline) o_matchline.className='div_idalgo_content_result_date_match idalgo_color_bg_02';
		if(o_localscore) o_localscore.className='span_idalgo_content_result_date_match_score_local idalgo_color_white idalgo_font_02 idalgo_font_size_10';
		if(o_visitorscore) o_visitorscore.className='span_idalgo_content_result_date_match_score_visitor idalgo_color_white idalgo_font_02 idalgo_font_size_10';
		if(o_scoreseparate) o_scoreseparate.className='span_idalgo_content_result_date_match_score_separate idalgo_color_white idalgo_font_02 idalgo_font_size_10';
		if(o_local) o_local.className='a_idalgo_content_result_date_match_team_local idalgo_color_white idalgo_font_01 '+class_local;
		if(o_visitor) o_visitor.className='a_idalgo_content_result_date_match_team_visitor idalgo_color_white idalgo_font_01 '+class_visitor;
	}
}
function idalgo_jsf_display_live_change_event_end_content_result(o_match){
	var txt_module='content_result';
	var txt_module_live_score='content_live';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var o_module_live_score=document.getElementById('idalgo_'+txt_module_live_score);
	var ref_match=o_match['REF_MATCH'];

	var class_local='idalgo_font_size_02';
	var class_visitor='idalgo_font_size_02';
	if(o_match['NUM_LOCALSCORE']>o_match['NUM_VISITORSCORE']) class_local='idalgo_font_size_05';
	if(o_match['NUM_LOCALSCORE']<o_match['NUM_VISITORSCORE']) class_visitor='idalgo_font_size_05';

	var class_status='idalgo_color_status_playing';
	if(o_match['REF_STATUS']==1||o_match['REF_STATUS']==2||o_match['REF_STATUS']==3) class_status='idalgo_color_status_end';
	if(o_match['REF_STATUS']==12||o_match['REF_STATUS']==13||o_match['REF_STATUS']==14||o_match['REF_STATUS']==15||o_match['REF_STATUS']==16) class_status='idalgo_color_status_stop';

	if(o_module||o_module_live_score){
		var txt_matchline='idalgo_live_'+txt_module+'_'+ref_match+'_match';
		var txt_localscore='idalgo_live_'+txt_module+'_'+ref_match+'_localscore';
		var txt_visitorscore='idalgo_live_'+txt_module+'_'+ref_match+'_visitorscore';
		var txt_scoreseparate='idalgo_live_'+txt_module+'_'+ref_match+'_scoreseparate';
		var txt_local='idalgo_live_'+txt_module+'_'+ref_match+'_local';
		var txt_visitor='idalgo_live_'+txt_module+'_'+ref_match+'_visitor';
		var txt_localalert='idalgo_live_'+txt_module+'_'+ref_match+'_local_alert';
		var txt_visitoralert='idalgo_live_'+txt_module+'_'+ref_match+'_visitor_alert';

		var o_matchline=document.getElementById(txt_matchline);
		var o_localscore=document.getElementById(txt_localscore);
		var o_visitorscore=document.getElementById(txt_visitorscore);
		var o_scoreseparate=document.getElementById(txt_scoreseparate);
		var o_local=document.getElementById(txt_local);
		var o_visitor=document.getElementById(txt_visitor);
		var o_localalert=document.getElementById(txt_localalert);
		var o_visitoralert=document.getElementById(txt_visitoralert);

		if(o_matchline) o_matchline.className='div_idalgo_content_result_date_match';
		if(o_localscore) o_localscore.className='span_idalgo_content_result_date_match_score_local '+class_status+' idalgo_font_02 idalgo_font_size_10';
		if(o_visitorscore) o_visitorscore.className='span_idalgo_content_result_date_match_score_visitor '+class_status+' idalgo_font_02 idalgo_font_size_10';
		if(o_scoreseparate) o_scoreseparate.className='span_idalgo_content_result_date_match_score_separate idalgo_color_grey_05 idalgo_font_02 idalgo_font_size_10';
		if(o_local) o_local.className='a_idalgo_content_result_date_match_team_local idalgo_color_grey_05 idalgo_font_01 '+class_local;
		if(o_visitor) o_visitor.className='a_idalgo_content_result_date_match_team_visitor idalgo_color_grey_05 idalgo_font_01 '+class_visitor;
		if(o_localalert) o_localalert.innerHTML='';
		if(o_visitoralert) o_visitoralert.innerHTML='';
	}
}
function idalgo_jsf_display_live_change_action_content_result(o_match,o_action){
	var txt_module='content_result';
	var txt_module_live_score='content_live';
	var o_module=document.getElementById('idalgo_'+txt_module);
	var o_module_live_score=document.getElementById('idalgo_'+txt_module_live_score);
	var ref_match=o_match['REF_MATCH'];

	if(o_module||o_module_live_score){
		var txt_team='_visitor';
		var class_team='div_idalgo_content_result_date_match_red_visitor';
		if(o_match['REF_LOCALTEAM']==o_action['REF_TEAM']){
			txt_team='_local';
			class_team='div_idalgo_content_result_date_match_red_local';
		}

		var txt_team='idalgo_live_'+txt_module+'_'+ref_match+txt_team;

		var o_team=document.getElementById(txt_team);

		if(o_team){
			var oDiv=document.createElement('div');
			oDiv.className=class_team+" idalgo_picture_action_red3";
			o_team.parentNode.appendChild(oDiv);
		}
	}
}
/*** Module loadmodule ***/
last_idalgo_modules = new Array();
for(i=0;i<=24;i++) {
	last_idalgo_modules[i]=new Array("","");
}

function LoadModules(modules) {
	if(document.getElementById("idalgo")) {
		area=new Array('h1','header_01','header_02','header_03','header_04','content_left','content_01','content_02','content_03','content_04','content_05','content_06','content_07','content_08','content_right','block_01','block_02','block_03','block_04','block_05','block_06','block_07','block_08','footer_01');
		for(i=0;i<modules.length;i++) {
			if(!(last_idalgo_modules[i][0]==modules[i][0] && last_idalgo_modules[i][1]==modules[i][1])) {
				if(modules[i][1]=="clean") {
					document.getElementById('idalgo_'+area[i]).innerHTML="";
				} else {
					loadModuleTarget('idalgo_'+area[i],modules[i][0],modules[i][1]); 
				}
				last_idalgo_modules[i][0]=modules[i][0];
				last_idalgo_modules[i][1]=modules[i][1];
			}
		}
		ClickAudience();
		return false;
	}
	else {
		return true;
	}
}

function ClickAudience() {
	idalgo_audience = document.getElementById("idalgo_audience");
	if(idalgo_audience) {
		idalgo_audience.src= "/cache/page/audience.html";
	}
}

function ia(module,params) { return new Array(module,params); }

var vg_loadmodule_url = "/cache/page/loadmodule.php";
var vg_req = new Array(); // tableau de chargement des contenus en modules //

function loadModuleDone(target) {
    if (vg_req[target].readyState == 4) {
        if (vg_req[target].status == 200) {
			var reponse = vg_req[target].responseText;
            document.getElementById(target).innerHTML = reponse;
        } else {
            document.getElementById(target).innerHTML="Erreur ("+vg_req[target].statusText+") lors du chargement du contenu.";
        }
    }
}
function loadModule(module, args) { loadModuleTarget(module, module, args); }
function loadModuleTarget(target, module, args) {
	loadModuleTargetSplash(target, module, args, false);
}
function loadModuleTargetSplash(target, module, args, splash) {
	var url = vg_loadmodule_url+"?type=html&module="+module;
	if(args != "") url += "&args="+escape(args);
    // -- Si on veut on peut placer un message d'attente pour le chargement ici --
	if(splash) document.getElementById(target).innerHTML = '<div id="idalgo_'+module+'" style="text-align:center;background:none;background-color:white;"></div>';
    if (window.XMLHttpRequest) { vg_req[target] = new XMLHttpRequest(); vg_req[target].onreadystatechange = function() {loadModuleDone(target);}; vg_req[target].open("GET", url, true); vg_req[target].send(null); }
 	else // IE/Windows ActiveX version
		if (window.ActiveXObject) { vg_req[target] = new ActiveXObject("Microsoft.XMLHTTP"); if (vg_req[target]) { vg_req[target].onreadystatechange = function() {loadModuleDone(target);}; vg_req[target].open("GET", url, true); vg_req[target].send(); } }
}
function idalgo_jsf_round_corner_05_02(txt_name,is_class_color,border,background,txt_type_display){var div_main=document.getElementById('idalgo_rca_'+txt_name);if(div_main){var txt_content=div_main.getElementsByTagName('div')[0].innerHTML;var class_border='';var color_border='';var class_background='';var color_background='';if(is_class_color){class_border=' '+border;class_background=' '+background;}else{color_border=' style="background-color:'+border+';"';color_background=' style="background-color:'+background+';"';}var txt_return='';if(txt_type_display=='full'||txt_type_display=='top'||txt_type_display=='left'||txt_type_display=='top_left'){txt_return+='<div class="div_idalgo_corner_05_2_topleft">';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_2"></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1"></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_50"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_3'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1"></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_2"></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_3"></div>';txt_return+='</div>';}if(txt_type_display=='full'||txt_type_display=='top'||txt_type_display=='right'||txt_type_display=='top_right'){txt_return+='<div class="div_idalgo_corner_05_2_topright">';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_2"></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1"></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_50"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_3'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1"></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_2"></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_3"></div>';txt_return+='</div>';}if(txt_type_display=='full'||txt_type_display=='bottom'||txt_type_display=='left'||txt_type_display=='bottom_left'){txt_return+='<div class="div_idalgo_corner_05_2_bottomleft">';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_3"></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_2"></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1"></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_1"></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_50"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_3'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_left div_idalgo_corner_w_2"></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_left div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div>';txt_return+='</div>';}if(txt_type_display=='full'||txt_type_display=='bottom'||txt_type_display=='right'||txt_type_display=='bottom_right'){txt_return+='<div class="div_idalgo_corner_05_2_bottomright">';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_3"></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_2"></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+'"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_40"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1"></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_1"></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_50"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_3'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_right div_idalgo_corner_w_2"></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_25"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_75"'+color_border+'></div><div class="div_idalgo_corner_right div_idalgo_corner_w_1'+class_border+' idalgo_opacity_90"'+color_border+'></div>';txt_return+='</div>';}if(txt_type_display=='full'){txt_return+='<div class="div_idalgo_corner_05_2_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='top'){txt_return+='<div class="div_idalgo_corner_05_2_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left_bottom'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right_bottom'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom_full'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='top_left'){txt_return+='<div class="div_idalgo_corner_05_2_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom_full'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='top_right'){txt_return+='<div class="div_idalgo_corner_05_2_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom_full'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='bottom'){txt_return+='<div class="div_idalgo_corner_05_2_top_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='bottom_left'){txt_return+='<div class="div_idalgo_corner_05_2_top_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='bottom_right'){txt_return+='<div class="div_idalgo_corner_05_2_top_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='left'){txt_return+='<div class="div_idalgo_corner_05_2_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom'+class_border+'"'+color_border+'></div>';}if(txt_type_display=='right'){txt_return+='<div class="div_idalgo_corner_05_2_top'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_left_full'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_right'+class_border+'"'+color_border+'></div>';txt_return+='<div class="div_idalgo_corner_05_2_bottom'+class_border+'"'+color_border+'></div>';}txt_return+='<div class="div_idalgo_corner_05_2_content'+class_background+'"'+color_background+'>';txt_return+=txt_content;txt_return+='</div>';div_main.className='div_idalgo_corner_05_2_full_background';div_main.innerHTML=txt_return;}}
