
function addToOnchange(idfield,onchange2)
{
	if(document.getElementById("chk"+idfield))
		addEvent(document.getElementById('chk'+idfield),'click',onchange2,false);
	else
		addEvent(document.getElementById(idfield),'change',onchange2,false);
	
}

/// ajout d'un evenement

function addEvent(obj,evType,fn,capt){ 

  if(obj.addEventListener){

    obj.addEventListener(evType,fn,capt);return true;} // NS6+ 

  else if(obj.attachEvent)obj.attachEvent("on"+evType,fn) // IE 5+ 

  else {

   return false;

  } 

} 

// ajout d'un evenement sur le onload

function addOnLoad(functiontolaunch)
{
	addEvent(window,"load",functiontolaunch,false);
}










function getElementByIdLike(id)
{
	var allDivs = document.getElementsByTagName("*");
	
	for(var i=0; i<allDivs.length ; i++)
		if(allDivs[i].id.match(id))
			return allDivs[i];
}
function getElementsByIdLike(id)
{
	var allDivs = document.getElementsByTagName("*");
	var array = new Array();
	for(var i=0; i<allDivs.length ; i++)
		if(allDivs[i].id.match(id))
			array.push(allDivs[i]);

	return array;
}


function getElementsByClass(className,idparent)
{
	
	if(idparent)
	{
		if(typeof(idparent) == 'string')
			var doc = document.getElementById(idparent);
		else
			var doc = idparent;
	}
	else
		var doc = document;
	elements = new Array();
	var allElements = doc.getElementsByTagName('*');
	for(var i=0; i<allElements.length; i++)
	{
		if(allElements[i].className.match(className))
			elements.push(allElements[i]);	
	}
	
	return elements;

}




function getWindowTop()
{
	
	if(document.documentElement)
	{
		var top = document.documentElement.scrollTop;
	}
	else
		var top = document.body.pageYOffset;
	
		return top;
}




function isIe6()
{
	var IE6 = false; 

	var strChUserAgent = navigator.userAgent;
	var intSplitStart = strChUserAgent.indexOf("(",0);
	var intSplitEnd = strChUserAgent.indexOf(")",0);
	var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
	
	if(strChMid.indexOf("MSIE 6") != -1) IE6 = true;

	return IE6;
}


//// AJAX



function ajaxInsert(url,after)
{
	new Ajax.Request(url, {
					 method:'post', onSuccess : after
					
					 });				
	return false;
}

function ajaxRequestPrompt(url)
{
	var val = prompt('Veuillez entrer la valeur');
	new Ajax.Request(url+val, {
					 method:'post' 
					
					 });				
	return false;
}


// DETECTION DE FLASH

function detectFlash()
{
	if( navigator.mimeTypes.length > 0 )
		return navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin != null;
	else if( window.ActiveXObject )
	{
		try
		{
			new ActiveXObject( "ShockwaveFlash.ShockwaveFlash" );
			return true;
		}
		catch( oError )
		{
			return false;
		}
	}
	else
		return false;
}



//// outerhtml

function setOuterHtml(node,html)
{
			
	var idnode = node.id;
	
	var parent = node.parentNode;
	
	var htmlNode = document.createElement('div');
	htmlNode.innerHTML = html;
	parent.replaceChild(htmlNode,node);
	
	var newNode = document.getElementById(idnode);

	parent.insertBefore(newNode,htmlNode);
	parent.removeChild(htmlNode);
	
	
}




// SIMPLIFICATION DU INNERHTML


function getBaliseContent(id)
{

	
	if(document.getElementById(id))
	{

		return document.getElementById(id).innerHTML;
	}
	else
		return '';
}





//// CONNAITRE LE FORMULAIRE A PARTIR DUN CHAMP


function getFormByField(field)
{
	while(field.parentNode)
	{
		field = field.parentNode;	
		if(field.tagName.toUpperCase() == 'FORM')
			return field;
	}
}



///// Recuperer la valeur d'un champ

