function GetXmlHttpObject(){var objXMLHttp=null;if(window.XMLHttpRequest)objXMLHttp=new XMLHttpRequest;else if(window.ActiveXObject)objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");return objXMLHttp}function stateChanged(fonction,xmlHttp){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete")fonction(xmlHttp.responseText)}
function htmlData(url,type,fonction,param,name){var xmlHttp=GetXmlHttpObject();if(xmlHttp==null){alert("Browser does not support HTTP Request");return}url=url+"&l="+langue+"&sid="+name+Math.random();if(type=="GET"){xmlHttp.open("GET",url,true);xmlHttp.send(param)}else{xmlHttp.open("POST",url,true);if(param!=""){xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",param.length);xmlHttp.setRequestHeader("Connection","close")}xmlHttp.send(param)}xmlHttp.onreadystatechange=
function(){stateChanged(fonction,xmlHttp)}}
function refresh_home_list_geo(val){var selected_index;var select;var tab;var tab2;var f;var tab_select_group;var total_select_group;var tab_select_option;var total_select_option;var option;var optgroup;var doc=eval("("+val+")");for(var cpt_obj=0;cpt_obj<doc.obj.length;cpt_obj++){var tab=doc.obj[cpt_obj];select=0;selected_index=1;f=document.getElementById(tab["element"]);if(tab["element"]=="selnbpers_geo")document.getElementById("selnbroom_geo").style.display="none";if(tab["element"]=="selnbroom_geo")document.getElementById("selnbpers_geo").style.display=
"none";f.style.display="block";while(f.hasChildNodes())f.removeChild(f.firstChild);option=document.createElement("option");option.value="";option.appendChild(document.createTextNode(tab["title"]));f.appendChild(option);tab_select_group=tab["select"];total_select_group=tab_select_group.length;for(var i=0;i<total_select_group;i++){if(tab_select_group[i]["line"]=="")continue;if(tab["element"]!="seltypeloc_geo"&&tab["element"]!="selnbpers_geo"&&tab["element"]!="selnbroom_geo"){optgroup=document.createElement("optgroup");
optgroup.label="------------------------------";f.appendChild(optgroup)}tab_select_option=String(tab_select_group[i]["line"]).split("*/*");total_select_option=tab_select_option.length;for(var j=0;j<total_select_option;j++){if(tab_select_option[j]=="")continue;if(tab_select_option[j].indexOf("__")>0){tab2=String(tab_select_option[j]).split("__");var option=document.createElement("option");option.value=tab2[0];option.appendChild(document.createTextNode(tab2[1]));if(tab["element"]!="seltypeloc_geo"&&
tab["element"]!="selnbpers_geo"&&tab["element"]!="selnbroom_geo")optgroup.appendChild(option);else f.appendChild(option);if(tab2[0]==tab["selected"])select=selected_index}selected_index++}}f.selectedIndex=select;if(tab["disabled"]==0)f.disabled=true;else f.disabled=false;if(tab["region"])document.frm_holidays.selregion.value=tab["region"];if(tab["departement"])document.frm_holidays.seldepartement.value=tab["departement"]}disabled_geo_form(false)}
function refresh_home_geo(){disabled_geo_form(true);var str="selcontinent="+document.getElementById("selcontinent_geo").value;str+="&selpays="+document.getElementById("selpays_geo").value;str+="&regdept="+document.getElementById("regdept_geo").value;str+="&selville="+document.getElementById("selville_geo").value;str+="&proom="+document.getElementById("proom").value;htmlData("script/async_geo.html","POST",refresh_home_list_geo,str,"geo")}
function disabled_geo_form(type){if(type){document.getElementById("home_geo_shadow").style.width=document.getElementById("home_geo_tab").clientWidth;document.getElementById("home_geo_shadow").style.height=document.getElementById("home_geo_tab").clientHeight;document.getElementById("home_geo_shadow").style.cursor="wait"}else{document.getElementById("home_geo_shadow").style.width=0;document.getElementById("home_geo_shadow").style.height=0;document.getElementById("home_geo_shadow").style.cursor="auto"}}
;function waiting_shadow(a){if(!a){document.getElementById("div_shadow2").style.width=document.getElementById("main_tab").clientWidth;document.getElementById("div_shadow2").style.height=document.getElementById("main_tab").clientHeight;if(document.getElementById("loading_img")){document.getElementById("DivLoad").style.display="block";document.getElementById("loading_img").src=document.getElementById("loading_img").src;document.getElementById("loading_img").style.display=""}else document.getElementById("DivLoad").style.visibility=
"visible"}}function Add_Event(a,b,d,c){a.addEventListener?a.addEventListener(b,d,c?c:false):a.attachEvent("on"+b,d)}function GetScrollPage(){var a,b;if(window.innerWidth)with(window){a=pageXOffset;b=pageYOffset}else{a=document.documentElement&&document.documentElement.clientWidth?document.documentElement:document.body;with(a){a=scrollLeft;b=scrollTop}}return{top:b,left:a}}
function ObjGetPosition(a){var b=0,d=0;if(a=typeof a=="object"?a:document.getElementById(a)){b=0;d=a.offsetTop;if(a.offsetParent)for(;a=a.offsetParent;)if(a.offsetParent){b+=a.offsetLeft;d+=a.offsetTop}}return{left:b,top:d}}var IdTimer_1,IdTimer_2,O_DivScroll,Rapport=0.25,Mini=2*Rapport;
function DIV_Scroll(a){var b=document.getElementById(a);if(this.Obj=b){b.style.position="absolute";a=ObjGetPosition(a);this.PosX=a.left;this.PosY=a.top;this.DebX=this.PosX;this.DebY=this.PosY;this.NewY=this.NewX=0;this.Move=DIV_Deplace}}
function DIV_Deplace(a,b){if(a!=null){this.PosX=a;this.Obj.style.left=parseInt(a)+"px";this.Obj.style.width=document.getElementById("main_tab").clientWidth>document.body.clientWidth?document.getElementById("main_tab").clientWidth:document.body.clientWidth}if(b!=null){this.PosY=document.body.clientHeight>160?b+(document.body.clientHeight-160)/7:b;this.Obj.style.top=parseInt(b)+"px"}}
function DIV_Replace(a,b){var d=(a-O_DivScroll.PosX)*Rapport,c=(b-O_DivScroll.PosY)*Rapport;if(c<Mini&&c>-Mini&&d<Mini&&d>-Mini){clearInterval(IdTimer_1);O_DivScroll.Move(a,b)}else O_DivScroll.Move(O_DivScroll.PosX+d,O_DivScroll.PosY+c)}function DIV_CheckScroll(){var a=GetScrollPage();O_DivScroll.NewX=O_DivScroll.DebX;O_DivScroll.NewY=a.top+O_DivScroll.DebY;clearInterval(IdTimer_1);IdTimer_1=setInterval("DIV_Replace("+O_DivScroll.NewX+","+O_DivScroll.NewY+")",10);return true}
function DIV_InitScroll(){O_DivScroll=new DIV_Scroll("DivLoad");if(O_DivScroll.Obj)IdTimer_2=setInterval("DIV_CheckScroll()",100)}
function create_loading(a){a=DetectFlashVer(6,6,6)?'\t<div id="DivLoad" style="position:absolute; visibility:hidden; z-index:2000;"><center><div style="position:relative; width:160px; height:160px; vertical-align:middle;"><object \tcodebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="160"><param name="movie" value="script/loading.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed \tsrc="script/loading.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="160"wmode="transparent"></embed></object></div></center></div>':'\t<div id="DivLoad" style="display:none; z-index:2000;"><center><div style="position:relative; width:160px; height:160px; vertical-align:middle;"><img id="loading_img" src="'+
a+'"></div></center></div>';document.write(a);Add_Event(window,"load",DIV_InitScroll);window.onunload=function(){document.getElementById("DivLoad").style.display="none"}}var isIE=navigator.appVersion.indexOf("MSIE")!=-1?true:false,isWin=navigator.appVersion.toLowerCase().indexOf("win")!=-1?true:false,isOpera=navigator.userAgent.indexOf("Opera")!=-1?true:false;
function ControlVersion(){var a,b;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(d){}if(!a)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}if(!a)try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(g){}if(!a)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(f){}if(!a)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
a="WIN 2,0,0,11"}catch(e){a=-1}return a}
function GetSwfVer(){var a=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){a=navigator.plugins["Shockwave Flash"+(navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"")].description.split(" ");var b=a[2].split("."),d=b[0];b=b[1];var c=a[3];if(c=="")c=a[4];if(c[0]=="d")c=c.substring(1);else if(c[0]=="r"){c=c.substring(1);if(c.indexOf("d")>0)c=c.substring(0,c.indexOf("d"))}a=d+"."+b+"."+c}}else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=
-1)a=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)a=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)a=2;else if(isIE&&isWin&&!isOpera)a=ControlVersion();return a}
function DetectFlashVer(a,b,d){versionStr=GetSwfVer();if(versionStr==-1)return false;else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else versionArray=versionStr.split(".");var c=versionArray[0],g=versionArray[1],f=versionArray[2];if(c>parseFloat(a))return true;else if(c==parseFloat(a))if(g>parseFloat(b))return true;else if(g==parseFloat(b))if(f>=parseFloat(d))return true;return false}}
function AC_AddExtension(a,b){return a.indexOf("?")!=-1?a.replace(/\?/,b+"?"):a+b}function AC_Generateobj(a,b,d){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var g in a)c+=g+'="'+a[g]+'" ';for(g in b)c+='><param name="'+g+'" value="'+b[g]+'" /> ';c+="></object>"}else{c+="<embed ";for(g in d)c+=g+'="'+d[g]+'" ';c+="> </embed>"}document.write(c)}
function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}
function AC_GetArgs(a,b,d,c,g){var f={};f.embedAttrs={};f.params={};f.objAttrs={};for(var e=0;e<a.length;e+=2)switch(a[e].toLowerCase()){case "classid":break;case "pluginspage":f.embedAttrs[a[e]]=a[e+1];break;case "src":case "movie":a[e+1]=AC_AddExtension(a[e+1],b);f.embedAttrs.src=a[e+1];f.params[d]=a[e+1];break;case "onafterupdate":case "onbeforeupdate":case "onblur":case "oncellchange":case "onclick":case "ondblClick":case "ondrag":case "ondragend":case "ondragenter":case "ondragleave":case "ondragover":case "ondrop":case "onfinish":case "onfocus":case "onhelp":case "onmousedown":case "onmouseup":case "onmouseover":case "onmousemove":case "onmouseout":case "onkeypress":case "onkeydown":case "onkeyup":case "onload":case "onlosecapture":case "onpropertychange":case "onreadystatechange":case "onrowsdelete":case "onrowenter":case "onrowexit":case "onrowsinserted":case "onstart":case "onscroll":case "onbeforeeditfocus":case "onactivate":case "onbeforedeactivate":case "ondeactivate":case "type":case "codebase":f.objAttrs[a[e]]=
a[e+1];break;case "id":case "width":case "height":case "align":case "vspace":case "hspace":case "class":case "title":case "accesskey":case "name":case "tabindex":f.embedAttrs[a[e]]=f.objAttrs[a[e]]=a[e+1];break;default:f.embedAttrs[a[e]]=f.params[a[e]]=a[e+1]}f.objAttrs.classid=c;if(g)f.embedAttrs.type=g;return f};/*

Milonic DHTML Menu - JavaScript Website Navigation System.
Version 5.788 - Built: Monday January 14 2008 - 18:57
Copyright 2008 (c) Milonic Solutions Limited. All Rights Reserved.
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times

*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  ******* 

License Details:
 Number: 207296
    URL: iha.com
   Type: Professional
  Dated: Tuesday January 22 2008

*/