function getFieldValue(idfield)
{

	if(document.getElementById(idfield+'_id'))
		idfield = idfield+'_id';
	//if(document.getElementById('is_relationelement_'+idfield))
		//idfield = idfield+'[]';
	
	var field = document.getElementById(idfield);

	var type = field.tagName;
	var value = '';
	

	if(document.getElementById('is_relationelement_'+idfield))
	{
		var bascule = document.getElementById(idfield+'[]');	
		for(var i=0; i<bascule.options.length; i++)
		{
			if(bascule.options[i].value && bascule.options[i].value != 'undefined' && bascule.options[i].value != 'null')
			{
				if(value)	
					value += ';';
				value += bascule.options[i].value;
			}
		}
	}
	else if(type == 'SELECT')
		value = field.options[field.selectedIndex].value
	else if(type == 'INPUT' && field.type.toUpperCase() == 'CHECKBOX')
	{
		value = (field.checked)?'1':'0';
	}
	else
		value = field.value;
		
	return value;
}



//// DETECTION DE LA PRESSION DUNE TOUCHE



function  DetecteTouche(e, touche)
{
	var EnterKey;
	
	if(document.all) 
	{
		ev = window.event;
		EnterKey = ev.keyCode;
	}
	else
	{        
		EnterKey = e.keyCode;
	}
	
	return  (EnterKey == touche) 
	
}


///////

function prechargimg() 
{
	var doc=document;
	if(doc.images)
	{ 
		if(!doc.precharg)
			doc.precharg=new Array();
		var i,j=doc.precharg.length,x=prechargimg.arguments; 
		for(i=0; i<x.length; i++)
			if (x[i].indexOf("#")!=0)
			{ 
				doc.precharg[j]=new Image;
				doc.precharg[j++].src=x[i];
			}
	}
}


//////

//////* LTBOX


var LTBox = new LTBox;
LTBox.preload();




function LTBox(content, options)
{
	
	this.preload = function()
	{

	
		prechargimg('images/corner-top-right.png','images/corner-top-left.png','images/corner-bottom-right.png','images/corner-bottom-left.png');


		
	}
	
	
	this.show = function(content, options)
	{
			
			if(!options)
				options = {};
			
			var backgroundOpacity = (options.backgroundOpacity)?options.backgroundOpacity:60;
			var backgroundColor = (options.backgroundColor)?options.backgroundColor:'#000';
			var contentOpacity = (options.contentOpacity)?options.contentOpacity:80; 
			var after = options.after;
		 
			
			var width = (options.width)?options.width:500;
			var height = (options.height)?options.height:350;
			var display_title = (options.display_title)?options.display_title:false;
			
			
			
			if(isIe6())
			{
				allSelect = document.getElementsByTagName('select');
				for(var i=0; i<allSelect.length; i++)
				{
					allSelect[i].oldVisibility = allSelect[i].style.visibility;
					allSelect[i].style.visibility = "hidden";
				}
			}
			
			
			if(!document.getElementById("LTBackground"))
			{
				var LTBackground = document.createElement("div");
				LTBackground.id = "LTBackground";
				LTBackground.style.top = getWindowTop()+'px';
				LTBackground.style.left = "-5px";
				LTBackground.style.padding = "10px";
				LTBackground.style.width = "99%";
				if(isIe6())			
					LTBackground.style.height = screen.availHeight+'px';
				else
					LTBackground.style.height = "98%";
					
		
				LTBackground.style.position = "absolute";
				LTBackground.style.display = "none";
				LTBackground.onclick = function()
				{
					hideLtBox();
					//document.getElementById("LTBackground").style.display = "none";
					//document.getElementById("LTContent").style.display = "none";
				};		
				//LTBackground.style.opacity = "0.7";
				LTBackground.style.zIndex = "98";
				LTBackground.style.backgroundColor = backgroundColor;
				
			
				
				document.body.appendChild(LTBackground);
			}
			
			if(!isIe6())
				document.body.style.overflow = "hidden";
			
		
			if(!document.getElementById("LTContent"))
			{
				var LtContentTop = document.createElement('div');
				LtContentTop.style.height = '14px';
				LtContentTop.style.width = width+'px';
				
				var LtContentTopLeft = document.createElement('span');
				LtContentTopLeft.style.height = '14px';
				LtContentTopLeft.style.width = '16px';
				LtContentTopLeft.style.display = 'inline-block';
				LtContentTopLeft.style.backgroundImage = 'url(/images/corner-top-left.png)';
				
				var LtContentTopCenter = document.createElement('span');
				LtContentTopCenter.style.height = '14px';
				LtContentTopCenter.style.width = (width-32)+'px';
				LtContentTopCenter.style.display = 'inline-block';
				LtContentTopCenter.style.backgroundColor = '#FFF';
				
				var LtContentTopRight = document.createElement('span');
				LtContentTopRight.style.height = '14px';
				LtContentTopRight.style.width = '16px';
				LtContentTopRight.style.display = 'inline-block';
				LtContentTopRight.style.backgroundImage = 'url(/images/corner-top-right.png)';
				
				LtContentTop.appendChild(LtContentTopLeft);
				LtContentTop.appendChild(LtContentTopCenter);
				LtContentTop.appendChild(LtContentTopRight);
				
		
				var LTCadre = document.createElement("div");
				LTCadre.id = "LTCadre";
				LTCadre.style.marginLeft = "50%";
				LTCadre.style.left = "-"+(width/2)+"px";
				LTCadre.style.top = (getWindowTop()+50)+'px';
				//LTCadre.style.padding = "10px";
				LTCadre.style.width = width+"px";
				LTCadre.style.zIndex = "99";
				LTCadre.style.fontFamily = "calibri, arial";
				LTCadre.style.fontSize = "12px";
				LTCadre.style.overflow = "visible";
				LTCadre.style.position = "absolute";
				//LTCadre.style.border = "solid 2px #666";
				//LTCadre.style.backgroundColor = "#FFF";
		
		
				var LTContent = document.createElement("div");
				LTContent.id = "LTContent";
				//LTContent.style.border = "solid 2px #666";
				LTContent.style.padding = "10px";
				LTContent.style.minHeight = height+'px';
				LTContent.style.backgroundColor = "#FFF";
			
				
			
			
			
			
				var LtContentBottom = document.createElement('div');
				LtContentBottom.style.height = '14px';
				LtContentBottom.style.width = width+'px';
				
				var LtContentBottomLeft = document.createElement('span');
				LtContentBottomLeft.style.height = '14px';
				LtContentBottomLeft.style.width = '16px';
				LtContentBottomLeft.style.display = 'inline-block';
				LtContentBottomLeft.style.backgroundImage = 'url(/images/corner-bottom-left.png)';
				
				var LtContentBottomCenter = document.createElement('span');
				LtContentBottomCenter.style.height = '14px';
				LtContentBottomCenter.style.width = (width-32)+'px';
				LtContentBottomCenter.style.display = 'inline-block';
				LtContentBottomCenter.style.backgroundColor = '#FFF';
				
				var LtContentBottomRight = document.createElement('span');
				LtContentBottomRight.style.height = '14px';
				LtContentBottomRight.style.width = '16px';
				LtContentBottomRight.style.display = 'inline-block';
				LtContentBottomRight.style.backgroundImage = 'url(/images/corner-bottom-right.png)';
			
				LtContentBottom.appendChild(LtContentBottomLeft);
				LtContentBottom.appendChild(LtContentBottomCenter);
				LtContentBottom.appendChild(LtContentBottomRight);
			
		
				
				LTCadre.appendChild(LtContentTop);
				LTCadre.appendChild(LTContent);
				LTCadre.appendChild(LtContentBottom);
				
				
				
		
				var LTClose = document.createElement("div");
				LTClose.id = "LTClose";
				LTClose.style.right = "4px";
				LTClose.style.top = "4px";
				LTClose.style.padding = "3px";
				LTClose.style.fontWeight = "bold";
				LTClose.style.color = "#343434";
				LTClose.style.zIndex = "99";
				LTClose.style.position = "absolute";
				LTClose.onmouseover = function()
				{
					this.style.color = "#000";
				}
				LTClose.onmouseout = function()
				{
					this.style.color = "#343434";
				}
				
				LTClose.style.fontSize = "17px";
				LTClose.innerHTML = "X";
				LTClose.style.cursor = "pointer";
				LTClose.onclick = function()
				{
					hideLtBox();
				};		
		
		
		
			
				LTCadre.style.display = "none";
				document.body.appendChild(LTCadre); 
			}
			
		
			
		
			
			
			document.getElementById("LTBackground").style.display = "block";
		
			
			
			changeOpacity
			(
				'LTBackground',
				0,
				backgroundOpacity,
				10,
				function()
				{
					document.getElementById('LTCadre').style.display = "block";
					changeOpacity
					(
						'LTCadre',
						0,
						contentOpacity,
						5,
						function()
						{
		
							document.getElementById("LTContent").innerHTML = content;
							document.getElementById("LTContent").appendChild(LTClose); 	
							if(after)
								after();
						}			
					);
					
					
				
				
				}
			);
			
			window.onscroll = function()
			{
				document.getElementById('LTBackground').style.top = getWindowTop()+'px';
				document.getElementById('LTCadre').style.top = (getWindowTop()+50)+'px';	
				
			}
	
	}
	
	this.hide = function()
	{

			document.body.removeChild(document.getElementById('LTBackground')); 
			document.body.removeChild(document.getElementById('LTCadre'));  	
			if(!isIe6())
				document.body.style.overflow = "auto";
				
			if(isIe6())
			{
				allSelect = document.getElementsByTagName('select');
				for(var i=0; i<allSelect.length; i++)
					allSelect[i].style.visibility = allSelect[i].oldVisibility;
			}

	}


	
}