lNum=207296;lURL="iha.com";lVer="5.788";_$t_="Please visit www.milonic.com for details on how to remove this evaluation message";_mD=2;_d=document;_dB=_d.body;_n=navigator;_L=location;_nv=$tL(_n.appVersion);_nu=$tL(_n.userAgent);_ps=parseInt(_n.productSub);_cls=_toL=X_=Y_=_n=null;_W=window;_wp=_W.createPopup;ie=(_d.all)?1:0;ie4=(!_d.getElementById&&ie)?1:0;ie5=(!ie4&&ie&&!_wp)?1:0;ie55=(!ie4&&ie&&_wp)?1:0;ie7=(_nu.indexOf("msie 7")!=-1)?1:0;ns6=(_nu.indexOf("gecko")!=-1)?1:0;konq=(_nu.indexOf("konqueror")!=-1)?1:0;sfri=(_nu.indexOf("safari")!=-1)?1:0;if(sfri&&_d.evaluate)sfri=0;if(konq||sfri){_ps=0;ns6=0}ns4=(_d.layers)?1:0;ns61=(_ps>=20010726)?1:0;ns7=(_ps>=20020823)?1:0;ns72=(_ps>=20040804)?1:0;ff15=(_ps>=20060000)?1:0;op=(_W.opera)?1:0;if(op||konq){ie=0;ie7=0;}op5=(_nu.indexOf("opera 5")!=-1)?1:0;op6=(_nu.indexOf("opera 6")!=-1||_nu.indexOf("opera/6")!=-1)?1:0;op7=(_nu.indexOf("opera 7")!=-1||_nu.indexOf("opera/7")!=-1)?1:0;_OpV=(op&&_W.opera.version)?_W.opera.version():0;if(_OpV)op7=1;mac=(_nv.indexOf("mac")!=-1)?1:0;if(ns6||ns4||op||sfri)mac=0;ns60=0;if(ns6&&!ns61)ns60=1;if(op7)op=0;IEDtD=0;if(!op&&((_d.all||ns7)&&_d.compatMode=="CSS1Compat")||(mac&&_d.doctype&&_d.doctype.name.indexOf(".dtd")!=-1))IEDtD=1;_jv="javascript:;";inEditMode=_rstC=inDragMode=_d.dne=lcl=$R1=$mD=_mcnt=_sL=_sT=_ofMT=_oldbW=_bW=_oldbH=_bl=_el=_st=_en=_cKA=$BW=0;_mtX="";_startM=_c=1;_trueItemRef=focusedMenu=t_=_itemRef=_mn=-1;_zi=_aN=_bH=999;if(op)ie55=0;B$="absolute";$O="menu";$5="hidden";$_O="scroll";function $c(v){if(_d.getElementById)return _d.getElementById(v);if(_d.all)return _d.all[v]}function _StO(f,m){return setTimeout(f,m)}_m=[];_mi=[];_sm=[];_tsm=[];_cip=[];$S3="2E636F6D2F";$S4="646D2E706870";$S5=4048;_MT=_StO("",0);_oMT=_StO("",0);_cMT=_StO("",0);_mst=_StO("",0);_Mtip=_StO("",0);$u="undefined ";_Lhr=_L.href;$6="visible";if(op5){$5=$tU($5);$6=$tU($6)}function M_hideLayer(){}function _oTree(){}function mmMouseMove(){}function _TtM(){}function _IdM(){}function _ocURL(){}function mmClick(){}function autoOT(){}function _iF0C(){}function showtip(){}function isEditMode(){}function hidetip(){}function mmVisFunction(){}function doMenuResize(){}function _tMR(){}function _maxm(){}function $9(ap){if(ie55){try{if(ap.filters){return 1}}catch(e){}}else return false}function _p8(a,d){var t=[];for(_a=0;_a<a.length;_a++){if(a[_a]!=d){t[t.length]=a[_a]}}return t}function copyOf(w){for(_cO in w){this[_cO]=w[_cO]}}function $tL(v){if(v)return v.toLowerCase()}function $tU(v){if(v)return v.toUpperCase()}function $pU(v){if(v)return parseInt(v)}_lDd=0;function _gLd(){if(_d.readyState&&_d.readyState!="complete"){setTimeout("_gLd()",50);return}_lDd=1;_oldbH=0}if(!_d.readyState)_d.addEventListener('DOMContentLoaded',_gLd,false);else setTimeout("_gLd()",50);function drawMenus(){_startM=1;_oldbH=0;_oldbW=0;_baL=0;if(_W.buildAfterLoad)_baL=1;for(_y=_mcnt;_y<_m.length;_y++)o$(_y,1,_baL);if(_W._pageIsXML){var G=$c(_menuContainer);if(!G){G=_d.createElement("div");G.id=_menuContainer;_dB.appendChild(G)}G.innerHTML=_mtX}}_$S={menu:0,text:1,url:2,showmenu:3,status:4,onbgcolor:5,oncolor:6,offbgcolor:7,offcolor:8,offborder:9,separatorcolor:10,padding:11,fontsize:12,fontstyle:13,fontweight:14,fontfamily:15,high3dcolor:16,low3dcolor:17,pagecolor:18,pagebgcolor:19,headercolor:20,headerbgcolor:21,subimagepadding:22,subimageposition:23,subimage:24,onborder:25,ondecoration:26,separatorsize:27,itemheight:28,image:29,imageposition:30,imagealign:31,overimage:32,decoration:33,type:34,target:35,align:36,imageheight:37,imagewidth:38,openonclick:39,closeonclick:40,keepalive:41,onfunction:42,offfunction:43,onbold:44,onitalic:45,bgimage:46,overbgimage:47,onsubimage:48,separatorheight:49,separatorwidth:50,separatorpadding:51,separatoralign:52,onclass:53,offclass:54,itemwidth:55,pageimage:56,targetfeatures:57,visitedcolor:58,pointer:59,imagepadding:60,valign:61,clickfunction:62,bordercolor:63,borderstyle:64,borderwidth:65,overfilter:66,outfilter:67,margin:68,pagebgimage:69,swap3d:70,separatorimage:71,pageclass:72,menubgimage:73,headerborder:74,pageborder:75,title:76,pagematch:77,rawcss:78,fileimage:79,clickcolor:80,clickbgcolor:81,clickimage:82,clicksubimage:83,imageurl:84,pagesubimage:85,dragable:86,clickclass:87,clickbgimage:88,imageborderwidth:89,overseparatorimage:90,clickseparatorimage:91,pageseparatorimage:92,menubgcolor:93,opendelay:94,tooltip:95,disabled:96,dividespan:97,tipdelay:98,tipfollow:99,tipmenu:100,menustyle:101,pageoncolor:102,id:103,overpageimage:104,nowrap:105,overflow:106,hotkey:107,leftimage:108,rightimage:109,overleftimage:110,overrightimage:111,pageleftimage:112,pagerightimage:113,nobreadcrumb:114,custom:115,subimagecss:116,onsubimagecss:117};function mm_style(){for($i in _$S)this[$i]=_n;this.built=0}_$M={items:0,name:1,top:2,left:3,itemwidth:4,screenposition:5,style:6,alwaysvisible:7,align:8,orientation:9,keepalive:10,openstyle:11,margin:12,overflow:13,position:14,overfilter:15,outfilter:16,menuwidth:17,itemheight:18,followscroll:19,menualign:20,mm_callItem:21,mm_obj_ref:22,mm_built:23,menuheight:24,ignorecollision:25,divides:26,zindex:27,opendelay:28,resizable:29,minwidth:30,maxwidth:31,mm_fixheight:32,C:33,rawcss:34};function menuname(name){for($i in _$M)this[$i]=_n;this.name=$tL(name);_c=1;_mn++}function f_(i){_mi[_bl]=[];_mi[_bl][0]=_mn;i=i.split(";");_sc="";for(var a=0;a<i.length;a++){var p=i[a].indexOf("`");if(p!=-1){_sc=";";_tI=i[a];if(p==i[a].lastIndexOf("`")){for(var b=a;b<i.length;b++){if(i[b+1]){_tI+=";"+i[b+1];a++;if(i[b+1].indexOf("`")!=-1)b=i.length}}}i[a]=_tI.replace(/`/g,"")}p=i[a].indexOf("=");if(p==-1){if(i[a])_si=_si+";"+i[a]+_sc}else{_si=i[a].slice(p+1);_w=i[a].slice(0,p);if(_w=="showmenu")_si=$tL(_si)}if(i[a]&&_$S[_w])_mi[_bl][_$S[_w]]=_si}var S=_x[6];if(_mi[_bl][101])S=eval(_mi[_bl][101]);for($i in S)if(S[$i]){var v=_mi[_bl][_$S[$i]];if(!v&&v!="")_mi[_bl][_$S[$i]]=S[$i]}_m[_mn][0][_c-2]=_bl;_c++;_bl++}_c=0;function ami(t){_t=this;if(_c==1){_c++;_m[_mn]=[];_x=_m[_mn];for($i in _t)_x[_$M[$i]]=_t[$i];_x[21]=-1;_x[0]=[];if(!_x[12])_x[12]=0;var s=_m[_mn][6];var m=_m[_mn];if(m[15]==_n)m[15]=s.overfilter;if(m[16]==_n)m[16]=s.outfilter;if(m[13]==_n)m[13]=s.overflow;s[65]=(s.borderwidth)?$pU(s.borderwidth):0;s[64]=s.borderstyle;s[63]=s.bordercolor;if(_W.ignoreCollisions)m[25]=1;if(!s.built){_WzI=_zi;if(_W.menuZIndex){_WzI=_W.menuZIndex;_zi=_WzI}lcl++;var v=s.visitedcolor;if(v&&!_W._pageIsXML){_oC=s.offcolor;if(!_oC)_oC="#000000";if(!v)v="#ff0000";_d.write("<style>.g_"+lcl+":link{color:"+_oC+"}.g_"+lcl+":visited{color:"+v+"}</style>");s.g_="g_"+lcl}s.built=1}}f_(t)}menuname.prototype.aI=ami;
// fonctions async
function BasketGetXmlHttpObject()
{
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	
	}
	return objXMLHttp
}

function BasketstateChanged(fonction, xmlHttp)
{
	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") fonction(xmlHttp.responseText);
}

function BaskethtmlData(url, type, fonction, param, name)
{	
	var xmlHttp=BasketGetXmlHttpObject()
	
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request");
		return;
	}
	
	url=url+"&sid="+name+Math.random();
	
	if (type=="GET") { 
		xmlHttp.open("GET",url,true) ;
		xmlHttp.send(param);
	} else {
		xmlHttp.open("POST",url,true);
		if (param!="") {
			xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xmlHttp.setRequestHeader("Content-length", param.length);
			xmlHttp.setRequestHeader("Connection", "close");
		}
		xmlHttp.send(param);
	}
	
	xmlHttp.onreadystatechange= function() { 
		BasketstateChanged(fonction, xmlHttp);
	}
}

function refresh_basket (n_annonce, type, form) {
	
	var menu_cookie = document.cookie;
	if (menu_cookie=="") return;
	var str = "n_annonce="+n_annonce+"&type="+type+"&form="+form;
	BaskethtmlData('script/async_basket.html', "POST", refresh_count_basket, str, "basket");
	
}

function refresh_count_basket (val) {
		
	if (val=="") return;
	
	var doc = eval('(' + val + ')'); 
	
	var tab = doc.obj[0];
	
	var style = "";
	if (tab["count"]!="0") {
		document.getElementById("basket_count").style.color="green"; 
		document.getElementById("basket_count").style.fontSize="12px"; 
		document.getElementById("basket_count").style.fontWeight="bold";
	} else {
		document.getElementById("basket_count").style.color=""; 
		document.getElementById("basket_count").style.fontSize=""; 
		document.getElementById("basket_count").style.fontWeight="";
	}
	
	document.getElementById("basket_count2").innerHTML=tab["count"];
	if (tab["form"]!="undefined") eval('document.'+tab["form"]+'.submit();');
}function ihagradient (obj1, obj2, start, end, type, quality, width2) {
	var gbase = document.getElementById(obj1);
	var width = gbase.clientWidth;
	var height = gbase.clientHeight;	
	gbase.style.background = start;	
	var gbase2 = document.getElementById(obj2);	
	var degrad_height = height/quality;
	var degrad_width = width/quality;
	if (width2>0) {width=width2; degrad_width = width2/quality;}	
	if(type=='vertical') {
		for(i = 0; i < height/degrad_height; i++) {
			var g = document.createElement('div');
			g.style.fontSize = '0px';
			g.style.overflow = 'hidden';
			g.style.height = degrad_height+'px';
			g.style.width = width + 'px';
			g.style.background = end;
			g.style.opacity = i/(height/degrad_height);
			g.style.filter = 'alpha(opacity=' + i/(height/(100*degrad_height)) + ')';
			gbase2.appendChild(g);
		}
	} else {
		for(i = (width/degrad_width); i > 1; i--) {
			var g = document.createElement('div');
			g.style.cssText = 'float:left;';
			g.style.height = height + 'px';
			g.style.width = degrad_width+'px';
			g.style.fontSize = '0px';
			g.style.overflow = 'hidden';
			g.style.background = end;
			g.style.opacity = i/(width/degrad_width);
			g.style.filter = 'alpha(opacity=' + i/(width/(100*degrad_width)) + ')';
			gbase2.appendChild(g);
		}
	}
	document.getElementById(obj1).appendChild(gbase2);
}