///// mouse loeader


var mouseLoader = new mouseLoader();

function mouseLoader()
{
	this.show = function()
	{
		if(this.running)
			return false;
		if(!document.getElementById("loaderDiv"))
		{
			
			var loaderDiv = document.createElement("div");
			loaderDiv.id = "mouseloaderDiv";
			loaderDiv.style.top = getWindowTop()+'px';
			loaderDiv.style.left = "-5px";
			loaderDiv.style.padding = "10px";
			loaderDiv.style.width = "99%";
			loaderDiv.style.height = "98%";
			loaderDiv.style.position = "absolute";
			loaderDiv.style.display = "none";
			loaderDiv.style.zIndex = "98";
			loaderDiv.style.cursor = "wait";

			
			
			var loader = document.createElement("img");
			loader.src = "images/ajax-loader2.gif";
			loader.id = "mouseloader";
			loader.style.top = "10px";
			loader.style.left = "10px";
			loader.style.position = "absolute";
			loader.style.display = "none";
			loader.style.zIndex = "99";
			
		
			
			
			
			document.body.appendChild(loaderDiv);
			document.body.appendChild(loader);
			
	
		}
		
		document.getElementById("mouseloaderDiv").style.display = "block";
		document.getElementById("mouseloader").style.display = "block";
		
		this.running = 1;
		window.onscroll = function()
		{
			document.getElementById('mouseloaderDiv').style.top = getWindowTop()+'px';
			document.getElementById('mouseloader').style.top = getWindowTop()+10+'px';
		}
	}
	this.hide = function()
	{
		document.getElementById("mouseloaderDiv").style.display = "none";
		document.getElementById("mouseloader").style.display = "none";
		this.running = 0;
	}
}


function showDivDegrade(divid,height,width,speed,afterFunction)
{

	if(!speed)
		speed = 5;
	
	var div = document.getElementById(divid)
	if(!div.isOpeningInDegrade)
	{
		div.style.height = '0px';
		div.style.width = '0px';
		div.style.display = 'block';
	}
	
	div.isOpeningInDegrade = 1;
	
	var currentHeight = parseInt(div.style.height);
	var currentWidth = parseInt(div.style.width);
	
	div.style.height = (currentHeight+speed)+'px';
	div.style.width = (currentWidth+speed)+'px';
	
	currentHeight = currentHeight+speed	
	if(currentWidth < width)
	{
		var timeout = function()
		{
			showDivDegrade(divid,height,width,speed,afterFunction);
		}
		setTimeout(timeout,1);	
	}
	else
	{
		div.isOpeningInDegrade = 0;
		if(afterFunction)
			afterFunction();
	}
}



function openDivProg(divid,options)
{

	if(!options)
		options = {};
		
	var speed = (options.speed)?options.speed:5;
	var height = options.height;
	var startHeight = options.startHeight;
	var after = options.after;
	var div = document.getElementById(divid);
	
	if(!height)
	{
		
		div.style.display = "block";
		var autoHeight = div.offsetHeight;
		div.style.display = "none";
		
		height = autoHeight;
		options.height = height;
		
	}
	
	if(!options.sens)
	{
		if(height > startHeight)
			options.sens = 'up';
		else
			options.sens = 'down';		
	}
	
	var sens = options.sens;
	
	
	
	
	
	
				
		if(!div.isOpeningInDegrade)
		{
			div.style.overflow = 'hidden';
			div.style.height = startHeight+'px';
			div.style.display = 'block';
		}
		
		div.isOpeningInDegrade = 1;
		
		
		var currentHeight = parseInt(div.style.height);
		if(sens == 'up')
			var newHeight = (currentHeight+speed)+'px';
		else
			var newHeight = (currentHeight-speed)+'px';
	
		div.style.height = newHeight;
	
		var currentValue = parseInt(newHeight);
		var finalValue = height;
	
		
			
		
	
		if( ( sens == 'up' && currentValue < finalValue) || ( sens == 'down' && currentValue > finalValue ) )
		{
			var timeout = function()
			{
				openDivProg(divid,options)
			}
			setTimeout(timeout,1);	
		}
		else
		{
			div.isOpeningInDegrade = 0;
			if(sens == 'up')
				div.style.overflow = '';
			div.isOpen = 1;
			if(after)
				after();
		}
	

}


//// CHANGEMENT D'OPACITE DUNE DIV

function changeOpacity(divid,begin,end,speed,after)
{

	if(!speed)
		speed = 1;
	var opacity = 0;
	
	var div = document.getElementById(divid)
	
	div.isChangingOpacity = 1;
	opacity = begin;		
	
	
	if(begin<end)
		var sens = 1;
	else
		var sens = 0

	
	if(sens == 1)
		opacity = opacity + speed;
	else
		opacity = opacity - speed;
		
	if(opacity > 100)
		opacity = 100;
	if(opacity < 0)
		opacity = 0;
	
	var style = div.style;
   
	
	style.opacity = (opacity / 100);
    style.MozOpacity = (opacity / 100);
   	style.KhtmlOpacity = (opacity / 100);
	style.filter = "alpha(opacity="+opacity+")";
 	
	
	if(opacity != end)
	{
		var timeout = function()
		{
			changeOpacity(divid,opacity,end,speed,after)
		}
		setTimeout(timeout,1);	
	}
	else
	{
		div.isChangingOpacity = 0;
		
		if(after)
			after();
		
		
		
		
	}
}






function setCtrl_s(function_to_execute)
{
	document.body.onkeypress = function(event)
	{
    	if(event.ctrlKey == true && event.charCode == 115)
		{
			function_to_execute();
			return false;
    	}
	}
    return true;
}




function loadPage(url,divid,post)
{
	changeOpacity
	(
	 	divid,
		100,
		0,
		5,
		function()
		{
			new Ajax.Request
			(
			 	url,
				{
					parameters : post,
					onSuccess: function(transport)
					{
						$(divid).innerHTML = transport.responseText;	
						changeOpacity
						(
							divid,
							0,
							100,
							5
						);
					}
				}
			);
			
		}		
	);
	
}






function getFormValues(idform)
{
	var formtorecord = document.getElementById(idform);
	
	var values = new Array();
	
	var allInputs = formtorecord.getElementsByTagName('INPUT');
	var allTextareas = formtorecord.getElementsByTagName('TEXTAREA');
	var allSelects = formtorecord.getElementsByTagName('SELECT');

	for(var i=0; i< allInputs.length;i++)
	{
		if(allInputs[i].type.toLowerCase() == 'checkbox')
			values[allInputs[i].id] = (allInputs[i].checked)?'1':'0';
		else
			values[allInputs[i].id] = allInputs[i].value;
	}
	for(var i=0; i< allTextareas.length;i++)
		values[allTextareas[i].id] = allTextareas[i].value;
	for(var i=0; i< allSelects.length;i++)
	{
		var selectObject = allSelects[i];
		var selectObjectRealName = selectObject.id.replace('[]','');
		
		if(selectObject.selectedIndex != '-1')
		{
			values[selectObject.id] = selectObject.options[selectObject.selectedIndex].value;
		}
	}	
	
	return values;
}


function recordAjax(idform,idfieldid,recordfile,after)
{
	var values = getFormValues(idform);
	
	new Ajax.Request
	(
	 	recordfile,
		{
			method : 'POST',
			parameters : values,
			onSuccess : function(transport)
			{
				if(after)
					after();
				idfield = document.getElementById(idfieldid);
				if(idfield)
					idfield.value = transport.responseText;
				
			}
		}
	);
	
	
	
}



function hideDetailArticle(id)
{
	var article = document.getElementById("article-detail-"+id);
	var accroche = document.getElementById("accroche-post-"+id);
	var footer = document.getElementById("footer-"+id);
	
	
	
	
	var articleSize =  article.clientHeight;
	
	footer.style.visibility = 'hidden';
	openDivProg
	(
	 	'article-detail-'+id,
		{
			startHeight:articleSize,
			speed:8,
			height:150,
			after:function()
			{
				changeOpacity
				(
					'article-detail-'+id,
					100,
					0,
					4,
					function()
					{
						article.style.display='none';
						accroche.style.display='';
						article.style.height = articleSize+'px';
						changeOpacity('accroche-post-'+id,0,100,4);
					
					}
				);
			}
		}
	);
	

	
	
	
}




function showDetailArticle(id)
{
	var article = document.getElementById("article-detail-"+id);
	var accroche = document.getElementById("accroche-post-"+id);
	var footer = document.getElementById("footer-"+id);
	var accrocheSize =  accroche.clientHeight;
	//alert(accrocheSize+' '+accroche.className)
	
	
	
	
	
	changeOpacity
	(
		"accroche-post-"+id,
		100,
		0,
		4,
		function()
		{
			
			article.style.display = "block";
			
			accroche.style.display = "none";
			
			changeOpacity("article-detail-"+id,0,100,4);
			
			openDivProg('article-detail-'+id,{startHeight:accrocheSize,speed:8,after:function(){footer.style.visibility = 'visible';} });
			
		}
	);
	
	
	
}

function counterClick(idarticle, site)
{

	
	var div = document.getElementById('nb'+site+'-'+idarticle);
	

	
	new Ajax
	(
	 	"/wp-content/themes/lcm_2/counterClick.php",
		{
			postBody:'site='+site+"&idarticle="+idarticle, 
			method: 'post',
			onComplete: function(req)
			{
				div.innerHTML = req;
			}
			
		}
	).request();
	

	
	
}

function likePopup(lienPopup) {
window.open(lienPopup,'like','height=100,width=315,directories=no,menubar=no,status=no,location=no,resizable=no');
//window.open(lienPopup,'Like it - Facebook','height=100,width=315,resible=no,directories=no,menubar=no,status=no,location=no,resizable=no');
} 


function validFormComments(codefieldid,formid)
{
	
	
	var formulaire = document.getElementById(formid);
	var captchaField = document.getElementById(codefieldid);
	
	
	if(publishOnFaceBook)			
		postCommentFaceBook();
	
	
	formulaire.author.style.border = '';
	formulaire.email.style.border = '';
	captchaField.style.border = '';
	
	
	
	if(!formulaire.author.value.length || !formulaire.email.value.length)
	{
		if(!formulaire.author.value.length)
			formulaire.author.style.border = 'solid red 1px';
		if(!formulaire.email.value.length)
			formulaire.email.style.border = 'solid red 1px';
		document.getElementById('captcha_error').innerHTML += 'Veuillez remplir les champs obligatoires<br/>';
		return false;	
	}
		
	
	
	adresse = formulaire.email.value;
	var place = adresse.indexOf("@",1);
	var point = adresse.indexOf(".",place+1);
	if ((place > -1)&&(adresse.length >2)&&(point > 1))
		var validMail = 1;
	else
	{
		formulaire.email.style.border = 'solid red 1px';
		document.getElementById('captcha_error').innerHTML += 'Veuillez saisir une adresse email valide<br/>';
		return false;	
	}
	
	
	
	
	var code = captchaField.value;
	new Ajax
	(
	 	"/wp-content/themes/lcm_2/captcha/verif.php",
		{
			postBody:'code='+code, 
			method: 'post',
			onComplete: function(req)
			{
				if(req == 'ok')
				{
					formulaire.submit();
				}
				else
				{
					captchaField.style.border = 'solid red 1px';
					document.getElementById('captcha_error').innerHTML += 'Le code saisi ne correspond pas<br/>';
					document.images.captcha.src='/wp-content/themes/lcm_2/captcha/captcha.php?id='+Math.round(Math.random(0)*1000)+1
					
				}
			}
			
		}
	).request();
}