var navigateur = navigator.userAgent;
var isOpera = (navigateur.toLowerCase().indexOf('opera')>=0)?true:false;
var isFirefox = (navigateur.toLowerCase().indexOf('firefox')>=0)?true:false;
var isMSIE = (navigateur.toLowerCase().indexOf('msie')>=0)?true:false;
var navigatorVersion = navigator.appVersion.replace(/.*?MSIE (\d\.\d).*/g,'$1')/1; 

function getHTTPObject()
{var xmlhttp=false;if(!xmlhttp&&typeof XMLHttpRequest!='undefined')
{try
{xmlhttp=new XMLHttpRequest();}
catch(e)
{xmlhttp=false;}}
return xmlhttp;}
function verif_annupro()
{if(!document.getElementById('ap_1').checked&&!document.getElementById('ap_2').checked&&!document.getElementById('ap_3').checked)
{alert('Merci de choisir au moins un corps de métier');return false;}
if(document.getElementById('cp').value.length<5)
{alert("Merci de renseigner votre code postal");document.getElementById('cp').focus();return false;}
return true;}

var languageCode='fr';var calendar_display_time=true;var todayStringFormat='[todayString] [UCFdayString]. [day]. [monthString] [year]';var pathToImages='/images/calendrier/';var speedOfSelectBoxSliding=200;var intervalSelectBox_minutes=5;var calendar_offsetTop=0;var calendar_offsetLeft=0;var calendarDiv=false;var MSIE=false;var Opera=false;if(navigator.userAgent.indexOf('MSIE')>=0&&navigator.userAgent.indexOf('Opera')<0)MSIE=true;if(navigator.userAgent.indexOf('Opera')>=0)Opera=true;switch(languageCode){case"en":var monthArray=['January','February','March','April','May','June','July','August','September','October','November','December'];var monthArrayShort=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];var dayArray=['Mon','Tue','Wed','Thu','Fri','Sat','Sun'];var weekString='Week';var todayString='';break;case"ge":var monthArray=['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];var monthArrayShort=['Jan','Feb','Mar','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'];var dayArray=['Mon','Die','Mit','Don','Fre','Sam','Son'];var weekString='Woche';var todayString='Heute';break;case"no":var monthArray=['Januar','Februar','Mars','April','Mai','Juni','Juli','August','September','Oktober','November','Desember'];var monthArrayShort=['Jan','Feb','Mar','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Des'];var dayArray=['Man','Tir','Ons','Tor','Fre','L&oslash;r','S&oslash;n'];var weekString='Uke';var todayString='Dagen i dag er';break;case"nl":var monthArray=['Januari','Februari','Maart','April','Mei','Juni','Juli','Augustus','September','Oktober','November','December'];var monthArrayShort=['Jan','Feb','Mar','Apr','Mei','Jun','Jul','Aug','Sep','Okt','Nov','Dec'];var dayArray=['Ma','Di','Wo','Do','Vr','Za','Zo'];var weekString='Week';var todayString='Vandaag';break;case"es":var monthArray=['Enero','Febrero','Marzo','April','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'];var monthArrayShort=['Ene','Feb','Mar','Abr','May','Jun','Jul','Ago','Sep','Oct','Nov','Dic'];var dayArray=['Lun','Mar','Mie','Jue','Vie','Sab','Dom'];var weekString='Semana';var todayString='Hoy es';break;case"pt-br":var monthArray=['Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'];var monthArrayShort=['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'];var dayArray=['Seg','Ter','Qua','Qui','Sex','S&aacute;b','Dom'];var weekString='Sem.';var todayString='Hoje &eacute;';break;case"fr":var monthArray=['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'];var monthArrayShort=['Jan','Fev','Mar','Avr','Mai','Jun','Jul','Aou','Sep','Oct','Nov','Dec'];var dayArray=['Lun','Mar','Mer','Jeu','Ven','Sam','Dim'];var weekString='Sem';var todayString="Aujourd'hui";break;case"ru":var monthArray=['ßíâàðü','Ôåâðàëü','Ìàðò','Àïðåëü','Ìàé','Èþíü','Èþëü','Àâãóñò','Ñåíòÿáðü','Îêòÿáðü','Íîÿáðü','Äåêàáðü'];var monthArrayShort=['ÿíâ','ôåâ','ìàð','àïð','ìàé','èþí','èþë','àâã','ñåí','îêò','íîÿ','äåê'];var dayArray=['Ïí','Âò','Ñð','×ò','Ïò','Ñá','Âñ'];var weekString='#';var todayString='Ñåãîäíÿ';break;case"da":var monthArray=['januar','februar','marts','april','maj','juni','juli','august','september','oktober','november','december'];var monthArrayShort=['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec'];var dayArray=['man','tirs','ons','tors','fre','lør','søn']
var weekString='Uge';var todayString='I dag er den';break;case"hu":var monthArray=['JanuÃ¡r','FebruÃ¡r','MÃ¡rcius','Ã?prilis','MÃ¡jus','JÃºnius','JÃºlius','Augusztus','Szeptember','OktÃ³ber','November','December'];var monthArrayShort=['Jan','Feb','MÃ¡rc','Ã?pr','MÃ¡j','JÃºn','JÃºl','Aug','Szep','Okt','Nov','Dec'];var dayArray=['HÃ©','Ke','Sze','Cs','PÃ©','Szo','Vas'];var weekString='HÃ©t';var todayString='Mai nap';break;case"it":var monthArray=['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'];var monthArrayShort=['Gen','Feb','Mar','Apr','Mag','Giu','Lugl','Ago','Set','Ott','Nov','Dic'];var dayArray=['Lun',';Mar','Mer','Gio','Ven','Sab','Dom'];var weekString='Settimana';var todayString='Oggi &egrave; il';break;case"se":var monthArray=['Januari','Februari','Mars','April','Maj','Juni','juli','Augusti','September','Oktober','November','December'];var monthArrayShort=['Jan','Feb','Mar','Apr','Maj','Jun','Jul','Aug','Sep','Okt','Nov','Dec'];var dayArray=['Må','Ti','On','To','Fr','Lö','Sö'];var weekString='Vecka';var todayString='Idag';break;}
var daysInMonthArray=[31,28,31,30,31,30,31,31,30,31,30,31];var prevMonth;var prevYear;var prevYearCrt;var currentMonth;var currentYear;var currentYearCrt;var currentHour;var currentWeek;var currentMinute;var changeCurrentWeek=false;var nextMonth;var nextYear;var nextYearCrt;var calendarContentDiv;var returnDateTo;var returnFormat;var activeSelectBoxMonth;var activeSelectBoxYear;var activeSelectBoxHour;var activeSelectBoxMinute;var iframeObj=false;var returnDateToYear;var returnDateToMonth;var returnDateToDay;var returnDateToHour;var returnDateToMinute;var inputYear;var inputMonth;var inputDay;var inputHour;var inputMinute;var calendarDisplayTime=false;var selectBoxHighlightColor='#D60808';var selectBoxRolloverBgColor='#E2EBED';var selectBoxMovementInProgress=false;var activeSelectBox=false;function cancelCalendarEvent()
{return false;}
function isLeapYear(inputYear)
{if(inputYear%400==0||(inputYear%4==0&&inputYear%100!=0))return true;return false;}
var activeSelectBoxMonth=false;var activeSelectBoxDirection=false;function highlightMonthYear()
{if(activeSelectBoxMonth)activeSelectBoxMonth.className='';activeSelectBox=this;if(this.className=='monthYearActive'){this.className='';}else{this.className='monthYearActive';activeSelectBoxMonth=this;}
if(this.innerHTML.indexOf('-')>=0||this.innerHTML.indexOf('+')>=0){selectBoxMovementInProgress=false;if(this.innerHTML.indexOf('-')>=0)activeSelectBoxDirection=-1;else activeSelectBoxDirection=1;}else selectBoxMovementInProgress=false;}
function showMonthDropDown()
{if(document.getElementById('monthDropDown').style.display=='block'){document.getElementById('monthDropDown').style.display='none';}else{document.getElementById('monthDropDown').style.display='block';document.getElementById('weekDropDown').style.display='none';document.getElementById('yearDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';}}
function showYearDropDown()
{if(document.getElementById('yearDropDown').style.display=='block'){document.getElementById('yearDropDown').style.display='none';}else{document.getElementById('yearDropDown').style.display='block';document.getElementById('weekDropDown').style.display='none';document.getElementById('monthDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';}}
function showWeekDropDown()
{if(document.getElementById('weekDropDown').style.display=='block'){document.getElementById('weekDropDown').style.display='none';}else{document.getElementById('weekDropDown').style.display='block';document.getElementById('yearDropDown').style.display='none';document.getElementById('monthDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';}}
function showHourDropDown()
{if(document.getElementById('hourDropDown').style.display=='block'){document.getElementById('hourDropDown').style.display='none';}else{document.getElementById('hourDropDown').style.display='block';document.getElementById('weekDropDown').style.display='none';document.getElementById('monthDropDown').style.display='none';document.getElementById('yearDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';}}
function showMinuteDropDown()
{if(document.getElementById('minuteDropDown').style.display=='block'){document.getElementById('minuteDropDown').style.display='none';}else{document.getElementById('minuteDropDown').style.display='block';document.getElementById('weekDropDown').style.display='none';document.getElementById('monthDropDown').style.display='none';document.getElementById('yearDropDown').style.display='none';document.getElementById('hourDropDown').style.display='none';}}
function selectMonth()
{document.getElementById('calendar_month_txt').innerHTML=this.innerHTML
currentMonth=this.id.replace(/[^\d]/g,'');document.getElementById('monthDropDown').style.display='none';for(var no=0;no<monthArray.length;no++){document.getElementById('monthDiv_'+no).style.color='';}
this.style.color=selectBoxHighlightColor;activeSelectBoxMonth=this;currentWeek=getWeek(currentYear,currentMonth,1);updateWeekDiv();writeCalendarContent();}
function selectHour()
{document.getElementById('calendar_hour_txt').innerHTML=this.innerHTML
currentHour=this.innerHTML.replace(/[^\d]/g,'');document.getElementById('hourDropDown').style.display='none';if(activeSelectBoxHour){activeSelectBoxHour.style.color='';}
activeSelectBoxHour=this;this.style.color=selectBoxHighlightColor;}
function selectMinute()
{document.getElementById('calendar_minute_txt').innerHTML=this.innerHTML
currentMinute=this.innerHTML.replace(/[^\d]/g,'');document.getElementById('minuteDropDown').style.display='none';if(activeSelectBoxMinute){activeSelectBoxMinute.style.color='';}
activeSelectBoxMinute=this;this.style.color=selectBoxHighlightColor;}
function selectWeek()
{document.getElementById('calendar_week_txt').innerHTML=this.innerHTML
currentWeek=this.innerHTML.replace(/[^\d]/g,'');changeCurrentWeek=true;document.getElementById('weekDropDown').style.display='none';if(activeSelectBoxWeek){activeSelectBoxWeek.style.color='';}
activeSelectBoxWeek=this;this.style.color=selectBoxHighlightColor;writeCalendarContent();}
function selectYear()
{document.getElementById('calendar_year_txt').innerHTML=this.innerHTML
currentYear=this.innerHTML.replace(/[^\d]/g,'');document.getElementById('yearDropDown').style.display='none';if(activeSelectBoxYear){activeSelectBoxYear.style.color='';}
activeSelectBoxYear=this;this.style.color=selectBoxHighlightColor;writeCalendarContent();}
function switchMonth()
{if(this.src.indexOf('left')>=0){currentMonth=currentMonth-1;;if(currentMonth<0){currentMonth=11;currentYear=currentYear-1;currentYearCrt--;}}else{currentMonth=currentMonth+1;;if(currentMonth>11){currentMonth=0;currentYear=currentYear/1+1;currentYearCrt=currentYearCrt/1+1;}}
writeCalendarContent();}
function createMonthDiv(){var div=document.createElement('DIV');div.className='monthYearPicker';div.id='monthPicker';for(var no=0;no<monthArray.length;no++){var subDiv=document.createElement('DIV');subDiv.innerHTML=monthArray[no];subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectMonth;subDiv.id='monthDiv_'+no;subDiv.style.width='56px';subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentMonth&&currentMonth==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxMonth=subDiv;}}
return div;}
function changeSelectBoxYear(e,inputObj)
{if(!inputObj)inputObj=this;var yearItems=inputObj.parentNode.getElementsByTagName('DIV');if(inputObj.innerHTML.indexOf('-')>=0){if(yearItems[1].innerHTML/1-1>0)
{var startYear=yearItems[1].innerHTML/1-1;if(activeSelectBoxYear){activeSelectBoxYear.style.color='';}}}else{var startYear=yearItems[1].innerHTML/1+1;if(activeSelectBoxYear){activeSelectBoxYear.style.color='';}}
if(yearItems[1].innerHTML/1-1>0&&inputObj.innerHTML.indexOf('-')>=0)
{for(var no=1;no<yearItems.length-1;no++){yearItems[no].innerHTML=startYear+no-1;yearItems[no].id='yearDiv'+(startYear/1+no/1-1);}}
if(activeSelectBoxYear){activeSelectBoxYear.style.color='';if(document.getElementById('yearDiv'+currentYear)){activeSelectBoxYear=document.getElementById('yearDiv'+currentYear);activeSelectBoxYear.style.color=selectBoxHighlightColor;;}}}
function changeSelectBoxWeek(e,inputObj)
{if(!inputObj)inputObj=this;var weekItems=inputObj.parentNode.getElementsByTagName('DIV');if(inputObj.innerHTML.indexOf('-')>=0){if(weekItems[1].innerHTML/1-1>0)
{var startWeek=weekItems[1].innerHTML/1-1;if(activeSelectBoxWeek){activeSelectBoxWeek.style.color='';}}}else{if(weekItems[1].innerHTML/1+1<=49)
{var startWeek=weekItems[1].innerHTML/1+1;if(activeSelectBoxWeek){activeSelectBoxWeek.style.color='';}}}
if((weekItems[1].innerHTML/1-1>0&&inputObj.innerHTML.indexOf('-')>=0)||(weekItems[1].innerHTML/1+1<=49&&inputObj.innerHTML.indexOf('+')>=0))
{for(var no=1;no<weekItems.length-1;no++){weekItems[no].innerHTML=startWeek+no-1;weekItems[no].id='weekDiv'+(startWeek/1+no/1-1);}}
if(activeSelectBoxWeek){activeSelectBoxWeek.style.color='';if(document.getElementById('weekDiv'+currentWeek)){activeSelectBoxWeek=document.getElementById('weekDiv'+currentWeek);activeSelectBoxWeek.style.color=selectBoxHighlightColor;;}}}
function changeSelectBoxHour(e,inputObj)
{if(!inputObj)inputObj=this;var hourItems=inputObj.parentNode.getElementsByTagName('DIV');if(inputObj.innerHTML.indexOf('-')>=0){var startHour=hourItems[1].innerHTML/1-1;if(startHour<0)startHour=0;if(activeSelectBoxHour){activeSelectBoxHour.style.color='';}}else{var startHour=hourItems[1].innerHTML/1+1;if(startHour>14)startHour=14;if(activeSelectBoxHour){activeSelectBoxHour.style.color='';}}
var prefix='';for(var no=1;no<hourItems.length-1;no++){if((startHour/1+no/1)<11)prefix='0';else prefix='';hourItems[no].innerHTML=prefix+(startHour+no-1);hourItems[no].id='hourDiv'+(startHour/1+no/1-1);}
if(activeSelectBoxHour){activeSelectBoxHour.style.color='';if(document.getElementById('hourDiv'+currentHour)){activeSelectBoxHour=document.getElementById('hourDiv'+currentHour);activeSelectBoxHour.style.color=selectBoxHighlightColor;;}}}
function updateYearDiv()
{var div=document.getElementById('yearDropDown');var yearItems=div.getElementsByTagName('DIV');var a_remplir=0;var ajout=0;for(var no=1;no<yearItems.length-1;no++){a_remplir=currentYear/1-6+no+ajout;if(a_remplir<=0)
{ajout=Math.abs(a_remplir)+1;a_remplir=a_remplir+ajout;}
yearItems[no].innerHTML=a_remplir;if(currentYear==(currentYear/1-6+no)){yearItems[no].style.color=selectBoxHighlightColor;activeSelectBoxYear=yearItems[no];}else{yearItems[no].style.color='';}}}
function updateWeekDiv()
{var div=document.getElementById('weekDropDown');var weekItems=div.getElementsByTagName('DIV');var a_remplir=0;var ajout=0;for(var no=1;no<weekItems.length-1;no++){a_remplir=currentWeek/1-3+no+ajout;if(a_remplir<=0)
{ajout=Math.abs(a_remplir)+1;a_remplir=a_remplir+ajout;}
weekItems[no].innerHTML=a_remplir;if(currentWeek==(currentWeek/1-3+no)){weekItems[no].style.color=selectBoxHighlightColor;activeSelectBoxYear=weekItems[no];}else{weekItems[no].style.color='';}}}
function updateMonthDiv()
{for(no=0;no<12;no++){document.getElementById('monthDiv_'+no).style.color='';}
document.getElementById('monthDiv_'+currentMonth).style.color=selectBoxHighlightColor;activeSelectBoxMonth=document.getElementById('monthDiv_'+currentMonth);}
function updateHourDiv()
{var div=document.getElementById('hourDropDown');var hourItems=div.getElementsByTagName('DIV');var addHours=0;if((currentHour/1-6+1)<0){addHours=(currentHour/1-6+1)*-1;}
for(var no=1;no<hourItems.length-1;no++){var prefix='';if((currentHour/1-6+no+addHours)<10)prefix='0';hourItems[no].innerHTML=prefix+(currentHour/1-6+no+addHours);if(currentHour==(currentHour/1-6+no)){hourItems[no].style.color=selectBoxHighlightColor;activeSelectBoxHour=hourItems[no];}else{hourItems[no].style.color='';}}}
function updateMinuteDiv()
{for(no=0;no<60;no+=intervalSelectBox_minutes){var prefix='';if(no<10)prefix='0';document.getElementById('minuteDiv_'+prefix+no).style.color='';}
if(document.getElementById('minuteDiv_'+currentMinute)){document.getElementById('minuteDiv_'+currentMinute).style.color=selectBoxHighlightColor;activeSelectBoxMinute=document.getElementById('minuteDiv_'+currentMinute);}}
function createYearDiv()
{if(!document.getElementById('yearDropDown')){var div=document.createElement('DIV');div.className='monthYearPicker';}else{var div=document.getElementById('yearDropDown');var subDivs=div.getElementsByTagName('DIV');for(var no=0;no<subDivs.length;no++){subDivs[no].parentNode.removeChild(subDivs[no]);}}
var d=new Date();if(currentYear){d.setFullYear(currentYear);}
var startYear=d.getFullYear()/1-5;var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;- ';subDiv.onclick=changeSelectBoxYear;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);for(var no=startYear;no<(startYear+10);no++){var subDiv=document.createElement('DIV');subDiv.innerHTML=no;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectYear;subDiv.id='yearDiv'+no;subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentYear&&currentYear==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxYear=subDiv;}}
var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;+ ';subDiv.onclick=changeSelectBoxYear;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);return div;}
function createWeekDiv()
{if(!document.getElementById('weekDropDown')){var div=document.createElement('DIV');div.className='monthYearPicker';}else{var div=document.getElementById('weekDropDown');var subDivs=div.getElementsByTagName('DIV');for(var no=0;no<subDivs.length;no++){subDivs[no].parentNode.removeChild(subDivs[no]);}}
var d=new Date();if(currentYear){d.setFullYear(currentYear);}
var startWeek=getWeek(d.getFullYear(),d.getMonth(),d.getDate());var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;- ';subDiv.onclick=changeSelectBoxWeek;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);for(var no=startWeek;no<startWeek+5;no++){var subDiv=document.createElement('DIV');subDiv.innerHTML=no;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectWeek;subDiv.id='weekDiv'+no;subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentWeek&&currentWeek==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxWeek=subDiv;}}
var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;+ ';subDiv.onclick=changeSelectBoxWeek;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);return div;}
function slideCalendarSelectBox()
{if(selectBoxMovementInProgress){if(activeSelectBox.parentNode.id=='hourDropDown'){changeSelectBoxHour(false,activeSelectBox);}
if(activeSelectBox.parentNode.id=='yearDropDown'){changeSelectBoxYear(false,activeSelectBox);}}
setTimeout('slideCalendarSelectBox()',speedOfSelectBoxSliding);}
function createHourDiv()
{if(!document.getElementById('hourDropDown')){var div=document.createElement('DIV');div.className='monthYearPicker';}else{var div=document.getElementById('hourDropDown');var subDivs=div.getElementsByTagName('DIV');for(var no=0;no<subDivs.length;no++){subDivs[no].parentNode.removeChild(subDivs[no]);}}
if(!currentHour)currentHour=0;var startHour=currentHour/1;if(startHour>14)startHour=14;var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;- ';subDiv.onclick=changeSelectBoxHour;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);for(var no=startHour;no<startHour+10;no++){var prefix='';if(no/1<10)prefix='0';var subDiv=document.createElement('DIV');subDiv.innerHTML=prefix+no;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectHour;subDiv.id='hourDiv'+no;subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentYear&&currentYear==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxYear=subDiv;}}
var subDiv=document.createElement('DIV');subDiv.innerHTML='&nbsp;&nbsp;+ ';subDiv.onclick=changeSelectBoxHour;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=function(){selectBoxMovementInProgress=false;};subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);return div;}
function createMinuteDiv()
{if(!document.getElementById('minuteDropDown')){var div=document.createElement('DIV');div.className='monthYearPicker';}else{var div=document.getElementById('minuteDropDown');var subDivs=div.getElementsByTagName('DIV');for(var no=0;no<subDivs.length;no++){subDivs[no].parentNode.removeChild(subDivs[no]);}}
var startMinute=0;var prefix='';for(var no=startMinute;no<60;no+=intervalSelectBox_minutes){if(no<10)prefix='0';else prefix='';var subDiv=document.createElement('DIV');subDiv.innerHTML=prefix+no;subDiv.onmouseover=highlightMonthYear;subDiv.onmouseout=highlightMonthYear;subDiv.onclick=selectMinute;subDiv.id='minuteDiv_'+prefix+no;subDiv.onselectstart=cancelCalendarEvent;div.appendChild(subDiv);if(currentYear&&currentYear==no){subDiv.style.color=selectBoxHighlightColor;activeSelectBoxYear=subDiv;}}
return div;}
function highlightSelect()
{if(this.className=='selectBoxTime'){this.className='selectBoxTimeOver';this.getElementsByTagName('IMG')[0].src=pathToImages+'down_time_over.gif';}else if(this.className=='selectBoxTimeOver'){this.className='selectBoxTime';this.getElementsByTagName('IMG')[0].src=pathToImages+'down_time.gif';}
if(this.className=='selectBox'){this.className='selectBoxOver';this.getElementsByTagName('IMG')[0].src=pathToImages+'down_over.gif';}else if(this.className=='selectBoxOver'){this.className='selectBox';this.getElementsByTagName('IMG')[0].src=pathToImages+'down.gif';}}
function highlightArrow()
{if(this.src.indexOf('over')>=0){if(this.src.indexOf('left')>=0)this.src=pathToImages+'left.gif';if(this.src.indexOf('right')>=0)this.src=pathToImages+'right.gif';}else{if(this.src.indexOf('left')>=0)this.src=pathToImages+'left_over.gif';if(this.src.indexOf('right')>=0)this.src=pathToImages+'right_over.gif';}}
function highlightClose()
{if(this.src.indexOf('over')>=0){this.src=pathToImages+'close.gif';}else{this.src=pathToImages+'close_over.gif';}}
function closeCalendar(){document.getElementById('yearDropDown').style.display='none';document.getElementById('monthDropDown').style.display='none'
document.getElementById('weekDropDown').style.display='none';;document.getElementById('hourDropDown').style.display='none';document.getElementById('minuteDropDown').style.display='none';calendarDiv.style.display='none';if(iframeObj)iframeObj.style.display='none';if(activeSelectBoxMonth)activeSelectBoxMonth.className='';if(activeSelectBoxYear)activeSelectBoxYear.className='';}
function writeTopBar()
{var topBar=document.createElement('DIV');topBar.className='topBar';topBar.id='topBar';calendarDiv.appendChild(topBar);var leftDiv=document.createElement('DIV');leftDiv.style.marginRight='1px';var img=document.createElement('IMG');img.src=pathToImages+'left.gif';img.onmouseover=highlightArrow;img.onclick=switchMonth;img.onmouseout=highlightArrow;leftDiv.appendChild(img);topBar.appendChild(leftDiv);if(Opera)leftDiv.style.width='16px';var rightDiv=document.createElement('DIV');rightDiv.style.marginRight='1px';var img=document.createElement('IMG');img.src=pathToImages+'right.gif';img.onclick=switchMonth;img.onmouseover=highlightArrow;img.onmouseout=highlightArrow;rightDiv.appendChild(img);if(Opera)rightDiv.style.width='16px';topBar.appendChild(rightDiv);var monthDiv=document.createElement('DIV');monthDiv.id='monthSelect';monthDiv.onmouseover=highlightSelect;monthDiv.onmouseout=highlightSelect;monthDiv.onclick=showMonthDropDown;var span=document.createElement('SPAN');span.innerHTML=monthArray[currentMonth];span.id='calendar_month_txt';monthDiv.appendChild(span);var img=document.createElement('IMG');img.src=pathToImages+'down.gif';img.style.position='absolute';img.style.right='0px';monthDiv.appendChild(img);monthDiv.className='selectBox';if(Opera){img.style.cssText='float:right;position:relative';img.style.position='relative';img.style.styleFloat='right';}
topBar.appendChild(monthDiv);var monthPicker=createMonthDiv();monthPicker.style.left='37px';monthPicker.style.top=monthDiv.offsetTop+monthDiv.offsetHeight+1+'px';monthPicker.style.width='60px';monthPicker.id='monthDropDown';calendarDiv.appendChild(monthPicker);var yearDiv=document.createElement('DIV');yearDiv.onmouseover=highlightSelect;yearDiv.onmouseout=highlightSelect;yearDiv.onclick=showYearDropDown;var span=document.createElement('SPAN');span.innerHTML=currentYear;span.id='calendar_year_txt';yearDiv.appendChild(span);topBar.appendChild(yearDiv);var img=document.createElement('IMG');img.src=pathToImages+'down.gif';yearDiv.appendChild(img);yearDiv.className='selectBox';if(Opera){yearDiv.style.width='50px';img.style.cssText='float:right';img.style.position='relative';img.style.styleFloat='right';}
var yearPicker=createYearDiv();yearPicker.style.left='113px';yearPicker.style.top=monthDiv.offsetTop+monthDiv.offsetHeight+1+'px';yearPicker.style.width='35px';yearPicker.id='yearDropDown';calendarDiv.appendChild(yearPicker);if(Opera){weekDiv.style.width='50px';img.style.cssText='float:right';img.style.position='relative';img.style.styleFloat='right';}
var weekDiv=document.createElement('DIV');weekDiv.onmouseover=highlightSelect;weekDiv.onmouseout=highlightSelect;weekDiv.onclick=showWeekDropDown;var span=document.createElement('SPAN');span.innerHTML=currentWeek;span.id='calendar_week_txt';weekDiv.appendChild(span);topBar.appendChild(weekDiv);var img=document.createElement('IMG');img.src=pathToImages+'down.gif';weekDiv.appendChild(img);weekDiv.className='selectBox';var weekPicker=createWeekDiv();weekPicker.style.left='156px';weekPicker.style.top=monthDiv.offsetTop+monthDiv.offsetHeight+1+'px';weekPicker.style.width='20px';weekPicker.id='weekDropDown';calendarDiv.appendChild(weekPicker);var img=document.createElement('IMG');img.src=pathToImages+'close.gif';img.style.styleFloat='right';img.onmouseover=highlightClose;img.onmouseout=highlightClose;img.onclick=closeCalendar;topBar.appendChild(img);if(!document.all){img.style.position='absolute';img.style.right='2px';}}
function writeCalendarContent()
{var calendarContentDivExists=true;if(!calendarContentDiv){calendarContentDiv=document.createElement('DIV');calendarDiv.appendChild(calendarContentDiv);calendarContentDivExists=false;}
currentMonth=currentMonth/1;var d=new Date();if(changeCurrentWeek)
{d=setWeek(d,currentWeek);changeCurrentWeek=false;currentYear=d.getFullYear();currentMonth=d.getMonth();}
d.setDate(1);d.setFullYear(currentYear);d.setMonth(currentMonth);if(!changeCurrentWeek)
currentWeek=getWeek(currentYear,currentMonth,1);var dayStartOfMonth=d.getDay();if(dayStartOfMonth==0)dayStartOfMonth=7;dayStartOfMonth--;document.getElementById('calendar_year_txt').innerHTML=currentYear;document.getElementById('calendar_month_txt').innerHTML=monthArray[currentMonth];document.getElementById('calendar_hour_txt').innerHTML=currentHour;document.getElementById('calendar_minute_txt').innerHTML=currentMinute;document.getElementById('calendar_week_txt').innerHTML=currentWeek;var existingTable=calendarContentDiv.getElementsByTagName('TABLE');if(existingTable.length>0){calendarContentDiv.removeChild(existingTable[0]);}
var calTable=document.createElement('TABLE');calTable.cellSpacing='0';calendarContentDiv.appendChild(calTable);var calTBody=document.createElement('TBODY');calTable.appendChild(calTBody);var row=calTBody.insertRow(-1);var cell=row.insertCell(-1);cell.innerHTML=weekString;cell.className="dayName";cell.style.backgroundColor=selectBoxRolloverBgColor;for(var no=0;no<dayArray.length;no++){var cell=row.insertCell(-1);cell.innerHTML=dayArray[no];cell.className="dayName";}
var row=calTBody.insertRow(-1);var cell=row.insertCell(-1);cell.style.backgroundColor=selectBoxRolloverBgColor;cell.className="dayName";var week=getWeek(currentYear,currentMonth,1);cell.innerHTML=week;prevMonth=currentMonth-1;prevYear=currentYear;if(prevMonth==-1)
{prevMonth=11;prevYear--;}
var daysInPrevMonth=daysInMonthArray[prevMonth];if(daysInPrevMonth==28){if(isLeapYear(prevYear))daysInPrevMonth=29;}
nextMonth=currentMonth+1;nextYear=currentYear;if(nextMonth==12)
{nextMonth=0;nextYear++;}
for(var no=0;no<dayStartOfMonth;no++){var cell=row.insertCell(-1);cell.innerHTML=daysInPrevMonth-dayStartOfMonth+no+1;cell.className='otherDate';cell.onclick=pickPrevDate;}
var colCounter=dayStartOfMonth;var daysInMonth=daysInMonthArray[currentMonth];if(daysInMonth==28){if(isLeapYear(currentYear))daysInMonth=29;}
for(var no=1;no<=daysInMonth;no++){d.setDate(no-1);if(colCounter>0&&colCounter%7==0){var row=calTBody.insertRow(-1);var cell=row.insertCell(-1);var week=getWeek(currentYear,currentMonth,no);cell.innerHTML=week;cell.className="dayName";cell.style.backgroundColor=selectBoxRolloverBgColor;}
var cell=row.insertCell(-1);if(currentYear==inputYear&&currentMonth==inputMonth&&no==inputDay){cell.className='activeDay';}
cell.innerHTML=no;cell.onclick=pickDate;colCounter++;}
for(var no=1;colCounter%7!=0;no++)
{var cell=row.insertCell(-1);cell.innerHTML=no;cell.className='otherDate';cell.onclick=pickNextDate;colCounter++;}
if(!document.all){if(calendarContentDiv.offsetHeight)
document.getElementById('topBar').style.top=calendarContentDiv.offsetHeight+document.getElementById('timeBar').offsetHeight+document.getElementById('topBar').offsetHeight-1+'px';else{document.getElementById('topBar').style.top='';document.getElementById('topBar').style.bottom='0px';}}
if(iframeObj){if(!calendarContentDivExists)setTimeout('resizeIframe()',350);else setTimeout('resizeIframe()',10);}}
function resizeIframe()
{iframeObj.style.width=calendarDiv.offsetWidth+'px';iframeObj.style.height=calendarDiv.offsetHeight+'px';}
function pickTodaysDate()
{var d=new Date();currentMonth=d.getMonth();currentYear=d.getFullYear();currentYearCrt=d.getYear();pickDate(false,d.getDate());}
function pickPrevDate()
{currentMonth=prevMonth;currentYear=prevYear;var str=prevYear+"";currentYearCrt=str.substr(2,2);var currentDay=this.innerHTML;var d=new Date(currentYear,currentMonth,currentDay);pickDate(false,d.getDate());}
function pickNextDate()
{currentMonth=nextMonth;currentYear=nextYear;var str=nextYear+"";currentYearCrt=str.substr(2,2);var currentDay=this.innerHTML;var d=new Date(currentYear,currentMonth,currentDay);pickDate(false,d.getDate());}
function pickDate(e,inputDay)
{var month=currentMonth/1+1;if(month<10)month='0'+month;var day;if(!inputDay&&this)day=this.innerHTML;else day=inputDay;if(day/1<10)day='0'+day;if(returnFormat){returnFormat=returnFormat.replace('dd',day);returnFormat=returnFormat.replace('mm',month);returnFormat=returnFormat.replace('yyyy',currentYear);var str=currentYear+"";returnFormat=returnFormat.replace('yy',str.substr(2,2));returnFormat=returnFormat.replace('hh',currentHour);returnFormat=returnFormat.replace('ii',currentMinute);returnDateTo.value=returnFormat;}else{for(var no=0;no<returnDateToYear.options.length;no++){if(returnDateToYear.options[no].value==currentYear){returnDateToYear.selectedIndex=no;break;}}
for(var no=0;no<returnDateToMonth.options.length;no++){if(returnDateToMonth.options[no].value==month){returnDateToMonth.selectedIndex=no;break;}}
for(var no=0;no<returnDateToDay.options.length;no++){if(returnDateToDay.options[no].value==day){returnDateToDay.selectedIndex=no;break;}}
if(calendarDisplayTime){for(var no=0;no<returnDateToHour.options.length;no++){if(returnDateToHour.options[no].value==currentHour){returnDateToHour.selectedIndex=no;break;}}
for(var no=0;no<returnDateToMinute.options.length;no++){if(returnDateToMinute.options[no].value==currentMinute){returnDateToMinute.selectedIndex=no;break;}}}}
closeCalendar();}
function getWeek(year,month,day){day=day/1;year=year/1;month=month/1+1;var a=Math.floor((14-(month))/12);var y=year+4800-a;var m=(month)+(12*a)-3;var jd=day+Math.floor(((153*m)+2)/5)+
(365*y)+Math.floor(y/4)-Math.floor(y/100)+
Math.floor(y/400)-32045;var d4=(jd+31741-(jd%7))%146097%36524%1461;var L=Math.floor(d4/1460);var d1=((d4-L)%365)+L;NumberOfWeek=Math.floor(d1/7)+1;return NumberOfWeek;}
function setWeek(d,week)
{var time=d.getTime();var nb_sem_dep=getWeek(d.getFullYear(),d.getMonth(),d.getDate());var nb_sem_decalage=week-nb_sem_dep;d.setTime(time*1+nb_sem_decalage*1*3600*24*1000*7);return d;}
function writeTimeBar()
{var timeBar=document.createElement('DIV');timeBar.id='timeBar';timeBar.className='timeBar';var subDiv=document.createElement('DIV');subDiv.innerHTML='Time:';var hourDiv=document.createElement('DIV');hourDiv.onmouseover=highlightSelect;hourDiv.onmouseout=highlightSelect;hourDiv.onclick=showHourDropDown;hourDiv.style.width='30px';var span=document.createElement('SPAN');span.innerHTML=currentHour;span.id='calendar_hour_txt';hourDiv.appendChild(span);timeBar.appendChild(hourDiv);var img=document.createElement('IMG');img.src=pathToImages+'down_time.gif';hourDiv.appendChild(img);hourDiv.className='selectBoxTime';if(Opera){hourDiv.style.width='30px';img.style.cssText='float:right';img.style.position='relative';img.style.styleFloat='right';}
var hourPicker=createHourDiv();hourPicker.style.left='130px';hourPicker.style.width='35px';hourPicker.id='hourDropDown';calendarDiv.appendChild(hourPicker);var minuteDiv=document.createElement('DIV');minuteDiv.onmouseover=highlightSelect;minuteDiv.onmouseout=highlightSelect;minuteDiv.onclick=showMinuteDropDown;minuteDiv.style.width='30px';var span=document.createElement('SPAN');span.innerHTML=currentMinute;span.id='calendar_minute_txt';minuteDiv.appendChild(span);timeBar.appendChild(minuteDiv);var img=document.createElement('IMG');img.src=pathToImages+'down_time.gif';minuteDiv.appendChild(img);minuteDiv.className='selectBoxTime';if(Opera){minuteDiv.style.width='30px';img.style.cssText='float:right';img.style.position='relative';img.style.styleFloat='right';}
var minutePicker=createMinuteDiv();minutePicker.style.left='167px';minutePicker.style.width='35px';minutePicker.id='minuteDropDown';calendarDiv.appendChild(minutePicker);return timeBar;}
function writeBottomBar()
{var d=new Date();var bottomBar=document.createElement('DIV');bottomBar.id='bottomBar';bottomBar.style.cursor='pointer';bottomBar.className='todaysDate';var subDiv=document.createElement('DIV');subDiv.onclick=pickTodaysDate;subDiv.id='todaysDateString';subDiv.style.width=(calendarDiv.offsetWidth-95)+'px';var day=d.getDay();if(day==0)day=7;day--;var bottomString=todayStringFormat;bottomString=bottomString.replace('[monthString]',monthArrayShort[d.getMonth()]);bottomString=bottomString.replace('[day]',d.getDate());bottomString=bottomString.replace('[year]',d.getFullYear());bottomString=bottomString.replace('[dayString]',dayArray[day].toLowerCase());bottomString=bottomString.replace('[UCFdayString]',dayArray[day]);bottomString=bottomString.replace('[todayString]',todayString);subDiv.innerHTML='<a href="#" onclick="pickTodaysDate();">'+todayString+': '+d.getDate()+'. '+monthArrayShort[d.getMonth()]+', '+d.getFullYear()+'</a>';subDiv.innerHTML=bottomString;bottomBar.appendChild(subDiv);var timeDiv=writeTimeBar();bottomBar.appendChild(timeDiv);calendarDiv.appendChild(bottomBar);}
function getTopPos(inputObj)
{var returnValue=inputObj.offsetTop+inputObj.offsetHeight;while((inputObj=inputObj.offsetParent)!=null)returnValue+=inputObj.offsetTop;return returnValue+calendar_offsetTop;}
function getleftPos(inputObj)
{var returnValue=inputObj.offsetLeft;while((inputObj=inputObj.offsetParent)!=null)returnValue+=inputObj.offsetLeft;return returnValue+calendar_offsetLeft;}
function positionCalendar(inputObj)
{calendarDiv.style.left=getleftPos(inputObj)+'px';calendarDiv.style.top=getTopPos(inputObj)+'px';if(iframeObj){iframeObj.style.left=calendarDiv.style.left;iframeObj.style.top=calendarDiv.style.top;}}
function initCalendar()
{if(MSIE){iframeObj=document.createElement('IFRAME');iframeObj.style.position='absolute';iframeObj.border='0px';iframeObj.style.border='0px';iframeObj.style.backgroundColor='#FF0000';document.body.appendChild(iframeObj);}
calendarDiv=document.createElement('DIV');calendarDiv.id='calendarDiv';calendarDiv.style.zIndex=1000;slideCalendarSelectBox();document.body.appendChild(calendarDiv);writeBottomBar();writeTopBar();if(!currentYear){var d=new Date();currentMonth=d.getMonth();currentYear=d.getFullYear();}
writeCalendarContent();}
function setTimeProperties()
{if(!calendarDisplayTime){document.getElementById('timeBar').style.display='none';document.getElementById('timeBar').style.visibility='hidden';document.getElementById('todaysDateString').style.width='100%';}else{document.getElementById('timeBar').style.display='block';document.getElementById('timeBar').style.visibility='visible';document.getElementById('hourDropDown').style.top=document.getElementById('calendar_minute_txt').parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById('topBar').offsetHeight+'px';document.getElementById('minuteDropDown').style.top=document.getElementById('calendar_minute_txt').parentNode.offsetHeight+calendarContentDiv.offsetHeight+document.getElementById('topBar').offsetHeight+'px';document.getElementById('minuteDropDown').style.right='50px';document.getElementById('hourDropDown').style.right='50px';document.getElementById('todaysDateString').style.width='115px';}}
function displayCalendar(inputField,format,buttonObj,displayTime,timeInput)
{var dateActu=new Date();if(displayTime)calendarDisplayTime=true;else calendarDisplayTime=false;if(inputField.value.length==format.length){var monthPos=format.indexOf('mm');currentMonth=inputField.value.substr(monthPos,2)/1-1;if(currentMonth<0)
currentMonth=dateActu.getMonth();var yearPos=format.indexOf('yyyy');currentYear=inputField.value.substr(yearPos,4);if(currentYear=="0000")
currentYear=dateActu.getFullYear();if(yearPos<0)
{var yearCrtPos=format.indexOf('yy');currentYearCrt=inputField.value.substr(yearCrtPos,2);currentYear=2000+currentYearCrt*1;}
var dayPos=format.indexOf('dd');tmpDay=inputField.value.substr(dayPos,2);if(tmpDay=="00")
{tmpDay=dateActu.getDate();}
var hourPos=format.indexOf('hh');if(hourPos>=0){tmpHour=inputField.value.substr(hourPos,2);currentHour=tmpHour;}else{currentHour='00';}
var minutePos=format.indexOf('ii');if(minutePos>=0){tmpMinute=inputField.value.substr(minutePos,2);currentMinute=tmpMinute;}else{currentMinute='00';}}else{var d=new Date();currentMonth=d.getMonth();currentYear=d.getFullYear();currentHour='08';currentMinute='00';tmpDay=d.getDate();}
currentWeek=getWeek(currentYear,currentMonth,tmpDay);inputYear=currentYear;inputMonth=currentMonth;inputDay=tmpDay/1;if(!calendarDiv){initCalendar();}else{if(calendarDiv.style.display=='block'){closeCalendar();return false;}
writeCalendarContent();}
returnFormat=format;returnDateTo=inputField;positionCalendar(buttonObj);calendarDiv.style.visibility='visible';calendarDiv.style.display='block';if(iframeObj){iframeObj.style.display='';iframeObj.style.height='140px';iframeObj.style.width='205px';}
setTimeProperties();updateYearDiv();updateMonthDiv();updateMinuteDiv();updateWeekDiv();updateHourDiv();}
function displayCalendarSelectBox(yearInput,monthInput,dayInput,hourInput,minuteInput,buttonObj)
{if(!hourInput)calendarDisplayTime=false;else calendarDisplayTime=true;currentMonth=monthInput.options[monthInput.selectedIndex].value/1-1;currentYear=yearInput.options[yearInput.selectedIndex].value;if(hourInput){currentHour=hourInput.options[hourInput.selectedIndex].value;inputHour=currentHour/1;}
if(minuteInput){currentMinute=minuteInput.options[minuteInput.selectedIndex].value;inputMinute=currentMinute/1;}
inputYear=yearInput.options[yearInput.selectedIndex].value;inputMonth=monthInput.options[monthInput.selectedIndex].value/1-1;inputDay=dayInput.options[dayInput.selectedIndex].value/1;if(!calendarDiv){initCalendar();}else{writeCalendarContent();}
returnDateToYear=yearInput;returnDateToMonth=monthInput;returnDateToDay=dayInput;returnDateToHour=hourInput;returnDateToMinute=minuteInput;returnFormat=false;returnDateTo=false;positionCalendar(buttonObj);calendarDiv.style.visibility='visible';calendarDiv.style.display='block';if(iframeObj){iframeObj.style.display='';iframeObj.style.height=calendarDiv.offsetHeight+'px';iframeObj.style.width=calendarDiv.offsetWidth+'px';}
setTimeProperties();updateYearDiv();updateMonthDiv();updateWeekDiv();updateHourDiv();updateMinuteDiv();}


var galleryArray=[];var resetzeBox=function(){galleryArray=[]};var add2box=function(myFlowItem){galleryArray.push(myFlowItem);};var openzeBox=function(id){Shadowbox.open(galleryArray,ShadowboxOptions,id);};var ShadowboxOptions={continuous:true,counterType:'skip',animate:true,handleOversize:'drag',slideshowDelay:0,animSequence:'sync'}

function XMLtoHTML(chaine)
{chaine=chaine.replace(/&amp;/g,"&");chaine=chaine.replace(/&lt;/g,"<");chaine=chaine.replace(/&gt;/g,">");return chaine;}
function compteVuAjaxProduit(id_produit)
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_produit_vu.php?id_produit='+id_produit,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
{}}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function afficheAutrePageRubrique(rubrique,debut,marque,famille_attribut,attribut,mode_affichage,mobilite_reduite,nouveaute)
{var xmlhttp=getHTTPObject();for(i=1;i<=12;i++)
{if(document.getElementById('divProduit'+i)!=null)
{document.getElementById('divProduit'+i).style.display="none";document.getElementById('divProduit'+i).style.visibility="hidden";}}
if(document.getElementById('divProduit')!=null)
{document.getElementById('divProduit').style.display="none";document.getElementById('divProduit').style.visibility="hidden";}
xmlhttp.open('GET','xml_recharge_rubrique.php?rubrique='+rubrique+"&debut="+debut+"&marque="+marque+"&famille_attribut="+famille_attribut+"&attribut_choisi="+attribut+"&mode_affichage="+mode_affichage+"&mobilite_reduite="+mobilite_reduite+"&nouveaute="+nouveaute,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
afficheAutrePageRubriqueNow(xmlhttp.responseXML,rubrique,debut,marque,famille_attribut,attribut,mode_affichage,mobilite_reduite,nouveaute);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function afficheAutrePageRubriqueNow(responseXML,rubrique,debut,marque,famille_attribut,attribut,mode_affichage,mobilite_reduite,nouveaute)
{var j=0;var i;var url_retour="";url_retour='R-'+rubrique+'-';if(marque)
url_retour+=marque+'-';else if(attribut)
url_retour+=famille_attribut+'-'+attribut+'-';url_retour+='Rubrique';for(i=0;document.getElementById('choixDebut'+(i*mode_affichage))!=null;i++)
{if((i*mode_affichage)==debut)
{$('.choixDebut'+(i*mode_affichage)).addClass('pageActive');$('.choixDebut'+(i*mode_affichage)).html(i+1);}
else
{$('.choixDebut'+(i*mode_affichage)).removeClass('pageActive');if(i==0){$('.choixDebut'+(i*mode_affichage)).attr('href',url_retour+'.html');$('.choixDebut'+(i*mode_affichage)).click('afficheAutrePageRubrique(\''+rubrique+'\',\''+(i*mode_affichage)+'\',\''+marque+'\',\''+famille_attribut+'\',\''+attribut+'\',\''+mode_affichage+'\',\''+mobilite_reduite+'\',\''+nouveaute+'\');return false;');}
else{$('.choixDebut'+(i*mode_affichage)).attr('href',url_retour+','+(i*mode_affichage)+'.html');$('.choixDebut'+(i*mode_affichage)).click('afficheAutrePageRubrique(\''+rubrique+'\',\''+(i*mode_affichage)+'\',\''+marque+'\',\''+famille_attribut+'\',\''+attribut+'\',\''+mode_affichage+'\',\''+mobilite_reduite+'\',\''+nouveaute+'\');return false;');}}}
var nbDernPage=i-1;if(nbDernPage*mode_affichage>debut){$('.conteneurPageSuivante').html('<a href="'+url_retour+','+(debut*1+1*mode_affichage)+'.html" onclick="afficheAutrePageRubrique(\''+rubrique+'\',\''+(debut*1+1*mode_affichage)+'\',\''+marque+'\',\''+famille_attribut+'\',\''+attribut+'\',\''+mode_affichage+'\',\''+mobilite_reduite+'\',\''+nouveaute+'\');return false;" id="pageSuivante" class="btn-suivant" >suivant</a>');}else $('.btn-suivant').hide();if(debut>0){$('.conteneurPagePrecedante').html('<a href="'+url_retour+','+(debut-mode_affichage)+'.html" onclick="afficheAutrePageRubrique(\''+rubrique+'\',\''+(debut-mode_affichage)+'\',\''+marque+'\',\''+famille_attribut+'\',\''+attribut+'\',\''+mode_affichage+'\',\''+mobilite_reduite+'\',\''+nouveaute+'\');return false;" id="pagePrecedante" class="btn-precedent">précédent</a>');}else $('.btn-precedent').hide();for(i=0;responseXML.getElementsByTagName('produit')[i]!=null;i++)
{j=i*1+1;if(mode_affichage==35)
{if(responseXML.getElementsByTagName('image')[i].firstChild!=null)
{document.getElementById('apercuProduit'+j).innerHTML='<a href="'+responseXML.getElementsByTagName('url')[i].firstChild.data+'" id="lienProduit'+i+'" onClick="affiche_produit(0,'+responseXML.getElementsByTagName('id')[i].firstChild.data+');return false;" onMouseOver="overlib(\'<img src='+responseXML.getElementsByTagName('imagezoom')[i].firstChild.data+'>\')" onMouseOut="nd()"><img src="images/cache-92-92.png" style="position:absolute;" /><img src="'+responseXML.getElementsByTagName('image')[i].firstChild.data+'" border="0" width="92" height="92" /></a>';}}
else
{if(responseXML.getElementsByTagName('marque')[i].getAttribute('nom')!=null)
document.getElementById('nomMarque'+j).innerHTML=responseXML.getElementsByTagName('marque')[i].getAttribute('nom');if(responseXML.getElementsByTagName('marque')[i].getAttribute('logo')!=null)
document.getElementById('logoMarque'+j).setAttribute('src',responseXML.getElementsByTagName('marque')[i].getAttribute('logo'));if(responseXML.getElementsByTagName('mobilitereduite')[i].firstChild!=null&&responseXML.getElementsByTagName('mobilitereduite')[i].firstChild.data=='oui')
{mobilite_reduite='<img class="nouveaute" src="/images/logo-mobilite-reduite.gif">';}
else
mobilite_reduite='';if(mode_affichage==6)
document.getElementById('lienFiche'+j+'_1').innerHTML='<a href="#" onClick="affiche_produit(0,'+responseXML.getElementsByTagName('id')[i].firstChild.data+');return false;"><img id="imageProduit'+i+'" src="'+responseXML.getElementsByTagName('image')[i].firstChild.data+'" alt="" width="170" height="115" border="0" /></a>'+mobilite_reduite;else
document.getElementById('lienFiche'+j+'_1').innerHTML='<a href="#" onClick="affiche_produit(0,'+responseXML.getElementsByTagName('id')[i].firstChild.data+');return false;"><img id="imageProduit'+i+'" src="'+responseXML.getElementsByTagName('image')[i].firstChild.data+'" alt="" width="160" height="115" border="0" /></a>'+mobilite_reduite;if(responseXML.getElementsByTagName('sous_titre')[i].firstChild)
document.getElementById('sousTitreProduit'+j+'_1').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('sous_titre')[i].firstChild.data);else
document.getElementById('sousTitreProduit'+j+'_1').innerHTML='';document.getElementById('titreProduit'+j).innerHTML='<a href="#" onClick="affiche_produit(0,'+responseXML.getElementsByTagName('id')[i].firstChild.data+');return false;">'+XMLtoHTML(responseXML.getElementsByTagName('titre')[i].firstChild.data)+'</a>';if(responseXML.getElementsByTagName('nouveaute')[i].firstChild&&responseXML.getElementsByTagName('nouveaute')[i].firstChild.data=='oui'){$('#nouveaute'+j).show();}
else
$('#nouveaute'+j).hide();if(responseXML.getElementsByTagName('prix_indicatif')[i].firstChild&&responseXML.getElementsByTagName('prix_indicatif')[i].firstChild.data>0)
document.getElementById('prixIndicatif'+j).innerHTML=responseXML.getElementsByTagName('prix_indicatif')[i].firstChild.data+"&euro;";else
document.getElementById('prixIndicatif'+j).innerHTML="";}
document.getElementById('apercuProduit'+j).style.display="block";document.getElementById('apercuProduit'+j).style.visibility="visible";}
i++;while(document.getElementById('apercuProduit'+i)!=null)
{document.getElementById('apercuProduit'+i).style.display="none";document.getElementById('apercuProduit'+i).style.visibility="hidden";i++;}
document.getElementById('lienProduit0').focus();}
function afficheAjaxProduit(id_produit)
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_recharge_produit.php?id_produit='+id_produit,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
afficheAjaxProduitNow(xmlhttp.responseXML,id_produit);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function afficheAjaxProduitNow(responseXML,id_produit)
{if(responseXML.getElementsByTagName('image')[0].firstChild!=null)
document.getElementById('logoMarque').src=responseXML.getElementsByTagName('image')[0].firstChild.data;else
document.getElementById('logoMarque').src="/images/rien5.gif";if(responseXML.getElementsByTagName('lienimprimer')[0].firstChild!=null)
document.getElementById('lienImprimer').setAttribute('href',responseXML.getElementsByTagName('lienimprimer')[0].firstChild.data);if(responseXML.getElementsByTagName('titre')[0].firstChild!=null)
document.getElementById('titreProduit').innerHTML=responseXML.getElementsByTagName('titre')[0].firstChild.data;else
document.getElementById('titreProduit').innerHTML="";if(responseXML.getElementsByTagName('sstitre')[0].firstChild!=null)
document.getElementById('sousTitreProduit').innerHTML=responseXML.getElementsByTagName('sstitre')[0].firstChild.data;else
document.getElementById('sousTitreProduit').innerHTML="";if(responseXML.getElementsByTagName('description')[0].firstChild!=null)
document.getElementById('descriptifProduit').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('description')[0].firstChild.data);else
document.getElementById('descriptifProduit').innerHTML="";if(responseXML.getElementsByTagName('nom')[0].firstChild!=null)
document.getElementById('nomMarque').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('nom')[0].firstChild.data);else
document.getElementById('nomMarque').innerHTML="";var coverflow=false;if(responseXML.getElementsByTagName('coverflow')[0].firstChild!=null&&responseXML.getElementsByTagName('coverflow')[0].firstChild.data.length>5){document.getElementById('coverFlow').innerHTML=responseXML.getElementsByTagName('coverflow')[0].firstChild.data;coverflow=true;}else document.getElementById('coverFlow').innerHTML='';if(responseXML.getElementsByTagName('photo')[0].firstChild!=null&&!coverflow){document.getElementById('imageProduit').src=responseXML.getElementsByTagName('photo')[0].firstChild.data;$('#imageProduit').show();}else{document.getElementById('imageProduit').src="images/rien5.gif";$('#imageProduit').hide();}
$('#hrefProduitZoom').attr('href',responseXML.getElementsByTagName('photoZoom')[0].firstChild.data);
$('#hrefProduitZoom-2').attr('href',responseXML.getElementsByTagName('photoZoom')[0].firstChild.data);
$('#hrefProduitZoom-3').attr('href',responseXML.getElementsByTagName('photoZoom')[0].firstChild.data);
$('#hrefProduitZoom-3').unbind('click');
$('#hrefProduitZoom-3').click(function(){Shadowbox.open({player:'img',title:document.getElementById('titreProduit').innerHTML,content:$('#hrefProduitZoom').attr('href'),counterType:'skip',continuous:true});return false;});
$('#hrefProduitZoom').unbind('click');
$('#hrefProduitZoom').click(function(){Shadowbox.open({player:'img',title:document.getElementById('titreProduit').innerHTML,content:$('#hrefProduitZoom').attr('href'),counterType:'skip',continuous:true});return false;});
$('#hrefProduitZoom-2').unbind('click');$('#hrefProduitZoom-2').click(function(){Shadowbox.open({player:'img',title:document.getElementById('titreProduit').innerHTML,content:$('#hrefProduitZoom').attr('href'),counterType:'skip',continuous:true});return false;});if(responseXML.getElementsByTagName('prix')[0].firstChild!=null&&responseXML.getElementsByTagName('prix')[0].firstChild.data>0)
document.getElementById('prix').innerHTML=responseXML.getElementsByTagName('prix')[0].firstChild.data+"&nbsp;&euro;*";else
document.getElementById('prix').innerHTML="";if(responseXML.getElementsByTagName('mobilitereduite')[0].firstChild!=null&&responseXML.getElementsByTagName('mobilitereduite')[0].firstChild.data=='oui'&&document.getElementById('divImageMobRdivProduit')!=null)
document.getElementById('divImageMobRdivProduit').innerHTML="<img src='/images/logo-mobilite-reduite.gif'>";else if(document.getElementById('divImageMobRdivProduit')!=null)
document.getElementById('divImageMobRdivProduit').innerHTML="";if(document.getElementById('ajoutPanier'))
document.getElementById('ajoutPanier').innerHTML='<a href="ajouter_produit.php?id='+responseXML.getElementsByTagName('id')[0].firstChild.data+'" target="_blank" class="ajoutSelection btnBleu">Ajouter à ma sélection</a>';$('#ajoutPanier a').fancybox({'hideOnContentClick':false,'frameWidth':500,'frameHeight':110});if(document.getElementById('envoyerAmi'))
document.getElementById('envoyerAmi').innerHTML='<a href="envoyer-produit-ami.php?id='+responseXML.getElementsByTagName('id')[0].firstChild.data+'" target="_blank" class="ficheConseil btnBleu">Envoyer à un ami</a>';$('#envoyerAmi a').fancybox({'hideOnContentClick':false,'frameWidth':600,'frameHeight':480});if(responseXML.getElementsByTagName('modecollectivite')[0]!=null&&responseXML.getElementsByTagName('modecollectivite')[0].firstChild!=null&&responseXML.getElementsByTagName('modecollectivite')[0].firstChild.data==1)
{if(responseXML.getElementsByTagName('collection')[0].firstChild!=null)
{document.getElementById('memeCollection').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('collection')[0].firstChild.data);$('#titreMemeCollection').show();$('#memeCollection').show();}
else
{document.getElementById('memeCollection').innerHTML="";$('#titreMemeCollection').hide();$('#memeCollection').hide();}}
else
{if(responseXML.getElementsByTagName('collection')[0].firstChild!=null)
{document.getElementById('memeCollection').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('collection')[0].firstChild.data);$('#titreMemeCollection').show();$('#memeCollection').show();}
else
{document.getElementById('memeCollection').innerHTML="";$('#titreMemeCollection').hide();$('#memeCollection').hide();}}}
function afficheNewsProduit(id_news)
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_recharge_news.php?id_news='+id_news,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
afficheNewsProduitNow(xmlhttp.responseXML,id_news);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function afficheNewsProduitNow(responseXML,id_news)
{if(responseXML.getElementsByTagName('titre')[0].firstChild!=null)
document.getElementById('titreProduit').innerHTML=responseXML.getElementsByTagName('titre')[0].firstChild.data;else
document.getElementById('titreProduit').innerHTML="";
if(responseXML.getElementsByTagName('sous_titre')[0].firstChild!=null)
document.getElementById('sousTitreProduit').innerHTML=responseXML.getElementsByTagName('sous_titre')[0].firstChild.data;else
document.getElementById('sousTitreProduit').innerHTML="";
if(responseXML.getElementsByTagName('description')[0].firstChild!=null)
document.getElementById('descriptifProduit').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('description')[0].firstChild.data);
else
document.getElementById('descriptifProduit').innerHTML="";
if(responseXML.getElementsByTagName('lien')[0].firstChild!=null) {
$('#lienProduit').attr('href',responseXML.getElementsByTagName('lien')[0].firstChild.data);
$('#lienProduit').show();

}
else
$('#lienProduit').hide();
if(responseXML.getElementsByTagName('photo')[0].firstChild!=null) {
document.getElementById('imageProduit').src=responseXML.getElementsByTagName('photo')[0].firstChild.data;
$('#hrefProduitZoom').attr('href',responseXML.getElementsByTagName('photoZoom')[0].firstChild.data);
$('#hrefProduitZoom').unbind('click');$('#hrefProduitZoom').click(function(){Shadowbox.open({player:'img',title:document.getElementById('titreProduit').innerHTML,content:$('#hrefProduitZoom').attr('href'),counterType:'skip',continuous:true});return false;});

}else
document.getElementById('imageProduit').src="images/rien5.gif";if(responseXML.getElementsByTagName('mobilitereduite')[0].firstChild!=null&&responseXML.getElementsByTagName('mobilitereduite')[0].firstChild.data=='oui'&&document.getElementById('divImageMobRdivProduit')!=null)
document.getElementById('divImageMobRdivProduit').innerHTML="<img src='/images/logo-mobilite-reduite.gif'>";else if(document.getElementById('divImageMobRdivProduit')!=null)
document.getElementById('divImageMobRdivProduit').innerHTML="";if(responseXML.getElementsByTagName('collection')[0].firstChild!=null)
{document.getElementById('memeCollection').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('collection')[0].firstChild.data);$('#titreMemeCollection').show();$('#memeCollection').show();}
else
{document.getElementById('memeCollection').innerHTML="";$('#titreMemeCollection').hide();$('#memeCollection').hide();}}
function getNbreArticlesSelection()
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_recharge_selection.php',true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
getNbreArticlesSelectionNow(xmlhttp.responseXML);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function getNbreArticlesSelectionNow(responseXML)
{document.getElementById('maSelectionInfos').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('nbre')[0].firstChild.data);}
function afficheClassAttributs(indice,rubrique,produit)
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_recharge_attributs.php?rubrique='+rubrique+"&produit="+produit,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
afficheClassAttributsNow(xmlhttp.responseXML,indice,rubrique);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function afficheClassAttributsNow(responseXML,indice,rubrique)
{var chaine="";if(document.getElementById('class_attributs_'+indice)==null)
{document.getElementById('class_attributs').innerHTML+="<div id='class_attributs_"+indice+"'></div>";}
var cible=document.getElementById('class_attributs_'+indice);var famille=null;var selected="";chaine="<fieldset><legend>Classes d'attributs : "+responseXML.getElementsByTagName('rubrique')[0].getAttribute('titre')+"</legend>";for(i=0;responseXML.getElementsByTagName('famille_attributs')[i]!=null;i++)
{famille=responseXML.getElementsByTagName('famille_attributs')[i];chaine+="Choix par "+famille.getAttribute('titre')+" : ";for(j=0;responseXML.getElementsByTagName('attribut'+i)[j]!=null;j++)
{attribut=responseXML.getElementsByTagName('attribut'+i)[j];if(attribut.getAttribute('selected')=="1")
selected=" checked='checked' ";else
selected="";chaine+=" <input type='checkbox' name='attribut_"+famille.getAttribute('id')+"_"+attribut.getAttribute('id')+"' value='1' "+selected+">&nbsp;"+attribut.firstChild.data;}
chaine+="<br />";}
chaine+="</fieldset>";cible.innerHTML=chaine;}
function rechargeMarques()
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_recharge_marques.php',true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
rechargeMarquesNow(xmlhttp.responseXML);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function rechargeMarquesNow(responseXML)
{var select=document.getElementById('marque');var o=null;select.options.length=0;o=new Option("Aucune marque",0);select.options[select.options.length]=o;for(i=0;responseXML.getElementsByTagName('marque')[i]!=null;i++)
{o=new Option(responseXML.getElementsByTagName('marque')[i].getAttribute('titre'),responseXML.getElementsByTagName('marque')[i].getAttribute('id'));select.options[select.options.length]=o;}}
function rechargeProduitsVoir(id,id_rubrique,id_prod)
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','/xml_recharge_produits.php?rubrique='+id_rubrique,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
{if(id_prod==null)
{for(j=1;document.getElementById('select_produit_'+id+'_'+j)!=null;j++)
{rechargeProduitsVoirNow(xmlhttp.responseXML,id,id_rubrique,j);}}
else
{rechargeProduitsVoirNow(xmlhttp.responseXML,id,id_rubrique,id_prod);}}}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function rechargeProduitsVoirNow(responseXML,indice_rub,id_rubrique,id_prod)
{var select=document.getElementById("select_produit_"+indice_rub+"_"+id_prod);var o=null;select.options.length=0;o=new Option("Produits affichés au hasard",0);select.options[select.options.length]=o;for(i=0;responseXML.getElementsByTagName('produit')[i]!=null;i++)
{o=new Option(responseXML.getElementsByTagName('produit')[i].getAttribute('titre'),responseXML.getElementsByTagName('produit')[i].getAttribute('id'));select.options[select.options.length]=o;}}
function rechargeCollections()
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_recharge_collections.php',true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
rechargeCollectionsNow(xmlhttp.responseXML);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function rechargeCollectionsNow(responseXML)
{var select=document.getElementById('collection');var o=null;select.options.length=0;o=new Option("Aucune collection",0);select.options[select.options.length]=o;for(i=0;responseXML.getElementsByTagName('collection')[i]!=null;i++)
{o=new Option(responseXML.getElementsByTagName('collection')[i].getAttribute('titre'),responseXML.getElementsByTagName('collection')[i].getAttribute('id'));select.options[select.options.length]=o;}}
/*function aff_magasin(insee)
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_charge_magasin_insee.php?insee='+insee,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
aff_magasin_now(xmlhttp.responseXML);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function aff_magasin_now(responseXML)
{var contenu_html="";


if(responseXML.getElementsByTagName('autresmagasins')[0].firstChild!=null)
{contenu_html+="<br/>Les dépôts aux alentours : <br/>";for(i=0;responseXML.getElementsByTagName('magasin')[i]!=null;i++)
{if(i%2)
contenu_html+="<div class='fondGF'>";else
contenu_html+="<div class='fondGC'>";contenu_html+="<a href='#' onclick='rechargeMagasin("+responseXML.getElementsByTagName('id')[i].firstChild.data+");return false;'><b>"+responseXML.getElementsByTagName('depot')[i].firstChild.data+"</b> - "+responseXML.getElementsByTagName('ville')[i].firstChild.data+"</a>"
contenu_html+="</div>";}}
.if(i==1)
{rechargeMagasin(responseXML.getElementsByTagName('id')[0].firstChild.data);}
document.getElementById('moduleRecherche').innerHTML=contenu_html;}*/
function rechercheAjaxMagasins()
{
var xmlhttp=getHTTPObject();
var recherche=document.getElementById('recherche').value;

//alert(xmlhttp);
xmlhttp.open('GET','xml_recherche_magasins.php?recherche='+recherche,true);
xmlhttp.onreadystatechange=function()
{
    if(xmlhttp.readyState==4)
    {
        if(xmlhttp.status==200)
            rechercheAjaxMagasinsNow(xmlhttp.responseXML,recherche);
    }
}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function rechercheAjaxMagasinsNow(responseXML,recherche)
{var contenu_html='<img src="images/cartouche-pte-top.png" width="297" height="15" /><table width="98%" border="0" align="center" cellpadding="10" cellspacing="0"><tr><td valign="top"><strong>MAGASINS PR&Egrave;S DE '+recherche+'</strong><br />';map.clearOverlays();var init=1;var posMag=0;var latitudeMin=null;var longitudeMin=null;var latitudeMax=null;var longitudeMax=null;var position=null;var depLatLng=new GLatLng(responseXML.getElementsByTagName('positionBase')[0].getAttribute('latitude'),responseXML.getElementsByTagName('positionBase')[0].getAttribute('longitude'));
map.setCenter(depLatLng);

if(recherche.length>=3&&responseXML.getElementsByTagName('magasinproche')!=null)
{
contenu_html+='<table border="0" cellspacing="0" cellpadding="10"><tr><td><a href="'+responseXML.getElementsByTagName('lien')[0].firstChild.data+'"><img src="'+urlMarkerImage(0)+'"  border="0" /></a></td>';
contenu_html+='<td><a href="'+responseXML.getElementsByTagName('lien')[0].firstChild.data+'" class="lienBleu"><strong>'+responseXML.getElementsByTagName('depot')[0].firstChild.data+' '+responseXML.getElementsByTagName('cp')[0].firstChild.data+' '+responseXML.getElementsByTagName('ville')[0].firstChild.data+'</strong></a><br />';
contenu_html+=responseXML.getElementsByTagName('adresse')[0].firstChild.data+' '+responseXML.getElementsByTagName('cp')[0].firstChild.data+' '+responseXML.getElementsByTagName('ville')[0].firstChild.data+'<br />';
contenu_html+="</td></tr></table>";
position=new GLatLng(responseXML.getElementsByTagName('position')[0].getAttribute('latitude'),responseXML.getElementsByTagName('position')[0].getAttribute('longitude'));
map.addOverlay(createMarker(position,posMag,responseXML.getElementsByTagName('lien')[0].firstChild.data));
longitudeMax=responseXML.getElementsByTagName('position')[0].getAttribute('longitude')*1;
longitudeMin=longitudeMax;
latitudeMax=responseXML.getElementsByTagName('position')[0].getAttribute('latitude')*1;
latitudeMin=latitudeMax;
//alert(latitudeMax+" "+longitudeMax+" : "+latitudeMin+" "+longitudeMin);
posMag++;}
else if(recherche.length<3)
{contenu_html+="<br/><b>Les dépôts dans votre département sont :</b><br/>";}
else
{contenu_html+="<br/><font color='red'><b>Aucun dépôt près de chez vous.</b></font><br/>";}
if(responseXML.getElementsByTagName('magasin').length)
{if(recherche.length>=3&&responseXML.getElementsByTagName('autresmagasins')[0].firstChild!=null)
contenu_html+='<img src="images/separation-pte.png"/><br/>Dépôts aux alentours de chez vous : <br/>';else
init=0;for(i=init;responseXML.getElementsByTagName('magasin')[i]!=null;i++)
{contenu_html+='<table border="0" cellspacing="0" cellpadding="10"><tr>';contenu_html+='<td><a href="'+responseXML.getElementsByTagName('lien')[i].firstChild.data+'"><img src="'+urlMarkerImage(i)+'" border="0" /></a></td>';contenu_html+='<td><a href="'+responseXML.getElementsByTagName('lien')[i].firstChild.data+'" class="lienBleu"><strong>'+responseXML.getElementsByTagName('depot')[i].firstChild.data+' '+responseXML.getElementsByTagName('cp')[i].firstChild.data+' '+responseXML.getElementsByTagName('ville')[i].firstChild.data+'</strong></a><br />'+responseXML.getElementsByTagName('adresse')[i].firstChild.data+' '+responseXML.getElementsByTagName('cp')[i].firstChild.data+' '+responseXML.getElementsByTagName('ville')[i].firstChild.data;contenu_html+='</td></tr>';position=new GLatLng(responseXML.getElementsByTagName('position')[i].getAttribute('latitude'),responseXML.getElementsByTagName('position')[i].getAttribute('longitude'));map.addOverlay(createMarker(position,posMag,responseXML.getElementsByTagName('lien')[i].firstChild.data));posMag++;contenu_html+="</table>";
//alert(latitudeMax+" "+longitudeMax+" : "+latitudeMin+" "+longitudeMin);
if(longitudeMax==null||longitudeMax<responseXML.getElementsByTagName('position')[i].getAttribute('longitude')*1)
longitudeMax=responseXML.getElementsByTagName('position')[i].getAttribute('longitude')*1;
if(longitudeMin==null||longitudeMin>responseXML.getElementsByTagName('position')[i].getAttribute('longitude')*1)
longitudeMin=responseXML.getElementsByTagName('position')[i].getAttribute('longitude')*1;
if(latitudeMax==null||latitudeMax<responseXML.getElementsByTagName('position')[i].getAttribute('latitude')*1)
latitudeMax=responseXML.getElementsByTagName('position')[i].getAttribute('latitude')*1;
if(latitudeMin==null||latitudeMin>responseXML.getElementsByTagName('position')[i].getAttribute('latitude')*1)
latitudeMin=responseXML.getElementsByTagName('position')[i].getAttribute('latitude')*1;}
}
contenu_html+='</td></tr></table><br /><img src="images/cartouche-pte-bas.png" width="297" height="15" />';
if(responseXML.getElementsByTagName('magasin').length==1)
depLatLng=new GLatLng(latitudeMax,longitudeMax);	
else
depLatLng=new GLatLng((latitudeMax+latitudeMin)/2,(longitudeMax+longitudeMin)/2);	
latitudeMin = latitudeMin-0.05;
longitudeMin = longitudeMin-0.05;
latitudeMax = latitudeMax+0.05;
longitudeMax = longitudeMax+0.05;
//alert(latitudeMax+" "+longitudeMax+" : "+latitudeMin+" "+longitudeMin);
	
var bounds=new GLatLngBounds(new GLatLng(latitudeMin,longitudeMin),new GLatLng(latitudeMax,longitudeMax));map.setCenter(depLatLng,map.getBoundsZoomLevel(bounds));
document.getElementById('resultats').innerHTML=contenu_html;
$('#resultats').show();}
function urlMarkerImage(pos){var letter=String.fromCharCode("A".charCodeAt(0)+pos);return"/images/markers/marker"+letter+".png";}
function rechargeMagasin(id_magasin)
{var xmlhttp=getHTTPObject();xmlhttp.open('GET','xml_recharge_magasin.php?id='+id_magasin,true);xmlhttp.onreadystatechange=function()
{if(xmlhttp.readyState==4)
{if(xmlhttp.status==200)
rechargeMagasinNow(xmlhttp.responseXML);}}
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');xmlhttp.send(null);}
function rechargeMagasinNow(responseXML)
{var contenu_html="";contenu_html+="<font class='titrePlan'>"+responseXML.getElementsByTagName('nom')[0].firstChild.data+"</font>";if(responseXML.getElementsByTagName('divnews')[0].firstChild!=null&&responseXML.getElementsByTagName('divnews')[0].firstChild.data.length>1)
document.getElementById('newsMagasin').innerHTML=XMLtoHTML(responseXML.getElementsByTagName('divnews')[0].firstChild.data);else
document.getElementById('newsMagasin').innerHTML='';document.getElementById('titreCoordonne').innerHTML=contenu_html;contenu_html=responseXML.getElementsByTagName('adresse')[0].firstChild.data+"<br />";contenu_html+=responseXML.getElementsByTagName('cp')[0].firstChild.data+" "+responseXML.getElementsByTagName('ville')[0].firstChild.data+"<br />";contenu_html+=XMLtoHTML(responseXML.getElementsByTagName('telephone_fax')[0].firstChild.data)+"<br />";if(responseXML.getElementsByTagName('email')[0].firstChild!=null&&responseXML.getElementsByTagName('email')[0].firstChild.data.length>1)
contenu_html+="<b>Email :</b> <a href='mailto:"+responseXML.getElementsByTagName('email')[0].firstChild.data+"'>"+responseXML.getElementsByTagName('email')[0].firstChild.data+"</a><br />";if(responseXML.getElementsByTagName('siteinternet')[0].firstChild!=null&&responseXML.getElementsByTagName('siteinternet')[0].firstChild.data.length>1)
{contenu_html+="<b>Site Internet :</b> <a href='"+responseXML.getElementsByTagName('siteinternet')[0].firstChild.data+"' target='_blank'>"+responseXML.getElementsByTagName('siteinternet')[0].firstChild.data+"</a>";}
document.getElementById('adresseMag').innerHTML=contenu_html;if(responseXML.getElementsByTagName('horaires')[0].firstChild!=null)
contenu_html=XMLtoHTML(responseXML.getElementsByTagName('horaires')[0].firstChild.data);else
contenu_html="";document.getElementById('horaireMag').innerHTML=contenu_html;if(responseXML.getElementsByTagName('plan')[0].firstChild!=null)
document.getElementById('planImg').setAttribute('src',"images/zoom/"+responseXML.getElementsByTagName('plan')[0].firstChild.data);else
document.getElementById('planImg').setAttribute('src',"images/rien5.gif");if(responseXML.getElementsByTagName('photo')[0].firstChild!=null)
document.getElementById('photoMag').setAttribute('src',"images/zoom/"+responseXML.getElementsByTagName('photo')[0].firstChild.data);else
document.getElementById('photoMag').setAttribute('src',"images/rien5.gif");document.getElementById('lienImprimer').setAttribute('href',"aff_mini_magasin.php?id_magasin="+responseXML.getElementsByTagName('id')[0].firstChild.data);document.getElementById('cadreCoordonnee').style.visibility="visible";document.getElementById('cadreCoordonnee').style.display="block";document.getElementById('lienImprimer').focus()}


var OLloaded=0,OLbubblePI=0,OLcrossframePI=0,OLdebugPI=0,OLdraggablePI=0,OLexclusivePI=0,OLfilterPI=0,OLfunctionPI=0,OLhidePI=0,OLiframePI=0,OLmodalPI=0,OLovertwoPI=0,OLscrollPI=0,OLshadowPI=0,OLprintPI=0,pmCnt=1,pMtr=new Array(),OLcmdLine=new Array(),OLrunTime=new Array(),OLv,OLudf,OLrefXY,OLpct=new Array("83%","67%","83%","100%","117%","150%","200%","267%");if(typeof OLgateOK=='undefined')var OLgateOK=1;var OLp1or2c='inarray,caparray,caption,closetext,right,left,center,autostatuscap,padx,pady,below,above,vcenter,donothing',OLp1or2co='nofollow,background,offsetx,offsety,fgcolor,bgcolor,cgcolor,textcolor,capcolor,width,wrap,wrapmax,height,border,'
+'base,status,autostatus,snapx,snapy,fixx,fixy,relx,rely,midx,midy,ref,refc,refp,refx,refy,fgbackground,bgbackground,'
+'cgbackground,fullhtml,capicon,textfont,captionfont,textsize,captionsize,timeout,delay,hauto,vauto,nojustx,nojusty,fgclass,'
+'bgclass,cgclass,capbelow,textpadding,textfontclass,captionpadding,captionfontclass,sticky,noclose,mouseoff,offdelay,'
+'closecolor,closefont,closesize,closeclick,closetitle,closefontclass,decode',OLp1or2o='text,cap,close,hpos,vpos,padxl,'
+'padxr,padyt,padyb',OLp1co='label',OLp1or2=OLp1or2co+','+OLp1or2o,OLp1=OLp1co+','+'frame';OLregCmds(OLp1or2c+','+OLp1or2co+','+OLp1co);function OLud(v){return eval('typeof ol_'+v+'=="undefined"')?1:0;}
if(OLud('fgcolor'))var ol_fgcolor="#ffffff";if(OLud('bgcolor'))var ol_bgcolor="Transparent";if(OLud('cgcolor'))var ol_cgcolor="#333399";if(OLud('textcolor'))var ol_textcolor="#000000";if(OLud('capcolor'))var ol_capcolor="#ffffff";if(OLud('closecolor'))var ol_closecolor="#ffffff";if(OLud('textfont'))var ol_textfont="Verdana,Arial,Helvetica";if(OLud('captionfont'))var ol_captionfont="Verdana,Arial,Helvetica";if(OLud('closefont'))var ol_closefont="Verdana,Arial,Helvetica";if(OLud('textsize'))var ol_textsize=1;if(OLud('captionsize'))var ol_captionsize=1;if(OLud('closesize'))var ol_closesize=1;if(OLud('fgclass'))var ol_fgclass="";if(OLud('bgclass'))var ol_bgclass="";if(OLud('cgclass'))var ol_cgclass="";if(OLud('textpadding'))var ol_textpadding=2;if(OLud('textfontclass'))var ol_textfontclass="";if(OLud('captionpadding'))var ol_captionpadding=2;if(OLud('captionfontclass'))var ol_captionfontclass="";if(OLud('closefontclass'))var ol_closefontclass="";if(OLud('close'))var ol_close="Close";if(OLud('closeclick'))var ol_closeclick=0;if(OLud('closetitle'))var ol_closetitle="Click to Close";if(OLud('text'))var ol_text="Default Text";if(OLud('cap'))var ol_cap="";if(OLud('capbelow'))var ol_capbelow=0;if(OLud('background'))var ol_background="";if(OLud('width'))var ol_width=115;if(OLud('wrap'))var ol_wrap=0;if(OLud('wrapmax'))var ol_wrapmax=0;if(OLud('height'))var ol_height=-1;if(OLud('border'))var ol_border=1;if(OLud('base'))var ol_base=0;if(OLud('offsetx'))var ol_offsetx=10;if(OLud('offsety'))var ol_offsety=10;if(OLud('sticky'))var ol_sticky=0;if(OLud('nofollow'))var ol_nofollow=0;if(OLud('noclose'))var ol_noclose=0;if(OLud('mouseoff'))var ol_mouseoff=0;if(OLud('offdelay'))var ol_offdelay=300;if(OLud('hpos'))var ol_hpos=RIGHT;if(OLud('vpos'))var ol_vpos=BELOW;if(OLud('status'))var ol_status="";if(OLud('autostatus'))var ol_autostatus=0;if(OLud('snapx'))var ol_snapx=0;if(OLud('snapy'))var ol_snapy=0;if(OLud('fixx'))var ol_fixx=-1;if(OLud('fixy'))var ol_fixy=-1;if(OLud('relx'))var ol_relx=null;if(OLud('rely'))var ol_rely=null;if(OLud('midx'))var ol_midx=null;if(OLud('midy'))var ol_midy=null;if(OLud('ref'))var ol_ref="";if(OLud('refc'))var ol_refc='UL';if(OLud('refp'))var ol_refp='UL';if(OLud('refx'))var ol_refx=0;if(OLud('refy'))var ol_refy=0;if(OLud('fgbackground'))var ol_fgbackground="";if(OLud('bgbackground'))var ol_bgbackground="";if(OLud('cgbackground'))var ol_cgbackground="";if(OLud('padxl'))var ol_padxl=1;if(OLud('padxr'))var ol_padxr=1;if(OLud('padyt'))var ol_padyt=1;if(OLud('padyb'))var ol_padyb=1;if(OLud('fullhtml'))var ol_fullhtml=0;if(OLud('capicon'))var ol_capicon="";if(OLud('frame'))var ol_frame=self;if(OLud('timeout'))var ol_timeout=0;if(OLud('delay'))var ol_delay=0;if(OLud('hauto'))var ol_hauto=0;if(OLud('vauto'))var ol_vauto=0;if(OLud('nojustx'))var ol_nojustx=0;if(OLud('nojusty'))var ol_nojusty=0;if(OLud('label'))var ol_label="";if(OLud('decode'))var ol_decode=0;if(OLud('texts'))var ol_texts=new Array("Text 0","Text 1");if(OLud('caps'))var ol_caps=new Array("Caption 0","Caption 1");var o3_text="",o3_cap="",o3_sticky=0,o3_nofollow=0,o3_background="",o3_noclose=0,o3_mouseoff=0,o3_offdelay=300,o3_hpos=RIGHT,o3_offsetx=10,o3_offsety=10,o3_fgcolor="",o3_bgcolor="",o3_cgcolor="",o3_textcolor="",o3_capcolor="",o3_closecolor="",o3_width=200,o3_wrap=0,o3_wrapmax=0,o3_height=-1,o3_border=1,o3_base=0,o3_status="",o3_autostatus=0,o3_snapx=0,o3_snapy=0,o3_fixx=-1,o3_fixy=-1,o3_relx=null,o3_rely=null,o3_midx=null,o3_midy=null,o3_ref="",o3_refc='UL',o3_refp='UL',o3_refx=0,o3_refy=0,o3_fgbackground="",o3_bgbackground="",o3_cgbackground="",o3_padxl=0,o3_padxr=0,o3_padyt=0,o3_padyb=0,o3_fullhtml=0,o3_vpos=BELOW,o3_capicon="",o3_textfont="Verdana,Arial,Helvetica",o3_captionfont="",o3_closefont="",o3_textsize=1,OLcC=null,o3_captionsize=1,o3_closesize=1,o3_frame=self,o3_timeout=0,o3_delay=0,o3_hauto=0,o3_vauto=0,o3_nojustx=0,o3_nojusty=0,o3_close="",o3_closeclick=0,o3_closetitle="",o3_fgclass="",o3_bgclass="",o3_cgclass="",o3_textpadding=2,o3_textfontclass="",o3_captionpadding=2,o3_captionfontclass="",o3_closefontclass="",o3_capbelow=0,o3_label="",o3_decode=0,CSSOFF=DONOTHING,CSSCLASS=DONOTHING,over=null,OLdelayid=0,OLtimerid=0,OLshowid=0,OLndt=0,OLfnRef="",OLhover=0,OLx=0,OLy=0,OLshowingsticky=0,OLallowmove=0,OLoverHTML="",OLover2HTML="",OLifRef="",OLo2Ref="",OLifX=0,OLifY=0,OLua=(OLv=navigator.userAgent)?OLv.toLowerCase():'',OLns4=(navigator.appName=='Netscape'&&parseInt(navigator.appVersion)==4)?1:0,OLns6=(document.getElementById)?1:0,OLie4=(document.all)?1:0,OLgek=(OLv=OLua.match(/gecko\/(\d{8})/i))?parseInt(OLv[1]):0,OLmac=(OLua.indexOf('mac')>=0)?1:0,OLsaf=(OLua.indexOf('safari')>=0)?1:0,OLkon=(OLua.indexOf('konqueror')>=0)?1:0,OLkht=(OLsaf||OLkon)?1:0,OLopr=(OLua.indexOf('opera')>=0)?1:0,OLop7=(OLopr&&document.createTextNode)?1:0;OLop95=(OLop7&&document.getElementsByClassName)?1:0;if(OLopr){OLns4=OLns6=OLgek=0;OLie4=(OLop7)?1:0;}
var OLieM=((OLie4&&OLmac)&&!(OLkht||OLopr))?1:0,OLie5=0,OLie55=0,OLie7=0;if(OLie4&&!OLop7){if((OLv=OLua.match(/msie (\d\.\d+)\.*/i))&&(OLv=parseFloat(OLv[1]))>=5.0){OLie5=1;OLns6=0;if(OLv>=5.5)OLie55=1;if(OLv>=7.0)OLie7=1;}if(OLns6)OLie4=0;}
if(OLns4)window.onresize=function(){location.reload();};var OLchkMh=1,OLdw;if(OLns4||OLie4||OLns6){OLmh();if(window.addEventListener)window.addEventListener("unload",OLulCl,false);}else{overlib=nd=cClick=OLpageDefaults=no_overlib;}
function OLulCl(){if(over)cClick();window.removeEventListener("unload",OLulCl,false);}
function overlib(){if(!(OLloaded&&OLgateOK))return;if((OLexclusivePI)&&OLisExclusive(arguments))return true;if(OLchkMh)OLmh();if(OLndt&&!OLtimerid)OLndt=0;if(over){if(OLfilterPI)o3_filter=0;cClick();}if(parent!=self){if(parent.OLo2Ref){parent.OLeval(parent.OLo2Ref);parent.OLo2Ref="";}if(parent.OLifRef){parent.OLeval(parent.OLifRef);parent.OLifRef="";}}if(OLo2Ref){eval(OLo2Ref);OLo2Ref="";}if(OLifRef){eval(OLifRef);OLifRef="";}OLload(OLp1or2);OLload(OLp1);OLfnRef="";OLifX=0;OLifY=0;OLhover=0;if(OLcrossframePI&&parent!=self)OLchkFRAME(arguments);OLsetRunTimeVar();OLparseTokens('o3_',arguments);if(!(over=OLmkLyr()))return false;if(o3_decode)OLdecode();if(OLprintPI)OLchkPrint();if(OLbubblePI)OLchkForBubbleEffect();if(OLdebugPI)OLsetDebugCanShow();if(OLshadowPI)OLinitShadow();if(OLiframePI)OLinitIfs();if(OLfilterPI)OLinitFilterLyr();if(OLexclusivePI&&o3_exclusive&&o3_exclusivestatus!="")o3_status=o3_exclusivestatus;else if(o3_autostatus==2&&o3_cap!="")
o3_status=o3_cap;else if(o3_autostatus==1&&o3_text!="")o3_status=o3_text;if(!o3_delay){return OLmain();}else{OLdelayid=setTimeout("OLmain()",o3_delay);if(o3_status!=""){self.status=o3_status;return true;}else if(!(OLop7&&event&&event.type=='mouseover'))return false;}}
function OLeval(s){eval(s);}
function nd(time){if(OLloaded&&OLgateOK){if(!((OLexclusivePI)&&OLisExclusive())){if(time&&over&&!o3_delay){if(OLtimerid>0)clearTimeout(OLtimerid);OLtimerid=(OLhover&&o3_frame==self&&!OLcursorOff())?0:setTimeout("cClick()",(o3_timeout=OLndt=time));}else{if(!OLshowingsticky){OLallowmove=0;if(over)OLhideObject(over);}}}}return false;}
function cClick(){if(OLloaded&&OLgateOK){OLhover=0;if(over){if(OLo2Ref){eval(OLo2Ref);OLo2Ref="";}if(OLovertwoPI&&over==over2)cClick2();OLhideObject(over);OLshowingsticky=0;OLallowmove=0;}if(OLmodalPI)OLclearModal();}return false;}
function OLpageDefaults(){OLparseTokens('ol_',arguments);}
function OLgetRef(l,d){var r=OLgetRefById(l,d);return(r)?r:OLgetRefByName(l,d);}
function no_overlib(){return false;}
function OLmain(){o3_delay=0;if(parent!=self&&o3_frame==parent&&parent.OLscrollPI&&parent.over)parent.OLclearScroll();if(o3_frame==self){if(o3_noclose)OLoptMOUSEOFF(0);else if(o3_mouseoff)OLoptMOUSEOFF(1);}if(o3_sticky){OLshowingsticky=1;if(OLfnRef&&parent!=self&&o3_frame==parent&&parent.overlib)parent.OLifRef=(OLfilterPI?OLfnRef+'o3_filter=0;':'')+OLfnRef+'cClick();';}
OLdoLyr();OLallowmove=0;if(o3_timeout>0){if(OLtimerid>0)clearTimeout(OLtimerid);OLtimerid=setTimeout("cClick()",o3_timeout);}
OLchkRef();OLdisp(o3_status);if(OLdraggablePI)OLcheckDrag();if(o3_status!="")return true;else if(!(OLop7&&event&&event.type=='mouseover'))return false;}
function OLchkRef(){if(o3_ref){OLrefXY=OLgetRefXY(o3_ref);if(OLrefXY[0]==null&&OLcrossframePI)OLchkIfRef();if(OLrefXY[0]==null){o3_ref="";o3_midx=0;o3_midy=0;}}}
function OLload(c){var i,m=c.split(',');for(i=0;i<m.length;i++)eval('o3_'+m[i]+'=ol_'+m[i]);}
function OLdoLGF(){return(o3_background!=''||o3_fullhtml)?OLcontentBackground(o3_text,o3_background,o3_fullhtml):(o3_cap=="")?OLcontentSimple(o3_text):(o3_sticky)?OLcontentCaption(o3_text,o3_cap,o3_close):OLcontentCaption(o3_text,o3_cap,'');}
function OLmkLyr(id,f,z){id=(id||'overDiv');f=(f||o3_frame);z=(z||1000);var fd=f.document,d=OLgetRefById(id,fd);if(!d){if(OLns4)d=fd.layers[id]=new Layer(1024,f);else if(OLie4&&!OLop7){fd.body.insertAdjacentHTML('AfterBegin','<div id="'+id+'"></div>');d=fd.all[id];}else{d=fd.createElement('div');if(d){d.id=id;fd.body.appendChild(d);}}if(!d)return null;if(OLns4)d.zIndex=z;else{var o=d.style;o.position='absolute';o.visibility='hidden';o.zIndex=z;}}return d;}
function OLdoLyr(){if(o3_sticky&&OLtimerid>0){clearTimeout(OLtimerid);OLtimerid=0;}if(o3_background==''&&!o3_fullhtml){if(o3_fgbackground!='')o3_fgbackground=' background="'+o3_fgbackground+'"';if(o3_bgbackground!='')o3_bgbackground=' background="'+o3_bgbackground+'"';if(o3_cgbackground!='')o3_cgbackground=' background="'+o3_cgbackground+'"';if(o3_fgcolor!='')o3_fgcolor=' bgcolor="'+o3_fgcolor+'"';if(o3_bgcolor!='')o3_bgcolor=' bgcolor="'+o3_bgcolor+'"';if(o3_cgcolor!='')o3_cgcolor=' bgcolor="'+o3_cgcolor+'"';if(o3_height>0)o3_height=(OLns4)?' height="'+o3_height+'"':' style="height:'+o3_height+'px;"';else o3_height='';}if(!OLns4)OLrepositionTo(over,(OLns6?20:0),0);var lyrHtml=OLdoLGF();if(o3_wrap&&!o3_fullhtml){OLlayerWrite(lyrHtml);o3_width=(OLns4?over.clip.width:over.offsetWidth);if(OLie4&&!OLop95){var w=OLfd().clientWidth;if(o3_width>=w){if(OLop7){if(OLovertwoPI&&over==over2){var z=over2.style.zIndex;o3_frame.document.body.removeChild(over);over2=OLmkLyr('overDiv2',o3_frame,z);over=over2;}else{o3_frame.document.body.removeChild(over);over=OLmkLyr();}}o3_width=w-20;}}
if(o3_wrapmax<1&&o3_frame.innerWidth)o3_wrapmax=o3_frame.innerWidth-40;if(o3_wrapmax>0&&o3_width>o3_wrapmax)o3_width=o3_wrapmax;o3_wrap=0;lyrHtml=OLdoLGF();}OLlayerWrite(lyrHtml);o3_width=(OLns4?over.clip.width:over.offsetWidth);if(OLbubblePI)OLgenerateBubble(lyrHtml);}
function OLcontentSimple(txt){var t=OLbgLGF()+OLfgLGF(txt)+OLbaseLGF();OLsetBackground('');return t;}
function OLcontentCaption(txt,title,close){var closing=(OLprintPI?OLprintCapLGF():''),closeevent='onmouseover',caption,t,cC='javascript:return '+OLfnRef
+(OLovertwoPI&&over==over2?'cClick2();':'cClick();');if(o3_closeclick)closeevent=(o3_closetitle?'title="'
+o3_closetitle+'" ':'')+'onclick';if(o3_capicon!=''&&o3_capicon.indexOf('<img')!=0)o3_capicon='<img src="'+o3_capicon
+'" /> ';if(close){closing+='<td align="right"><a href="'+cC+'" '+closeevent+'="'+cC+'"'+(o3_closefontclass?' class="'
+o3_closefontclass+'">':(OLns4?'><':'')+OLlgfUtil(0,1,'','a',o3_closecolor,o3_closefont,o3_closesize))+close+
(o3_closefontclass?'':(OLns4?OLlgfUtil(1,1,'','a'):''))+'</a></td>';}caption='<table id="overCap'
+(OLovertwoPI&&over==over2?'2':'')+'"'+OLwd(0)+' border="0" cellpadding="'+o3_captionpadding+'" cellspacing="0"'
+(o3_cgclass?' class="'+o3_cgclass+'"':o3_cgcolor+o3_cgbackground)+'><tr><td'+OLwd(0)+(o3_cgclass?' class="'
+o3_cgclass+'">':'>')+(o3_captionfontclass?'<div'+OLhL(1)+' class="'+o3_captionfontclass+'">':OLlgfUtil(0,1,'','div',o3_capcolor,o3_captionfont,o3_captionsize))+o3_capicon+title+OLlgfUtil(1,1,'','div')+'</td>'+closing+'</tr></table>';t=OLbgLGF()+(o3_capbelow?OLfgLGF(txt)+caption:caption+OLfgLGF(txt))+OLbaseLGF();OLsetBackground('');return t;}
function OLcontentBackground(txt,image,hasfullhtml){var t;if(hasfullhtml){t=txt;}else{t='<table'+OLwd(1)+' border="0" cellpadding="0" '+'cellspacing="0" '+'height="'
+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="top"'
+OLwd(2)+'>'+OLlgfUtil(0,0,o3_textfontclass,'div',o3_textcolor,o3_textfont,o3_textsize)+txt+OLlgfUtil(1,0,'','div')
+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>';}
OLsetBackground(image);return t;}
function OLbgLGF(){return'<table'+OLwd(1)+o3_height+' border="0" cellpadding="'+o3_border+'" cellspacing="0"'+(o3_bgclass?' class="'
+o3_bgclass+'"':o3_bgcolor+o3_bgbackground)+'><tr><td>';}
function OLfgLGF(t){return'<table'+OLwd(0)+o3_height+' border="0" cellpadding="'+o3_textpadding+'" cellspacing="0"'+(o3_fgclass?' class="'
+o3_fgclass+'"':o3_fgcolor+o3_fgbackground)+'><tr><td valign="top"'+(o3_fgclass?' class="'+o3_fgclass+'"':'')+'>'
+OLlgfUtil(0,0,o3_textfontclass,'div',o3_textcolor,o3_textfont,o3_textsize)+t+(OLprintPI?OLprintFgLGF():'')
+OLlgfUtil(1,0,'','div')+'</td></tr></table>';}
function OLlgfUtil(end,stg,tfc,ele,col,fac,siz){if(end)return('</'+(OLns4?'font'+(stg?'></strong':''):ele)+'>');else return(tfc?'<div'+OLhL(1)+' class="'+tfc+'">':((ele=='a'?'':'<')+(OLns4?(stg?'strong><':'')+'font color="'+col+'" face="'+OLquoteMultiNameFonts(fac)+'" size="'
+siz:(ele=='a'?'':ele)+' style="'+((ele=='div')?OLhL(0):'')+'color:'+col+(stg?';font-weight:bold':'')+';font-family:'
+OLquoteMultiNameFonts(fac)+';font-size:'+siz+';'+(ele=='span'?'text-decoration:underline;':''))+'">'));}
function OLquoteMultiNameFonts(f){var i,v,pM=f.split(',');for(i=0;i<pM.length;i++){v=pM[i];v=v.replace(/^\s+/,'').replace(/\s+$/,'');if(/\s/.test(v)&&!/['"]/.test(v)){v="\'"+v+"\'";pM[i]=v;}}return pM.join();}
function OLbaseLGF(){return((o3_base>0&&!o3_wrap)?('<table width="100%" border="0" cellpadding="0" cellspacing="0"'+(o3_bgclass?' class="'
+o3_bgclass+'"':'')+'><tr><td height="'+o3_base+'"></td></tr></table>'):'')+'</td></tr></table>';}
function OLwd(a){return(o3_wrap?'':' width="'+(!a?'100%':(a==1?o3_width:(o3_width-o3_padxl-o3_padxr)))+'"');}
function OLhL(s){if(!OLie5)return'';return(s?' style="overflow:auto;"':'overflow:auto;');}
function OLsetBackground(i){if(i==''){if(OLns4)over.background.src=null;else{if(OLns6)over.style.width='';over.style.backgroundImage='none';}}
else{if(OLns4)over.background.src=i;else{if(OLns6)over.style.width=o3_width+'px';over.style.backgroundImage='url('+i+')';}}}
function OLdisp(s){if(OLmodalPI&&!o3_modalscroll)OLchkModal();if(!OLallowmove){if(OLshadowPI)OLdispShadow();if(OLiframePI)OLdispIfs();OLplaceLayer();if(OLmodalPI&&o3_modalscroll)OLchkModal();if(OLndt)OLshowObject(over);else OLshowid=setTimeout("OLshowObject(over)",1);OLallowmove=(o3_sticky||o3_nofollow)?0:1;}OLndt=0;if(s!="")self.status=s;}
function OLplaceLayer(){var snp,X,Y,pgLeft,pgTop,pWd=o3_width,pHt,iWd=100,iHt=100,SB=0,LM=0,CX=0,TM=0,BM=0,CY=0,o=OLfd(),nsb=(OLgek>=20010505&&!o3_frame.scrollbars.visible)?1:0;if(!OLkht&&!OLop95&&o&&o.clientWidth)iWd=o.clientWidth;else if(o3_frame.innerWidth){SB=Math.ceil(1.4*(o3_frame.outerWidth-o3_frame.innerWidth));if(SB>20)SB=20;iWd=o3_frame.innerWidth;}
pgLeft=(OLie4&&!OLop95)?o.scrollLeft:o3_frame.pageXOffset;if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow)SB=CX=5;else
if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowx){SB+=((o3_shadowx>0)?o3_shadowx:0);LM=((o3_shadowx<0)?Math.abs(o3_shadowx):0);CX=Math.abs(o3_shadowx);}
if(o3_ref!=""||o3_fixx>-1||o3_relx!=null||o3_midx!=null){if(o3_ref!=""){X=OLrefXY[0];if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow){if(o3_refp=='UR'||o3_refp=='LR')X-=5;}
else if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowx){if(o3_shadowx<0&&(o3_refp=='UL'||o3_refp=='LL'))X-=o3_shadowx;else
if(o3_shadowx>0&&(o3_refp=='UR'||o3_refp=='LR'))X-=o3_shadowx;}}else{if(o3_midx!=null){X=parseInt(pgLeft+((iWd-pWd-SB-LM)/2)+o3_midx);}else{if(o3_relx!=null){if(o3_relx>=0)X=pgLeft+o3_relx+LM;else X=pgLeft+o3_relx+iWd-pWd-SB;}else{X=o3_fixx+LM;}}}}else{if(o3_hauto){if(o3_hpos==LEFT&&OLx-pgLeft+OLifX<iWd/2&&OLx-pWd-o3_offsetx+OLifX<pgLeft+LM)o3_hpos=RIGHT;else
if(o3_hpos==RIGHT&&OLx-pgLeft+OLifX>iWd/2&&OLx+pWd+o3_offsetx+OLifX>pgLeft+iWd-SB)o3_hpos=LEFT;}
X=(o3_hpos==CENTER)?parseInt(OLx-((pWd+CX)/2)+o3_offsetx):(o3_hpos==LEFT)?OLx-o3_offsetx-pWd:OLx+o3_offsetx;if(o3_snapx>1){snp=X%o3_snapx;if(o3_hpos==LEFT){X=X-(o3_snapx+snp);}else{X=X+(o3_snapx-snp);}}X+=OLifX;}
if(!o3_nojustx&&X+pWd>pgLeft+iWd-SB)
X=iWd+pgLeft-pWd-SB;if(!o3_nojustx&&X-LM<pgLeft)X=pgLeft+LM;pgTop=OLie4&&!OLop95?o.scrollTop:o3_frame.pageYOffset;if(!OLkht&&!OLop95&&!nsb&&o&&o.clientHeight)iHt=o.clientHeight;else if(o3_frame.innerHeight)iHt=o3_frame.innerHeight;if(OLbubblePI&&o3_bubble)pHt=OLbubbleHt;else pHt=OLns4?over.clip.height:over.offsetHeight;if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowy){TM=(o3_shadowy<0)?Math.abs(o3_shadowy):0;if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow)BM=CY=5;else
BM=(o3_shadowy>0)?o3_shadowy:0;CY=Math.abs(o3_shadowy);}
if(o3_ref!=""||o3_fixy>-1||o3_rely!=null||o3_midy!=null){if(o3_ref!=""){Y=OLrefXY[1];if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow){if(o3_refp=='LL'||o3_refp=='LR')Y-=5;}else if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowy){if(o3_shadowy<0&&(o3_refp=='UL'||o3_refp=='UR'))Y-=o3_shadowy;else
if(o3_shadowy>0&&(o3_refp=='LL'||o3_refp=='LR'))Y-=o3_shadowy;}}else{if(o3_midy!=null){Y=parseInt(pgTop+((iHt-pHt-CY)/2)+o3_midy);}else{if(o3_rely!=null){if(o3_rely>=0)Y=pgTop+o3_rely+TM;else Y=pgTop+o3_rely+iHt-pHt-BM;}else{Y=o3_fixy+TM;}}}}else{if(o3_vauto){if(o3_vpos==ABOVE&&OLy-pgTop+OLifY<iHt/2&&OLy-pHt-o3_offsety+OLifY<pgTop)o3_vpos=BELOW;else
if(o3_vpos==BELOW&&OLy-pgTop+OLifY>iHt/2&&OLy+pHt+o3_offsety+((OLns4||OLkht)?17:0)+OLifY>pgTop+iHt-BM)
o3_vpos=ABOVE;}Y=(o3_vpos==VCENTER)?parseInt(OLy-((pHt+CY)/2)+o3_offsety):(o3_vpos==ABOVE)?OLy-(pHt+o3_offsety+BM):OLy+o3_offsety+TM;if(o3_snapy>1){snp=Y%o3_snapy;if(pHt>0&&o3_vpos==ABOVE){Y=Y-(o3_snapy+snp);}else{Y=Y+(o3_snapy-snp);}}Y+=OLifY;}
if(!o3_nojusty&&Y+pHt+BM>pgTop+iHt)Y=pgTop+iHt-pHt-BM;if(!o3_nojusty&&Y-TM<pgTop)Y=pgTop+TM;OLrepositionTo(over,X,Y);if(OLshadowPI)OLrepositionShadow(X,Y);if(OLiframePI)OLrepositionIfs(X,Y);if(OLns6&&o3_frame.innerHeight){iHt=o3_frame.innerHeight;OLrepositionTo(over,X,Y);}
if(OLscrollPI)OLchkScroll(X-pgLeft,Y-pgTop);}
function OLfd(f){var fd=((f)?f:o3_frame).document,fdc=fd.compatMode,fdd=fd.documentElement;return(!OLop7&&fdc&&fdc!='BackCompat'&&fdd&&fdd.clientWidth)?fd.documentElement:fd.body;}
function OLgetRefXY(r,d){var o=OLgetRef(r,d),ob=o,rXY=[o3_refx,o3_refy],of;if(!o)return[null,null];if(OLns4){if(typeof o.length!='undefined'&&o.length>1){ob=o[0];rXY[0]+=o[0].x+o[1].pageX;rXY[1]+=o[0].y+o[1].pageY;}else{if((o.toString().indexOf('Image')!=-1)||(o.toString().indexOf('Anchor')!=-1)){rXY[0]+=o.x;rXY[1]+=o.y;}
else{rXY[0]+=o.pageX;rXY[1]+=o.pageY;}}}else{rXY[0]+=OLpageLoc(o,'Left');rXY[1]+=OLpageLoc(o,'Top');}
of=OLgetRefOffsets(ob);rXY[0]+=of[0];rXY[1]+=of[1];return rXY;}
function OLgetRefById(l,d){l=(l||'overDiv');d=(d||o3_frame.document);var j,r;if(d.getElementById)return d.getElementById(l);if(OLie4&&d.all)return d.all[l];if(d.layers&&d.layers.length>0){if(d.layers[l])return d.layers[l];for(j=0;j<d.layers.length;j++){r=OLgetRefById(l,d.layers[j].document);if(r)return r;}}return null;}
function OLgetRefByName(l,d){d=(d||o3_frame.document);var j,r,v=OLie4?d.all.tags('iframe'):OLns6?d.getElementsByTagName('iframe'):null;if(typeof d.images!='undefined'&&d.images[l])return d.images[l];if(typeof d.anchors!='undefined'&&d.anchors[l])return d.anchors[l];if(v)for(j=0;j<v.length;j++)if(v[j].name==l)return v[j];if(d.layers&&d.layers.length>0)for(j=0;j<d.layers.length;j++){r=OLgetRefByName(l,d.layers[j].document);if(r&&r.length>0)return r;else if(r)return[r,d.layers[j]];}return null;}
function OLgetRefOffsets(o){var c=o3_refc.toUpperCase(),p=o3_refp.toUpperCase(),W=0,H=0,pW=0,pH=0,of=[0,0];pW=(OLbubblePI&&o3_bubble)?o3_width:OLns4?over.clip.width:over.offsetWidth;pH=(OLbubblePI&&o3_bubble)?OLbubbleHt:OLns4?over.clip.height:over.offsetHeight;if((!OLop7)&&o.toString().indexOf('Image')!=-1){W=o.width;H=o.height;}
else if((!OLop7)&&o.toString().indexOf('Anchor')!=-1){c=o3_refc='UL';}else{W=(OLns4)?o.clip.width:o.offsetWidth;H=(OLns4)?o.clip.height:o.offsetHeight;}if((OLns4||(OLns6&&OLgek))&&o.border){W+=2*parseInt(o.border);H+=2*parseInt(o.border);}if(c=='UL'){of=(p=='UR')?[-pW,0]:(p=='LL')?[0,-pH]:(p=='LR')?[-pW,-pH]:[0,0];}else if(c=='UR'){of=(p=='UR')?[W-pW,0]:(p=='LL')?[W,-pH]:(p=='LR')?[W-pW,-pH]:[W,0];}else if(c=='LL'){of=(p=='UR')?[-pW,H]:(p=='LL')?[0,H-pH]:(p=='LR')?[-pW,H-pH]:[0,H];}else if(c=='LR'){of=(p=='UR')?[W-pW,H]:(p=='LL')?[W,H-pH]:(p=='LR')?[W-pW,H-pH]:[W,H];}return of;}
function OLpageLoc(o,t){var l=0,s=o;while(o.offsetParent&&o.offsetParent.tagName.toLowerCase()!='html'){l+=o['offset'+t];o=o.offsetParent;}
l+=o['offset'+t];if(!OLop7)while(s=s.parentNode){if((s['scroll'+t]>0)&&s.tagName.toLowerCase()=='div')l-=s['scroll'+t];}
return l;}
function OLmouseMove(e){var e=(e||event);OLcC=(OLovertwoPI&&over2&&over==over2?cClick2:cClick);OLx=(e.pageX||e.clientX+OLfd().scrollLeft);OLy=(e.pageY||e.clientY+OLfd().scrollTop);if((OLallowmove&&over)&&(o3_frame==self||over==OLgetRefById()||(OLovertwoPI&&over2==over&&over==OLgetRefById('overDiv2')))){OLplaceLayer();if(OLhidePI)OLhideUtil(0,1,1,0,0,0);}if(OLhover&&over&&o3_frame==self&&OLcursorOff())if(o3_offdelay<1)OLcC();else{if(OLtimerid>0)clearTimeout(OLtimerid);OLtimerid=setTimeout("OLcC()",o3_offdelay);}}
function OLmh(){var fN,f,j,k,s,mh=OLmouseMove,w=(OLns4&&window.onmousemove),re=/function[ ]*(\w*)\(/;OLdw=document;if(document.onmousemove||w){if(w)OLdw=window;f=OLdw.onmousemove.toString();fN=f.match(re);if(!fN||fN[1]=='anonymous'||fN[1]=='OLmouseMove'){OLchkMh=0;return;}if(fN[1])s=fN[1]+'(e)';else{j=f.indexOf('{');k=f.lastIndexOf('}')+1;s=f.substring(j,k);}s+=';OLmouseMove(e);';mh=new Function('e',s);}OLdw.onmousemove=mh;if(OLns4)OLdw.captureEvents(Event.MOUSEMOVE);}
function OLparseTokens(pf,ar){var i,v,md=-1,par=(pf!='ol_'),p=OLpar,q=OLparQuo,t=OLtoggle;OLudf=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(md<0){if(typeof ar[i]=='number'){OLudf=(par?1:0);i--;}
else{switch(pf){case'ol_':ol_text=ar[i];break;default:o3_text=ar[i];}}md=0;}else{if(ar[i]==INARRAY){OLudf=0;eval(pf+'text=ol_texts['+ar[++i]+']');continue;}
if(ar[i]==CAPARRAY){eval(pf+'cap=ol_caps['+ar[++i]+']');continue;}
if(ar[i]==CAPTION){q(ar[++i],pf+'cap');continue;}
if(Math.abs(ar[i])==STICKY){t(ar[i],pf+'sticky');continue;}
if(Math.abs(ar[i])==NOFOLLOW){t(ar[i],pf+'nofollow');continue;}
if(ar[i]==BACKGROUND){q(ar[++i],pf+'background');continue;}
if(Math.abs(ar[i])==NOCLOSE){t(ar[i],pf+'noclose');continue;}
if(Math.abs(ar[i])==MOUSEOFF){t(ar[i],pf+'mouseoff');continue;}
if(ar[i]==OFFDELAY){p(ar[++i],pf+'offdelay');continue;}
if(ar[i]==RIGHT||ar[i]==LEFT||ar[i]==CENTER){p(ar[i],pf+'hpos');continue;}
if(ar[i]==OFFSETX){p(ar[++i],pf+'offsetx');continue;}
if(ar[i]==OFFSETY){p(ar[++i],pf+'offsety');continue;}
if(ar[i]==FGCOLOR){q(ar[++i],pf+'fgcolor');continue;}
if(ar[i]==BGCOLOR){q(ar[++i],pf+'bgcolor');continue;}
if(ar[i]==CGCOLOR){q(ar[++i],pf+'cgcolor');continue;}
if(ar[i]==TEXTCOLOR){q(ar[++i],pf+'textcolor');continue;}
if(ar[i]==CAPCOLOR){q(ar[++i],pf+'capcolor');continue;}
if(ar[i]==CLOSECOLOR){q(ar[++i],pf+'closecolor');continue;}
if(ar[i]==WIDTH){p(ar[++i],pf+'width');continue;}
if(Math.abs(ar[i])==WRAP){t(ar[i],pf+'wrap');continue;}
if(ar[i]==WRAPMAX){p(ar[++i],pf+'wrapmax');continue;}
if(ar[i]==HEIGHT){p(ar[++i],pf+'height');continue;}
if(ar[i]==BORDER){p(ar[++i],pf+'border');continue;}
if(ar[i]==BASE){p(ar[++i],pf+'base');continue;}
if(ar[i]==STATUS){q(ar[++i],pf+'status');continue;}
if(Math.abs(ar[i])==AUTOSTATUS){v=pf+'autostatus';eval(v+'=('+ar[i]+'<0)?('+v+'==2?2:0):('+v+'==1?0:1)');continue;}
if(Math.abs(ar[i])==AUTOSTATUSCAP){v=pf+'autostatus';eval(v+'=('+ar[i]+'<0)?('+v+'==1?1:0):('+v+'==2?0:2)');continue;}
if(ar[i]==CLOSETEXT){q(ar[++i],pf+'close');continue;}
if(ar[i]==SNAPX){p(ar[++i],pf+'snapx');continue;}
if(ar[i]==SNAPY){p(ar[++i],pf+'snapy');continue;}
if(ar[i]==FIXX){p(ar[++i],pf+'fixx');continue;}
if(ar[i]==FIXY){p(ar[++i],pf+'fixy');continue;}
if(ar[i]==RELX){p(ar[++i],pf+'relx');continue;}
if(ar[i]==RELY){p(ar[++i],pf+'rely');continue;}
if(ar[i]==MIDX){p(ar[++i],pf+'midx');continue;}
if(ar[i]==MIDY){p(ar[++i],pf+'midy');continue;}
if(ar[i]==REF){q(ar[++i],pf+'ref');continue;}
if(ar[i]==REFC){q(ar[++i],pf+'refc');continue;}
if(ar[i]==REFP){q(ar[++i],pf+'refp');continue;}
if(ar[i]==REFX){p(ar[++i],pf+'refx');continue;}
if(ar[i]==REFY){p(ar[++i],pf+'refy');continue;}
if(ar[i]==FGBACKGROUND){q(ar[++i],pf+'fgbackground');continue;}
if(ar[i]==BGBACKGROUND){q(ar[++i],pf+'bgbackground');continue;}
if(ar[i]==CGBACKGROUND){q(ar[++i],pf+'cgbackground');continue;}
if(ar[i]==PADX){p(ar[++i],pf+'padxl');p(ar[++i],pf+'padxr');continue;}
if(ar[i]==PADY){p(ar[++i],pf+'padyt');p(ar[++i],pf+'padyb');continue;}
if(Math.abs(ar[i])==FULLHTML){t(ar[i],pf+'fullhtml');continue;}
if(ar[i]==BELOW||ar[i]==ABOVE||ar[i]==VCENTER){p(ar[i],pf+'vpos');continue;}
if(ar[i]==CAPICON){q(ar[++i],pf+'capicon');continue;}
if(ar[i]==TEXTFONT){q(ar[++i],pf+'textfont');continue;}
if(ar[i]==CAPTIONFONT){q(ar[++i],pf+'captionfont');continue;}
if(ar[i]==CLOSEFONT){q(ar[++i],pf+'closefont');continue;}
if(ar[i]==TEXTSIZE){q(ar[++i],pf+'textsize');continue;}
if(ar[i]==CAPTIONSIZE){q(ar[++i],pf+'captionsize');continue;}
if(ar[i]==CLOSESIZE){q(ar[++i],pf+'closesize');continue;}
if(ar[i]==TIMEOUT){p(ar[++i],pf+'timeout');continue;}
if(ar[i]==DELAY){p(ar[++i],pf+'delay');continue;}
if(Math.abs(ar[i])==HAUTO){t(ar[i],pf+'hauto');continue;}
if(Math.abs(ar[i])==VAUTO){t(ar[i],pf+'vauto');continue;}
if(Math.abs(ar[i])==NOJUSTX){t(ar[i],pf+'nojustx');continue;}
if(Math.abs(ar[i])==NOJUSTY){t(ar[i],pf+'nojusty');continue;}
if(Math.abs(ar[i])==CLOSECLICK){t(ar[i],pf+'closeclick');continue;}
if(ar[i]==CLOSETITLE){q(ar[++i],pf+'closetitle');continue;}
if(ar[i]==FGCLASS){q(ar[++i],pf+'fgclass');continue;}
if(ar[i]==BGCLASS){q(ar[++i],pf+'bgclass');continue;}
if(ar[i]==CGCLASS){q(ar[++i],pf+'cgclass');continue;}
if(ar[i]==TEXTPADDING){p(ar[++i],pf+'textpadding');continue;}
if(ar[i]==TEXTFONTCLASS){q(ar[++i],pf+'textfontclass');continue;}
if(ar[i]==CAPTIONPADDING){p(ar[++i],pf+'captionpadding');continue;}
if(ar[i]==CAPTIONFONTCLASS){q(ar[++i],pf+'captionfontclass');continue;}
if(ar[i]==CLOSEFONTCLASS){q(ar[++i],pf+'closefontclass');continue;}
if(Math.abs(ar[i])==CAPBELOW){t(ar[i],pf+'capbelow');continue;}
if(ar[i]==LABEL){q(ar[++i],pf+'label');continue;}
if(Math.abs(ar[i])==DECODE){t(ar[i],pf+'decode');continue;}
if(ar[i]==DONOTHING){continue;}
i=OLparseCmdLine(pf,i,ar);}}
if((OLfunctionPI)&&OLudf&&o3_function)o3_text=o3_function();if(pf=='o3_')OLfontSize();}
function OLpar(a,v){eval(v+'='+a);}
function OLparQuo(a,v){eval(v+"='"+OLescSglQt(a)+"'");}
function OLescSglQt(s){return s.toString().replace(/\\/g,"\\\\").replace(/'/g,"\\'");}
function OLtoggle(a,v){eval(v+'=('+v+'==0&&'+a+'>=0)?1:0');}
function OLhasDims(s){return/[%\-a-z]+$/.test(s);}
function OLfontSize(){var i;if(OLhasDims(o3_textsize)){if(OLns4)o3_textsize="2";}else
if(!OLns4){i=parseInt(o3_textsize);o3_textsize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
if(OLhasDims(o3_captionsize)){if(OLns4)o3_captionsize="2";}else
if(!OLns4){i=parseInt(o3_captionsize);o3_captionsize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
if(OLhasDims(o3_closesize)){if(OLns4)o3_closesize="2";}else
if(!OLns4){i=parseInt(o3_closesize);o3_closesize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
if(OLprintPI)OLprintDims();}
function OLdecode(){var re=/%[0-9A-Fa-f]{2,}/,t=o3_text,c=o3_cap,u=unescape,d=!OLns4&&(!OLgek||OLgek>=20020826)&&typeof decodeURIComponent?decodeURIComponent:u;if(typeof(window.TypeError)=='function'){if(re.test(t)){eval(new Array('try{','o3_text=d(t);','}catch(e){','o3_text=u(t);','}').join('\n'))};if(c&&re.test(c)){eval(new Array('try{','o3_cap=d(c);','}catch(e){','o3_cap=u(c);','}').join('\n'))}}else{if(re.test(t))o3_text=u(t);if(c&&re.test(c))o3_cap=u(c);}}
function OLlayerWrite(t){t+="\n";if(OLns4){over.document.write(t);over.document.close();}else if(typeof over.innerHTML!='undefined'){if(OLieM)over.innerHTML='';over.innerHTML=t;}else{var range=o3_frame.document.createRange();range.setStartAfter(over);var domfrag=range.createContextualFragment(t);while(over.hasChildNodes()){over.removeChild(over.lastChild);}
over.appendChild(domfrag);}if(OLovertwoPI&&over==over2)OLover2HTML=t;else OLoverHTML=t;if(OLprintPI)over.print=o3_print?t:null;}
function OLshowObject(o){OLshowid=0;o=(OLns4)?o:o.style;if(((OLfilterPI)&&!OLchkFilter(o))||!OLfilterPI)o.visibility="visible";if(OLshadowPI)OLshowShadow();if(OLiframePI)OLshowIfs();if(OLhidePI)OLhideUtil(1,1,0);}
function OLhideObject(o){if(OLshowid>0){clearTimeout(OLshowid);OLshowid=0;}if(OLtimerid>0)clearTimeout(OLtimerid);if(OLdelayid>0)clearTimeout(OLdelayid);OLtimerid=0;OLdelayid=0;self.status="";o3_label=ol_label;if(o3_frame!=self)o=OLgetRefById();if(o){if(o.onmouseover)o.onmouseover=null;if(OLscrollPI&&o==over)OLclearScroll();if(OLdraggablePI)OLclearDrag();if(OLfilterPI)OLcleanupFilter(o);if(OLshadowPI)OLhideShadow();var os=(OLns4)?o:o.style;if(((OLfilterPI)&&!OLchkFadeOut(os))||!OLfilterPI){os.visibility="hidden";if(!OLie55||(typeof ggOnChange=='undefined'&&(!OLfilterPI||!o3_filter||o3_fadeout<0)))o.innerHTML='';}if(OLhidePI&&o==over)OLhideUtil(0,0,1);if(OLiframePI)OLhideIfs(o);}}
function OLrepositionTo(o,xL,yL){o=(OLns4)?o:o.style;o.left=(OLns4?xL:xL+'px');o.top=(OLns4?yL:yL+'px');}
function OLoptMOUSEOFF(c){if(!c)o3_close="";over.onmouseover=function(){OLhover=1;if(OLtimerid>0){clearTimeout(OLtimerid);OLtimerid=0;}}}
function OLcursorOff(){var o=(OLns4?over:over.style),pHt=OLns4?over.clip.height:over.offsetHeight,left=parseInt(o.left),top=parseInt(o.top),right=left+o3_width,bottom=top+((OLbubblePI&&o3_bubble)?OLbubbleHt:pHt);if(OLx<left||OLx>right||OLy<top||OLy>bottom)return true;return false;}
function OLsetRunTimeVar(){if(OLrunTime.length)for(var k=0;k<OLrunTime.length;k++)OLrunTime[k]();}
function OLparseCmdLine(pf,i,ar){if(OLcmdLine.length){for(var k=0;k<OLcmdLine.length;k++){var j=OLcmdLine[k](pf,i,ar);if(j>-1){i=j;break;}}}return i;}
function OLregCmds(c){if(typeof c!='string')return;var pM=c.split(',');pMtr=pMtr.concat(pM);for(var i=0;i<pM.length;i++)eval(pM[i].toUpperCase()+'='+pmCnt++);}
function OLregRunTimeFunc(f){if(typeof f=='object')OLrunTime=OLrunTime.concat(f);else OLrunTime[OLrunTime.length++]=f;}
function OLregCmdLineFunc(f){if(typeof f=='object')OLcmdLine=OLcmdLine.concat(f);else OLcmdLine[OLcmdLine.length++]=f;}
OLloaded=1;

var OLloaded=0,OLbubblePI=0,OLcrossframePI=0,OLdebugPI=0,OLdraggablePI=0,OLexclusivePI=0,OLfilterPI=0,OLfunctionPI=0,OLhidePI=0,OLiframePI=0,OLmodalPI=0,OLovertwoPI=0,OLscrollPI=0,OLshadowPI=0,OLprintPI=0,pmCnt=1,pMtr=new Array(),OLcmdLine=new Array(),OLrunTime=new Array(),OLv,OLudf,OLrefXY,OLpct=new Array("83%","67%","83%","100%","117%","150%","200%","267%");if(typeof OLgateOK=='undefined')var OLgateOK=1;var OLp1or2c='inarray,caparray,caption,closetext,right,left,center,autostatuscap,padx,pady,below,above,vcenter,donothing',OLp1or2co='nofollow,background,offsetx,offsety,fgcolor,bgcolor,cgcolor,textcolor,capcolor,width,wrap,wrapmax,height,border,'
+'base,status,autostatus,snapx,snapy,fixx,fixy,relx,rely,midx,midy,ref,refc,refp,refx,refy,fgbackground,bgbackground,'
+'cgbackground,fullhtml,capicon,textfont,captionfont,textsize,captionsize,timeout,delay,hauto,vauto,nojustx,nojusty,fgclass,'
+'bgclass,cgclass,capbelow,textpadding,textfontclass,captionpadding,captionfontclass,sticky,noclose,mouseoff,offdelay,'
+'closecolor,closefont,closesize,closeclick,closetitle,closefontclass,decode',OLp1or2o='text,cap,close,hpos,vpos,padxl,'
+'padxr,padyt,padyb',OLp1co='label',OLp1or2=OLp1or2co+','+OLp1or2o,OLp1=OLp1co+','+'frame';OLregCmds(OLp1or2c+','+OLp1or2co+','+OLp1co);function OLud(v){return eval('typeof ol_'+v+'=="undefined"')?1:0;}
if(OLud('fgcolor'))var ol_fgcolor="#ffffff";if(OLud('bgcolor'))var ol_bgcolor="Transparent";if(OLud('cgcolor'))var ol_cgcolor="#333399";if(OLud('textcolor'))var ol_textcolor="#000000";if(OLud('capcolor'))var ol_capcolor="#ffffff";if(OLud('closecolor'))var ol_closecolor="#ffffff";if(OLud('textfont'))var ol_textfont="Verdana,Arial,Helvetica";if(OLud('captionfont'))var ol_captionfont="Verdana,Arial,Helvetica";if(OLud('closefont'))var ol_closefont="Verdana,Arial,Helvetica";if(OLud('textsize'))var ol_textsize=1;if(OLud('captionsize'))var ol_captionsize=1;if(OLud('closesize'))var ol_closesize=1;if(OLud('fgclass'))var ol_fgclass="";if(OLud('bgclass'))var ol_bgclass="";if(OLud('cgclass'))var ol_cgclass="";if(OLud('textpadding'))var ol_textpadding=2;if(OLud('textfontclass'))var ol_textfontclass="";if(OLud('captionpadding'))var ol_captionpadding=2;if(OLud('captionfontclass'))var ol_captionfontclass="";if(OLud('closefontclass'))var ol_closefontclass="";if(OLud('close'))var ol_close="Close";if(OLud('closeclick'))var ol_closeclick=0;if(OLud('closetitle'))var ol_closetitle="Click to Close";if(OLud('text'))var ol_text="Default Text";if(OLud('cap'))var ol_cap="";if(OLud('capbelow'))var ol_capbelow=0;if(OLud('background'))var ol_background="";if(OLud('width'))var ol_width=115;if(OLud('wrap'))var ol_wrap=0;if(OLud('wrapmax'))var ol_wrapmax=0;if(OLud('height'))var ol_height=-1;if(OLud('border'))var ol_border=1;if(OLud('base'))var ol_base=0;if(OLud('offsetx'))var ol_offsetx=10;if(OLud('offsety'))var ol_offsety=10;if(OLud('sticky'))var ol_sticky=0;if(OLud('nofollow'))var ol_nofollow=0;if(OLud('noclose'))var ol_noclose=0;if(OLud('mouseoff'))var ol_mouseoff=0;if(OLud('offdelay'))var ol_offdelay=300;if(OLud('hpos'))var ol_hpos=RIGHT;if(OLud('vpos'))var ol_vpos=BELOW;if(OLud('status'))var ol_status="";if(OLud('autostatus'))var ol_autostatus=0;if(OLud('snapx'))var ol_snapx=0;if(OLud('snapy'))var ol_snapy=0;if(OLud('fixx'))var ol_fixx=-1;if(OLud('fixy'))var ol_fixy=-1;if(OLud('relx'))var ol_relx=null;if(OLud('rely'))var ol_rely=null;if(OLud('midx'))var ol_midx=null;if(OLud('midy'))var ol_midy=null;if(OLud('ref'))var ol_ref="";if(OLud('refc'))var ol_refc='UL';if(OLud('refp'))var ol_refp='UL';if(OLud('refx'))var ol_refx=0;if(OLud('refy'))var ol_refy=0;if(OLud('fgbackground'))var ol_fgbackground="";if(OLud('bgbackground'))var ol_bgbackground="";if(OLud('cgbackground'))var ol_cgbackground="";if(OLud('padxl'))var ol_padxl=1;if(OLud('padxr'))var ol_padxr=1;if(OLud('padyt'))var ol_padyt=1;if(OLud('padyb'))var ol_padyb=1;if(OLud('fullhtml'))var ol_fullhtml=0;if(OLud('capicon'))var ol_capicon="";if(OLud('frame'))var ol_frame=self;if(OLud('timeout'))var ol_timeout=0;if(OLud('delay'))var ol_delay=0;if(OLud('hauto'))var ol_hauto=0;if(OLud('vauto'))var ol_vauto=0;if(OLud('nojustx'))var ol_nojustx=0;if(OLud('nojusty'))var ol_nojusty=0;if(OLud('label'))var ol_label="";if(OLud('decode'))var ol_decode=0;if(OLud('texts'))var ol_texts=new Array("Text 0","Text 1");if(OLud('caps'))var ol_caps=new Array("Caption 0","Caption 1");var o3_text="",o3_cap="",o3_sticky=0,o3_nofollow=0,o3_background="",o3_noclose=0,o3_mouseoff=0,o3_offdelay=300,o3_hpos=RIGHT,o3_offsetx=10,o3_offsety=10,o3_fgcolor="",o3_bgcolor="",o3_cgcolor="",o3_textcolor="",o3_capcolor="",o3_closecolor="",o3_width=200,o3_wrap=0,o3_wrapmax=0,o3_height=-1,o3_border=1,o3_base=0,o3_status="",o3_autostatus=0,o3_snapx=0,o3_snapy=0,o3_fixx=-1,o3_fixy=-1,o3_relx=null,o3_rely=null,o3_midx=null,o3_midy=null,o3_ref="",o3_refc='UL',o3_refp='UL',o3_refx=0,o3_refy=0,o3_fgbackground="",o3_bgbackground="",o3_cgbackground="",o3_padxl=0,o3_padxr=0,o3_padyt=0,o3_padyb=0,o3_fullhtml=0,o3_vpos=BELOW,o3_capicon="",o3_textfont="Verdana,Arial,Helvetica",o3_captionfont="",o3_closefont="",o3_textsize=1,OLcC=null,o3_captionsize=1,o3_closesize=1,o3_frame=self,o3_timeout=0,o3_delay=0,o3_hauto=0,o3_vauto=0,o3_nojustx=0,o3_nojusty=0,o3_close="",o3_closeclick=0,o3_closetitle="",o3_fgclass="",o3_bgclass="",o3_cgclass="",o3_textpadding=2,o3_textfontclass="",o3_captionpadding=2,o3_captionfontclass="",o3_closefontclass="",o3_capbelow=0,o3_label="",o3_decode=0,CSSOFF=DONOTHING,CSSCLASS=DONOTHING,over=null,OLdelayid=0,OLtimerid=0,OLshowid=0,OLndt=0,OLfnRef="",OLhover=0,OLx=0,OLy=0,OLshowingsticky=0,OLallowmove=0,OLoverHTML="",OLover2HTML="",OLifRef="",OLo2Ref="",OLifX=0,OLifY=0,OLua=(OLv=navigator.userAgent)?OLv.toLowerCase():'',OLns4=(navigator.appName=='Netscape'&&parseInt(navigator.appVersion)==4)?1:0,OLns6=(document.getElementById)?1:0,OLie4=(document.all)?1:0,OLgek=(OLv=OLua.match(/gecko\/(\d{8})/i))?parseInt(OLv[1]):0,OLmac=(OLua.indexOf('mac')>=0)?1:0,OLsaf=(OLua.indexOf('safari')>=0)?1:0,OLkon=(OLua.indexOf('konqueror')>=0)?1:0,OLkht=(OLsaf||OLkon)?1:0,OLopr=(OLua.indexOf('opera')>=0)?1:0,OLop7=(OLopr&&document.createTextNode)?1:0;OLop95=(OLop7&&document.getElementsByClassName)?1:0;if(OLopr){OLns4=OLns6=OLgek=0;OLie4=(OLop7)?1:0;}
var OLieM=((OLie4&&OLmac)&&!(OLkht||OLopr))?1:0,OLie5=0,OLie55=0,OLie7=0;if(OLie4&&!OLop7){if((OLv=OLua.match(/msie (\d\.\d+)\.*/i))&&(OLv=parseFloat(OLv[1]))>=5.0){OLie5=1;OLns6=0;if(OLv>=5.5)OLie55=1;if(OLv>=7.0)OLie7=1;}if(OLns6)OLie4=0;}
if(OLns4)window.onresize=function(){location.reload();};var OLchkMh=1,OLdw;if(OLns4||OLie4||OLns6){OLmh();if(window.addEventListener)window.addEventListener("unload",OLulCl,false);}else{overlib=nd=cClick=OLpageDefaults=no_overlib;}
function OLulCl(){if(over)cClick();window.removeEventListener("unload",OLulCl,false);}
function overlib(){if(!(OLloaded&&OLgateOK))return;if((OLexclusivePI)&&OLisExclusive(arguments))return true;if(OLchkMh)OLmh();if(OLndt&&!OLtimerid)OLndt=0;if(over){if(OLfilterPI)o3_filter=0;cClick();}if(parent!=self){if(parent.OLo2Ref){parent.OLeval(parent.OLo2Ref);parent.OLo2Ref="";}if(parent.OLifRef){parent.OLeval(parent.OLifRef);parent.OLifRef="";}}if(OLo2Ref){eval(OLo2Ref);OLo2Ref="";}if(OLifRef){eval(OLifRef);OLifRef="";}OLload(OLp1or2);OLload(OLp1);OLfnRef="";OLifX=0;OLifY=0;OLhover=0;if(OLcrossframePI&&parent!=self)OLchkFRAME(arguments);OLsetRunTimeVar();OLparseTokens('o3_',arguments);if(!(over=OLmkLyr()))return false;if(o3_decode)OLdecode();if(OLprintPI)OLchkPrint();if(OLbubblePI)OLchkForBubbleEffect();if(OLdebugPI)OLsetDebugCanShow();if(OLshadowPI)OLinitShadow();if(OLiframePI)OLinitIfs();if(OLfilterPI)OLinitFilterLyr();if(OLexclusivePI&&o3_exclusive&&o3_exclusivestatus!="")o3_status=o3_exclusivestatus;else if(o3_autostatus==2&&o3_cap!="")
o3_status=o3_cap;else if(o3_autostatus==1&&o3_text!="")o3_status=o3_text;if(!o3_delay){return OLmain();}else{OLdelayid=setTimeout("OLmain()",o3_delay);if(o3_status!=""){self.status=o3_status;return true;}else if(!(OLop7&&event&&event.type=='mouseover'))return false;}}
function OLeval(s){eval(s);}
function nd(time){if(OLloaded&&OLgateOK){if(!((OLexclusivePI)&&OLisExclusive())){if(time&&over&&!o3_delay){if(OLtimerid>0)clearTimeout(OLtimerid);OLtimerid=(OLhover&&o3_frame==self&&!OLcursorOff())?0:setTimeout("cClick()",(o3_timeout=OLndt=time));}else{if(!OLshowingsticky){OLallowmove=0;if(over)OLhideObject(over);}}}}return false;}
function cClick(){if(OLloaded&&OLgateOK){OLhover=0;if(over){if(OLo2Ref){eval(OLo2Ref);OLo2Ref="";}if(OLovertwoPI&&over==over2)cClick2();OLhideObject(over);OLshowingsticky=0;OLallowmove=0;}if(OLmodalPI)OLclearModal();}return false;}
function OLpageDefaults(){OLparseTokens('ol_',arguments);}
function OLgetRef(l,d){var r=OLgetRefById(l,d);return(r)?r:OLgetRefByName(l,d);}
function no_overlib(){return false;}
function OLmain(){o3_delay=0;if(parent!=self&&o3_frame==parent&&parent.OLscrollPI&&parent.over)parent.OLclearScroll();if(o3_frame==self){if(o3_noclose)OLoptMOUSEOFF(0);else if(o3_mouseoff)OLoptMOUSEOFF(1);}if(o3_sticky){OLshowingsticky=1;if(OLfnRef&&parent!=self&&o3_frame==parent&&parent.overlib)parent.OLifRef=(OLfilterPI?OLfnRef+'o3_filter=0;':'')+OLfnRef+'cClick();';}
OLdoLyr();OLallowmove=0;if(o3_timeout>0){if(OLtimerid>0)clearTimeout(OLtimerid);OLtimerid=setTimeout("cClick()",o3_timeout);}
OLchkRef();OLdisp(o3_status);if(OLdraggablePI)OLcheckDrag();if(o3_status!="")return true;else if(!(OLop7&&event&&event.type=='mouseover'))return false;}
function OLchkRef(){if(o3_ref){OLrefXY=OLgetRefXY(o3_ref);if(OLrefXY[0]==null&&OLcrossframePI)OLchkIfRef();if(OLrefXY[0]==null){o3_ref="";o3_midx=0;o3_midy=0;}}}
function OLload(c){var i,m=c.split(',');for(i=0;i<m.length;i++)eval('o3_'+m[i]+'=ol_'+m[i]);}
function OLdoLGF(){return(o3_background!=''||o3_fullhtml)?OLcontentBackground(o3_text,o3_background,o3_fullhtml):(o3_cap=="")?OLcontentSimple(o3_text):(o3_sticky)?OLcontentCaption(o3_text,o3_cap,o3_close):OLcontentCaption(o3_text,o3_cap,'');}
function OLmkLyr(id,f,z){id=(id||'overDiv');f=(f||o3_frame);z=(z||1000);var fd=f.document,d=OLgetRefById(id,fd);if(!d){if(OLns4)d=fd.layers[id]=new Layer(1024,f);else if(OLie4&&!OLop7){fd.body.insertAdjacentHTML('AfterBegin','<div id="'+id+'"></div>');d=fd.all[id];}else{d=fd.createElement('div');if(d){d.id=id;fd.body.appendChild(d);}}if(!d)return null;if(OLns4)d.zIndex=z;else{var o=d.style;o.position='absolute';o.visibility='hidden';o.zIndex=z;}}return d;}
function OLdoLyr(){if(o3_sticky&&OLtimerid>0){clearTimeout(OLtimerid);OLtimerid=0;}if(o3_background==''&&!o3_fullhtml){if(o3_fgbackground!='')o3_fgbackground=' background="'+o3_fgbackground+'"';if(o3_bgbackground!='')o3_bgbackground=' background="'+o3_bgbackground+'"';if(o3_cgbackground!='')o3_cgbackground=' background="'+o3_cgbackground+'"';if(o3_fgcolor!='')o3_fgcolor=' bgcolor="'+o3_fgcolor+'"';if(o3_bgcolor!='')o3_bgcolor=' bgcolor="'+o3_bgcolor+'"';if(o3_cgcolor!='')o3_cgcolor=' bgcolor="'+o3_cgcolor+'"';if(o3_height>0)o3_height=(OLns4)?' height="'+o3_height+'"':' style="height:'+o3_height+'px;"';else o3_height='';}if(!OLns4)OLrepositionTo(over,(OLns6?20:0),0);var lyrHtml=OLdoLGF();if(o3_wrap&&!o3_fullhtml){OLlayerWrite(lyrHtml);o3_width=(OLns4?over.clip.width:over.offsetWidth);if(OLie4&&!OLop95){var w=OLfd().clientWidth;if(o3_width>=w){if(OLop7){if(OLovertwoPI&&over==over2){var z=over2.style.zIndex;o3_frame.document.body.removeChild(over);over2=OLmkLyr('overDiv2',o3_frame,z);over=over2;}else{o3_frame.document.body.removeChild(over);over=OLmkLyr();}}o3_width=w-20;}}
if(o3_wrapmax<1&&o3_frame.innerWidth)o3_wrapmax=o3_frame.innerWidth-40;if(o3_wrapmax>0&&o3_width>o3_wrapmax)o3_width=o3_wrapmax;o3_wrap=0;lyrHtml=OLdoLGF();}OLlayerWrite(lyrHtml);o3_width=(OLns4?over.clip.width:over.offsetWidth);if(OLbubblePI)OLgenerateBubble(lyrHtml);}
function OLcontentSimple(txt){var t=OLbgLGF()+OLfgLGF(txt)+OLbaseLGF();OLsetBackground('');return t;}
function OLcontentCaption(txt,title,close){var closing=(OLprintPI?OLprintCapLGF():''),closeevent='onmouseover',caption,t,cC='javascript:return '+OLfnRef
+(OLovertwoPI&&over==over2?'cClick2();':'cClick();');if(o3_closeclick)closeevent=(o3_closetitle?'title="'
+o3_closetitle+'" ':'')+'onclick';if(o3_capicon!=''&&o3_capicon.indexOf('<img')!=0)o3_capicon='<img src="'+o3_capicon
+'" /> ';if(close){closing+='<td align="right"><a href="'+cC+'" '+closeevent+'="'+cC+'"'+(o3_closefontclass?' class="'
+o3_closefontclass+'">':(OLns4?'><':'')+OLlgfUtil(0,1,'','a',o3_closecolor,o3_closefont,o3_closesize))+close+
(o3_closefontclass?'':(OLns4?OLlgfUtil(1,1,'','a'):''))+'</a></td>';}caption='<table id="overCap'
+(OLovertwoPI&&over==over2?'2':'')+'"'+OLwd(0)+' border="0" cellpadding="'+o3_captionpadding+'" cellspacing="0"'
+(o3_cgclass?' class="'+o3_cgclass+'"':o3_cgcolor+o3_cgbackground)+'><tr><td'+OLwd(0)+(o3_cgclass?' class="'
+o3_cgclass+'">':'>')+(o3_captionfontclass?'<div'+OLhL(1)+' class="'+o3_captionfontclass+'">':OLlgfUtil(0,1,'','div',o3_capcolor,o3_captionfont,o3_captionsize))+o3_capicon+title+OLlgfUtil(1,1,'','div')+'</td>'+closing+'</tr></table>';t=OLbgLGF()+(o3_capbelow?OLfgLGF(txt)+caption:caption+OLfgLGF(txt))+OLbaseLGF();OLsetBackground('');return t;}
function OLcontentBackground(txt,image,hasfullhtml){var t;if(hasfullhtml){t=txt;}else{t='<table'+OLwd(1)+' border="0" cellpadding="0" '+'cellspacing="0" '+'height="'
+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="top"'
+OLwd(2)+'>'+OLlgfUtil(0,0,o3_textfontclass,'div',o3_textcolor,o3_textfont,o3_textsize)+txt+OLlgfUtil(1,0,'','div')
+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>';}
OLsetBackground(image);return t;}
function OLbgLGF(){return'<table'+OLwd(1)+o3_height+' border="0" cellpadding="'+o3_border+'" cellspacing="0"'+(o3_bgclass?' class="'
+o3_bgclass+'"':o3_bgcolor+o3_bgbackground)+'><tr><td>';}
function OLfgLGF(t){return'<table'+OLwd(0)+o3_height+' border="0" cellpadding="'+o3_textpadding+'" cellspacing="0"'+(o3_fgclass?' class="'
+o3_fgclass+'"':o3_fgcolor+o3_fgbackground)+'><tr><td valign="top"'+(o3_fgclass?' class="'+o3_fgclass+'"':'')+'>'
+OLlgfUtil(0,0,o3_textfontclass,'div',o3_textcolor,o3_textfont,o3_textsize)+t+(OLprintPI?OLprintFgLGF():'')
+OLlgfUtil(1,0,'','div')+'</td></tr></table>';}
function OLlgfUtil(end,stg,tfc,ele,col,fac,siz){if(end)return('</'+(OLns4?'font'+(stg?'></strong':''):ele)+'>');else return(tfc?'<div'+OLhL(1)+' class="'+tfc+'">':((ele=='a'?'':'<')+(OLns4?(stg?'strong><':'')+'font color="'+col+'" face="'+OLquoteMultiNameFonts(fac)+'" size="'
+siz:(ele=='a'?'':ele)+' style="'+((ele=='div')?OLhL(0):'')+'color:'+col+(stg?';font-weight:bold':'')+';font-family:'
+OLquoteMultiNameFonts(fac)+';font-size:'+siz+';'+(ele=='span'?'text-decoration:underline;':''))+'">'));}
function OLquoteMultiNameFonts(f){var i,v,pM=f.split(',');for(i=0;i<pM.length;i++){v=pM[i];v=v.replace(/^\s+/,'').replace(/\s+$/,'');if(/\s/.test(v)&&!/['"]/.test(v)){v="\'"+v+"\'";pM[i]=v;}}return pM.join();}
function OLbaseLGF(){return((o3_base>0&&!o3_wrap)?('<table width="100%" border="0" cellpadding="0" cellspacing="0"'+(o3_bgclass?' class="'
+o3_bgclass+'"':'')+'><tr><td height="'+o3_base+'"></td></tr></table>'):'')+'</td></tr></table>';}
function OLwd(a){return(o3_wrap?'':' width="'+(!a?'100%':(a==1?o3_width:(o3_width-o3_padxl-o3_padxr)))+'"');}
function OLhL(s){if(!OLie5)return'';return(s?' style="overflow:auto;"':'overflow:auto;');}
function OLsetBackground(i){if(i==''){if(OLns4)over.background.src=null;else{if(OLns6)over.style.width='';over.style.backgroundImage='none';}}
else{if(OLns4)over.background.src=i;else{if(OLns6)over.style.width=o3_width+'px';over.style.backgroundImage='url('+i+')';}}}
function OLdisp(s){if(OLmodalPI&&!o3_modalscroll)OLchkModal();if(!OLallowmove){if(OLshadowPI)OLdispShadow();if(OLiframePI)OLdispIfs();OLplaceLayer();if(OLmodalPI&&o3_modalscroll)OLchkModal();if(OLndt)OLshowObject(over);else OLshowid=setTimeout("OLshowObject(over)",1);OLallowmove=(o3_sticky||o3_nofollow)?0:1;}OLndt=0;if(s!="")self.status=s;}
function OLplaceLayer(){var snp,X,Y,pgLeft,pgTop,pWd=o3_width,pHt,iWd=100,iHt=100,SB=0,LM=0,CX=0,TM=0,BM=0,CY=0,o=OLfd(),nsb=(OLgek>=20010505&&!o3_frame.scrollbars.visible)?1:0;if(!OLkht&&!OLop95&&o&&o.clientWidth)iWd=o.clientWidth;else if(o3_frame.innerWidth){SB=Math.ceil(1.4*(o3_frame.outerWidth-o3_frame.innerWidth));if(SB>20)SB=20;iWd=o3_frame.innerWidth;}
pgLeft=(OLie4&&!OLop95)?o.scrollLeft:o3_frame.pageXOffset;if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow)SB=CX=5;else
if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowx){SB+=((o3_shadowx>0)?o3_shadowx:0);LM=((o3_shadowx<0)?Math.abs(o3_shadowx):0);CX=Math.abs(o3_shadowx);}
if(o3_ref!=""||o3_fixx>-1||o3_relx!=null||o3_midx!=null){if(o3_ref!=""){X=OLrefXY[0];if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow){if(o3_refp=='UR'||o3_refp=='LR')X-=5;}
else if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowx){if(o3_shadowx<0&&(o3_refp=='UL'||o3_refp=='LL'))X-=o3_shadowx;else
if(o3_shadowx>0&&(o3_refp=='UR'||o3_refp=='LR'))X-=o3_shadowx;}}else{if(o3_midx!=null){X=parseInt(pgLeft+((iWd-pWd-SB-LM)/2)+o3_midx);}else{if(o3_relx!=null){if(o3_relx>=0)X=pgLeft+o3_relx+LM;else X=pgLeft+o3_relx+iWd-pWd-SB;}else{X=o3_fixx+LM;}}}}else{if(o3_hauto){if(o3_hpos==LEFT&&OLx-pgLeft+OLifX<iWd/2&&OLx-pWd-o3_offsetx+OLifX<pgLeft+LM)o3_hpos=RIGHT;else
if(o3_hpos==RIGHT&&OLx-pgLeft+OLifX>iWd/2&&OLx+pWd+o3_offsetx+OLifX>pgLeft+iWd-SB)o3_hpos=LEFT;}
X=(o3_hpos==CENTER)?parseInt(OLx-((pWd+CX)/2)+o3_offsetx):(o3_hpos==LEFT)?OLx-o3_offsetx-pWd:OLx+o3_offsetx;if(o3_snapx>1){snp=X%o3_snapx;if(o3_hpos==LEFT){X=X-(o3_snapx+snp);}else{X=X+(o3_snapx-snp);}}X+=OLifX;}
if(!o3_nojustx&&X+pWd>pgLeft+iWd-SB)
X=iWd+pgLeft-pWd-SB;if(!o3_nojustx&&X-LM<pgLeft)X=pgLeft+LM;pgTop=OLie4&&!OLop95?o.scrollTop:o3_frame.pageYOffset;if(!OLkht&&!OLop95&&!nsb&&o&&o.clientHeight)iHt=o.clientHeight;else if(o3_frame.innerHeight)iHt=o3_frame.innerHeight;if(OLbubblePI&&o3_bubble)pHt=OLbubbleHt;else pHt=OLns4?over.clip.height:over.offsetHeight;if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowy){TM=(o3_shadowy<0)?Math.abs(o3_shadowy):0;if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow)BM=CY=5;else
BM=(o3_shadowy>0)?o3_shadowy:0;CY=Math.abs(o3_shadowy);}
if(o3_ref!=""||o3_fixy>-1||o3_rely!=null||o3_midy!=null){if(o3_ref!=""){Y=OLrefXY[1];if(OLie55&&OLfilterPI&&o3_filter&&o3_filtershadow){if(o3_refp=='LL'||o3_refp=='LR')Y-=5;}else if((OLshadowPI)&&bkdrop&&o3_shadow&&o3_shadowy){if(o3_shadowy<0&&(o3_refp=='UL'||o3_refp=='UR'))Y-=o3_shadowy;else
if(o3_shadowy>0&&(o3_refp=='LL'||o3_refp=='LR'))Y-=o3_shadowy;}}else{if(o3_midy!=null){Y=parseInt(pgTop+((iHt-pHt-CY)/2)+o3_midy);}else{if(o3_rely!=null){if(o3_rely>=0)Y=pgTop+o3_rely+TM;else Y=pgTop+o3_rely+iHt-pHt-BM;}else{Y=o3_fixy+TM;}}}}else{if(o3_vauto){if(o3_vpos==ABOVE&&OLy-pgTop+OLifY<iHt/2&&OLy-pHt-o3_offsety+OLifY<pgTop)o3_vpos=BELOW;else
if(o3_vpos==BELOW&&OLy-pgTop+OLifY>iHt/2&&OLy+pHt+o3_offsety+((OLns4||OLkht)?17:0)+OLifY>pgTop+iHt-BM)
o3_vpos=ABOVE;}Y=(o3_vpos==VCENTER)?parseInt(OLy-((pHt+CY)/2)+o3_offsety):(o3_vpos==ABOVE)?OLy-(pHt+o3_offsety+BM):OLy+o3_offsety+TM;if(o3_snapy>1){snp=Y%o3_snapy;if(pHt>0&&o3_vpos==ABOVE){Y=Y-(o3_snapy+snp);}else{Y=Y+(o3_snapy-snp);}}Y+=OLifY;}
if(!o3_nojusty&&Y+pHt+BM>pgTop+iHt)Y=pgTop+iHt-pHt-BM;if(!o3_nojusty&&Y-TM<pgTop)Y=pgTop+TM;OLrepositionTo(over,X,Y);if(OLshadowPI)OLrepositionShadow(X,Y);if(OLiframePI)OLrepositionIfs(X,Y);if(OLns6&&o3_frame.innerHeight){iHt=o3_frame.innerHeight;OLrepositionTo(over,X,Y);}
if(OLscrollPI)OLchkScroll(X-pgLeft,Y-pgTop);}
function OLfd(f){var fd=((f)?f:o3_frame).document,fdc=fd.compatMode,fdd=fd.documentElement;return(!OLop7&&fdc&&fdc!='BackCompat'&&fdd&&fdd.clientWidth)?fd.documentElement:fd.body;}
function OLgetRefXY(r,d){var o=OLgetRef(r,d),ob=o,rXY=[o3_refx,o3_refy],of;if(!o)return[null,null];if(OLns4){if(typeof o.length!='undefined'&&o.length>1){ob=o[0];rXY[0]+=o[0].x+o[1].pageX;rXY[1]+=o[0].y+o[1].pageY;}else{if((o.toString().indexOf('Image')!=-1)||(o.toString().indexOf('Anchor')!=-1)){rXY[0]+=o.x;rXY[1]+=o.y;}
else{rXY[0]+=o.pageX;rXY[1]+=o.pageY;}}}else{rXY[0]+=OLpageLoc(o,'Left');rXY[1]+=OLpageLoc(o,'Top');}
of=OLgetRefOffsets(ob);rXY[0]+=of[0];rXY[1]+=of[1];return rXY;}
function OLgetRefById(l,d){l=(l||'overDiv');d=(d||o3_frame.document);var j,r;if(d.getElementById)return d.getElementById(l);if(OLie4&&d.all)return d.all[l];if(d.layers&&d.layers.length>0){if(d.layers[l])return d.layers[l];for(j=0;j<d.layers.length;j++){r=OLgetRefById(l,d.layers[j].document);if(r)return r;}}return null;}
function OLgetRefByName(l,d){d=(d||o3_frame.document);var j,r,v=OLie4?d.all.tags('iframe'):OLns6?d.getElementsByTagName('iframe'):null;if(typeof d.images!='undefined'&&d.images[l])return d.images[l];if(typeof d.anchors!='undefined'&&d.anchors[l])return d.anchors[l];if(v)for(j=0;j<v.length;j++)if(v[j].name==l)return v[j];if(d.layers&&d.layers.length>0)for(j=0;j<d.layers.length;j++){r=OLgetRefByName(l,d.layers[j].document);if(r&&r.length>0)return r;else if(r)return[r,d.layers[j]];}return null;}
function OLgetRefOffsets(o){var c=o3_refc.toUpperCase(),p=o3_refp.toUpperCase(),W=0,H=0,pW=0,pH=0,of=[0,0];pW=(OLbubblePI&&o3_bubble)?o3_width:OLns4?over.clip.width:over.offsetWidth;pH=(OLbubblePI&&o3_bubble)?OLbubbleHt:OLns4?over.clip.height:over.offsetHeight;if((!OLop7)&&o.toString().indexOf('Image')!=-1){W=o.width;H=o.height;}
else if((!OLop7)&&o.toString().indexOf('Anchor')!=-1){c=o3_refc='UL';}else{W=(OLns4)?o.clip.width:o.offsetWidth;H=(OLns4)?o.clip.height:o.offsetHeight;}if((OLns4||(OLns6&&OLgek))&&o.border){W+=2*parseInt(o.border);H+=2*parseInt(o.border);}if(c=='UL'){of=(p=='UR')?[-pW,0]:(p=='LL')?[0,-pH]:(p=='LR')?[-pW,-pH]:[0,0];}else if(c=='UR'){of=(p=='UR')?[W-pW,0]:(p=='LL')?[W,-pH]:(p=='LR')?[W-pW,-pH]:[W,0];}else if(c=='LL'){of=(p=='UR')?[-pW,H]:(p=='LL')?[0,H-pH]:(p=='LR')?[-pW,H-pH]:[0,H];}else if(c=='LR'){of=(p=='UR')?[W-pW,H]:(p=='LL')?[W,H-pH]:(p=='LR')?[W-pW,H-pH]:[W,H];}return of;}
function OLpageLoc(o,t){var l=0,s=o;while(o.offsetParent&&o.offsetParent.tagName.toLowerCase()!='html'){l+=o['offset'+t];o=o.offsetParent;}
l+=o['offset'+t];if(!OLop7)while(s=s.parentNode){if((s['scroll'+t]>0)&&s.tagName.toLowerCase()=='div')l-=s['scroll'+t];}
return l;}
function OLmouseMove(e){var e=(e||event);OLcC=(OLovertwoPI&&over2&&over==over2?cClick2:cClick);OLx=(e.pageX||e.clientX+OLfd().scrollLeft);OLy=(e.pageY||e.clientY+OLfd().scrollTop);if((OLallowmove&&over)&&(o3_frame==self||over==OLgetRefById()||(OLovertwoPI&&over2==over&&over==OLgetRefById('overDiv2')))){OLplaceLayer();if(OLhidePI)OLhideUtil(0,1,1,0,0,0);}if(OLhover&&over&&o3_frame==self&&OLcursorOff())if(o3_offdelay<1)OLcC();else{if(OLtimerid>0)clearTimeout(OLtimerid);OLtimerid=setTimeout("OLcC()",o3_offdelay);}}
function OLmh(){var fN,f,j,k,s,mh=OLmouseMove,w=(OLns4&&window.onmousemove),re=/function[ ]*(\w*)\(/;OLdw=document;if(document.onmousemove||w){if(w)OLdw=window;f=OLdw.onmousemove.toString();fN=f.match(re);if(!fN||fN[1]=='anonymous'||fN[1]=='OLmouseMove'){OLchkMh=0;return;}if(fN[1])s=fN[1]+'(e)';else{j=f.indexOf('{');k=f.lastIndexOf('}')+1;s=f.substring(j,k);}s+=';OLmouseMove(e);';mh=new Function('e',s);}OLdw.onmousemove=mh;if(OLns4)OLdw.captureEvents(Event.MOUSEMOVE);}
function OLparseTokens(pf,ar){var i,v,md=-1,par=(pf!='ol_'),p=OLpar,q=OLparQuo,t=OLtoggle;OLudf=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(md<0){if(typeof ar[i]=='number'){OLudf=(par?1:0);i--;}
else{switch(pf){case'ol_':ol_text=ar[i];break;default:o3_text=ar[i];}}md=0;}else{if(ar[i]==INARRAY){OLudf=0;eval(pf+'text=ol_texts['+ar[++i]+']');continue;}
if(ar[i]==CAPARRAY){eval(pf+'cap=ol_caps['+ar[++i]+']');continue;}
if(ar[i]==CAPTION){q(ar[++i],pf+'cap');continue;}
if(Math.abs(ar[i])==STICKY){t(ar[i],pf+'sticky');continue;}
if(Math.abs(ar[i])==NOFOLLOW){t(ar[i],pf+'nofollow');continue;}
if(ar[i]==BACKGROUND){q(ar[++i],pf+'background');continue;}
if(Math.abs(ar[i])==NOCLOSE){t(ar[i],pf+'noclose');continue;}
if(Math.abs(ar[i])==MOUSEOFF){t(ar[i],pf+'mouseoff');continue;}
if(ar[i]==OFFDELAY){p(ar[++i],pf+'offdelay');continue;}
if(ar[i]==RIGHT||ar[i]==LEFT||ar[i]==CENTER){p(ar[i],pf+'hpos');continue;}
if(ar[i]==OFFSETX){p(ar[++i],pf+'offsetx');continue;}
if(ar[i]==OFFSETY){p(ar[++i],pf+'offsety');continue;}
if(ar[i]==FGCOLOR){q(ar[++i],pf+'fgcolor');continue;}
if(ar[i]==BGCOLOR){q(ar[++i],pf+'bgcolor');continue;}
if(ar[i]==CGCOLOR){q(ar[++i],pf+'cgcolor');continue;}
if(ar[i]==TEXTCOLOR){q(ar[++i],pf+'textcolor');continue;}
if(ar[i]==CAPCOLOR){q(ar[++i],pf+'capcolor');continue;}
if(ar[i]==CLOSECOLOR){q(ar[++i],pf+'closecolor');continue;}
if(ar[i]==WIDTH){p(ar[++i],pf+'width');continue;}
if(Math.abs(ar[i])==WRAP){t(ar[i],pf+'wrap');continue;}
if(ar[i]==WRAPMAX){p(ar[++i],pf+'wrapmax');continue;}
if(ar[i]==HEIGHT){p(ar[++i],pf+'height');continue;}
if(ar[i]==BORDER){p(ar[++i],pf+'border');continue;}
if(ar[i]==BASE){p(ar[++i],pf+'base');continue;}
if(ar[i]==STATUS){q(ar[++i],pf+'status');continue;}
if(Math.abs(ar[i])==AUTOSTATUS){v=pf+'autostatus';eval(v+'=('+ar[i]+'<0)?('+v+'==2?2:0):('+v+'==1?0:1)');continue;}
if(Math.abs(ar[i])==AUTOSTATUSCAP){v=pf+'autostatus';eval(v+'=('+ar[i]+'<0)?('+v+'==1?1:0):('+v+'==2?0:2)');continue;}
if(ar[i]==CLOSETEXT){q(ar[++i],pf+'close');continue;}
if(ar[i]==SNAPX){p(ar[++i],pf+'snapx');continue;}
if(ar[i]==SNAPY){p(ar[++i],pf+'snapy');continue;}
if(ar[i]==FIXX){p(ar[++i],pf+'fixx');continue;}
if(ar[i]==FIXY){p(ar[++i],pf+'fixy');continue;}
if(ar[i]==RELX){p(ar[++i],pf+'relx');continue;}
if(ar[i]==RELY){p(ar[++i],pf+'rely');continue;}
if(ar[i]==MIDX){p(ar[++i],pf+'midx');continue;}
if(ar[i]==MIDY){p(ar[++i],pf+'midy');continue;}
if(ar[i]==REF){q(ar[++i],pf+'ref');continue;}
if(ar[i]==REFC){q(ar[++i],pf+'refc');continue;}
if(ar[i]==REFP){q(ar[++i],pf+'refp');continue;}
if(ar[i]==REFX){p(ar[++i],pf+'refx');continue;}
if(ar[i]==REFY){p(ar[++i],pf+'refy');continue;}
if(ar[i]==FGBACKGROUND){q(ar[++i],pf+'fgbackground');continue;}
if(ar[i]==BGBACKGROUND){q(ar[++i],pf+'bgbackground');continue;}
if(ar[i]==CGBACKGROUND){q(ar[++i],pf+'cgbackground');continue;}
if(ar[i]==PADX){p(ar[++i],pf+'padxl');p(ar[++i],pf+'padxr');continue;}
if(ar[i]==PADY){p(ar[++i],pf+'padyt');p(ar[++i],pf+'padyb');continue;}
if(Math.abs(ar[i])==FULLHTML){t(ar[i],pf+'fullhtml');continue;}
if(ar[i]==BELOW||ar[i]==ABOVE||ar[i]==VCENTER){p(ar[i],pf+'vpos');continue;}
if(ar[i]==CAPICON){q(ar[++i],pf+'capicon');continue;}
if(ar[i]==TEXTFONT){q(ar[++i],pf+'textfont');continue;}
if(ar[i]==CAPTIONFONT){q(ar[++i],pf+'captionfont');continue;}
if(ar[i]==CLOSEFONT){q(ar[++i],pf+'closefont');continue;}
if(ar[i]==TEXTSIZE){q(ar[++i],pf+'textsize');continue;}
if(ar[i]==CAPTIONSIZE){q(ar[++i],pf+'captionsize');continue;}
if(ar[i]==CLOSESIZE){q(ar[++i],pf+'closesize');continue;}
if(ar[i]==TIMEOUT){p(ar[++i],pf+'timeout');continue;}
if(ar[i]==DELAY){p(ar[++i],pf+'delay');continue;}
if(Math.abs(ar[i])==HAUTO){t(ar[i],pf+'hauto');continue;}
if(Math.abs(ar[i])==VAUTO){t(ar[i],pf+'vauto');continue;}
if(Math.abs(ar[i])==NOJUSTX){t(ar[i],pf+'nojustx');continue;}
if(Math.abs(ar[i])==NOJUSTY){t(ar[i],pf+'nojusty');continue;}
if(Math.abs(ar[i])==CLOSECLICK){t(ar[i],pf+'closeclick');continue;}
if(ar[i]==CLOSETITLE){q(ar[++i],pf+'closetitle');continue;}
if(ar[i]==FGCLASS){q(ar[++i],pf+'fgclass');continue;}
if(ar[i]==BGCLASS){q(ar[++i],pf+'bgclass');continue;}
if(ar[i]==CGCLASS){q(ar[++i],pf+'cgclass');continue;}
if(ar[i]==TEXTPADDING){p(ar[++i],pf+'textpadding');continue;}
if(ar[i]==TEXTFONTCLASS){q(ar[++i],pf+'textfontclass');continue;}
if(ar[i]==CAPTIONPADDING){p(ar[++i],pf+'captionpadding');continue;}
if(ar[i]==CAPTIONFONTCLASS){q(ar[++i],pf+'captionfontclass');continue;}
if(ar[i]==CLOSEFONTCLASS){q(ar[++i],pf+'closefontclass');continue;}
if(Math.abs(ar[i])==CAPBELOW){t(ar[i],pf+'capbelow');continue;}
if(ar[i]==LABEL){q(ar[++i],pf+'label');continue;}
if(Math.abs(ar[i])==DECODE){t(ar[i],pf+'decode');continue;}
if(ar[i]==DONOTHING){continue;}
i=OLparseCmdLine(pf,i,ar);}}
if((OLfunctionPI)&&OLudf&&o3_function)o3_text=o3_function();if(pf=='o3_')OLfontSize();}
function OLpar(a,v){eval(v+'='+a);}
function OLparQuo(a,v){eval(v+"='"+OLescSglQt(a)+"'");}
function OLescSglQt(s){return s.toString().replace(/\\/g,"\\\\").replace(/'/g,"\\'");}
function OLtoggle(a,v){eval(v+'=('+v+'==0&&'+a+'>=0)?1:0');}
function OLhasDims(s){return/[%\-a-z]+$/.test(s);}
function OLfontSize(){var i;if(OLhasDims(o3_textsize)){if(OLns4)o3_textsize="2";}else
if(!OLns4){i=parseInt(o3_textsize);o3_textsize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
if(OLhasDims(o3_captionsize)){if(OLns4)o3_captionsize="2";}else
if(!OLns4){i=parseInt(o3_captionsize);o3_captionsize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
if(OLhasDims(o3_closesize)){if(OLns4)o3_closesize="2";}else
if(!OLns4){i=parseInt(o3_closesize);o3_closesize=(i>0&&i<8)?OLpct[i]:OLpct[0];}
if(OLprintPI)OLprintDims();}
function OLdecode(){var re=/%[0-9A-Fa-f]{2,}/,t=o3_text,c=o3_cap,u=unescape,d=!OLns4&&(!OLgek||OLgek>=20020826)&&typeof decodeURIComponent?decodeURIComponent:u;if(typeof(window.TypeError)=='function'){if(re.test(t)){eval(new Array('try{','o3_text=d(t);','}catch(e){','o3_text=u(t);','}').join('\n'))};if(c&&re.test(c)){eval(new Array('try{','o3_cap=d(c);','}catch(e){','o3_cap=u(c);','}').join('\n'))}}else{if(re.test(t))o3_text=u(t);if(c&&re.test(c))o3_cap=u(c);}}
function OLlayerWrite(t){t+="\n";if(OLns4){over.document.write(t);over.document.close();}else if(typeof over.innerHTML!='undefined'){if(OLieM)over.innerHTML='';over.innerHTML=t;}else{var range=o3_frame.document.createRange();range.setStartAfter(over);var domfrag=range.createContextualFragment(t);while(over.hasChildNodes()){over.removeChild(over.lastChild);}
over.appendChild(domfrag);}if(OLovertwoPI&&over==over2)OLover2HTML=t;else OLoverHTML=t;if(OLprintPI)over.print=o3_print?t:null;}
function OLshowObject(o){OLshowid=0;o=(OLns4)?o:o.style;if(((OLfilterPI)&&!OLchkFilter(o))||!OLfilterPI)o.visibility="visible";if(OLshadowPI)OLshowShadow();if(OLiframePI)OLshowIfs();if(OLhidePI)OLhideUtil(1,1,0);}
function OLhideObject(o){if(OLshowid>0){clearTimeout(OLshowid);OLshowid=0;}if(OLtimerid>0)clearTimeout(OLtimerid);if(OLdelayid>0)clearTimeout(OLdelayid);OLtimerid=0;OLdelayid=0;self.status="";o3_label=ol_label;if(o3_frame!=self)o=OLgetRefById();if(o){if(o.onmouseover)o.onmouseover=null;if(OLscrollPI&&o==over)OLclearScroll();if(OLdraggablePI)OLclearDrag();if(OLfilterPI)OLcleanupFilter(o);if(OLshadowPI)OLhideShadow();var os=(OLns4)?o:o.style;if(((OLfilterPI)&&!OLchkFadeOut(os))||!OLfilterPI){os.visibility="hidden";if(!OLie55||(typeof ggOnChange=='undefined'&&(!OLfilterPI||!o3_filter||o3_fadeout<0)))o.innerHTML='';}if(OLhidePI&&o==over)OLhideUtil(0,0,1);if(OLiframePI)OLhideIfs(o);}}
function OLrepositionTo(o,xL,yL){o=(OLns4)?o:o.style;o.left=(OLns4?xL:xL+'px');o.top=(OLns4?yL:yL+'px');}
function OLoptMOUSEOFF(c){if(!c)o3_close="";over.onmouseover=function(){OLhover=1;if(OLtimerid>0){clearTimeout(OLtimerid);OLtimerid=0;}}}
function OLcursorOff(){var o=(OLns4?over:over.style),pHt=OLns4?over.clip.height:over.offsetHeight,left=parseInt(o.left),top=parseInt(o.top),right=left+o3_width,bottom=top+((OLbubblePI&&o3_bubble)?OLbubbleHt:pHt);if(OLx<left||OLx>right||OLy<top||OLy>bottom)return true;return false;}
function OLsetRunTimeVar(){if(OLrunTime.length)for(var k=0;k<OLrunTime.length;k++)OLrunTime[k]();}
function OLparseCmdLine(pf,i,ar){if(OLcmdLine.length){for(var k=0;k<OLcmdLine.length;k++){var j=OLcmdLine[k](pf,i,ar);if(j>-1){i=j;break;}}}return i;}
function OLregCmds(c){if(typeof c!='string')return;var pM=c.split(',');pMtr=pMtr.concat(pM);for(var i=0;i<pM.length;i++)eval(pM[i].toUpperCase()+'='+pmCnt++);}
function OLregRunTimeFunc(f){if(typeof f=='object')OLrunTime=OLrunTime.concat(f);else OLrunTime[OLrunTime.length++]=f;}
function OLregCmdLineFunc(f){if(typeof f=='object')OLcmdLine=OLcmdLine.concat(f);else OLcmdLine[OLcmdLine.length++]=f;}
OLloaded=1;

if(typeof Shadowbox=='undefined'){throw'Unable to load Shadowbox, no base library adapter found';}
(function(){var version='2.0';var options={animate:true,animateFade:true,animSequence:'wh',flvPlayer:'flvplayer.swf',modal:false,overlayColor:'#000',overlayOpacity:0.8,flashBgColor:'#000000',autoplayMovies:true,showMovieControls:true,slideshowDelay:0,resizeDuration:0.55,fadeDuration:0.35,displayNav:true,continuous:false,displayCounter:true,counterType:'default',counterLimit:10,viewportPadding:20,handleOversize:'resize',handleException:null,handleUnsupported:'link',initialHeight:160,initialWidth:320,enableKeys:true,onOpen:null,onFinish:null,onChange:null,onClose:null,skipSetup:false,errors:{fla:{name:'Flash',url:'http://www.adobe.com/products/flashplayer/'},qt:{name:'QuickTime',url:'http://www.apple.com/quicktime/download/'},wmp:{name:'Windows Media Player',url:'http://www.microsoft.com/windows/windowsmedia/'},f4m:{name:'Flip4Mac',url:'http://www.flip4mac.com/wmv_download.htm'}},ext:{img:['png','jpg','jpeg','gif','bmp'],swf:['swf'],flv:['flv'],qt:['dv','mov','moov','movie','mp4'],wmp:['asf','wm','wmv'],qtwmp:['avi','mpg','mpeg'],iframe:['asp','aspx','cgi','cfm','htm','html','pl','php','php3','php4','php5','phtml','rb','rhtml','shtml','txt','vbs']}};var SB=Shadowbox;var SL=SB.lib;var default_options;var RE={domain:/:\/\/(.*?)[:\/]/,inline:/#(.+)$/,rel:/^(light|shadow)box/i,gallery:/^(light|shadow)box\[(.*?)\]/i,unsupported:/^unsupported-(\w+)/,param:/\s*([a-z_]*?)\s*=\s*(.+)\s*/,empty:/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i};var cache=[];var gallery;var current;var content;var content_id='shadowbox_content';var dims;var initialized=false;var activated=false;var slide_timer;var slide_start;var slide_delay=0;var ua=navigator.userAgent.toLowerCase();var client={isStrict:document.compatMode=='CSS1Compat',isOpera:ua.indexOf('opera')>-1,isIE:ua.indexOf('msie')>-1,isIE7:ua.indexOf('msie 7')>-1,isSafari:/webkit|khtml/.test(ua),isWindows:ua.indexOf('windows')!=-1||ua.indexOf('win32')!=-1,isMac:ua.indexOf('macintosh')!=-1||ua.indexOf('mac os x')!=-1,isLinux:ua.indexOf('linux')!=-1};client.isBorderBox=client.isIE&&!client.isStrict;client.isSafari3=client.isSafari&&!!(document.evaluate);client.isGecko=ua.indexOf('gecko')!=-1&&!client.isSafari;var ltIE7=client.isIE&&!client.isIE7;var plugins;if(navigator.plugins&&navigator.plugins.length){var detectPlugin=function(plugin_name){var detected=false;for(var i=0,len=navigator.plugins.length;i<len;++i){if(navigator.plugins[i].name.indexOf(plugin_name)>-1){detected=true;break;}}
return detected;};var f4m=detectPlugin('Flip4Mac');plugins={fla:detectPlugin('Shockwave Flash'),qt:detectPlugin('QuickTime'),wmp:!f4m&&detectPlugin('Windows Media'),f4m:f4m};}else{var detectPlugin=function(plugin_name){var detected=false;try{var axo=new ActiveXObject(plugin_name);if(axo)detected=true;}catch(e){}
return detected;};plugins={fla:detectPlugin('ShockwaveFlash.ShockwaveFlash'),qt:detectPlugin('QuickTime.QuickTime'),wmp:detectPlugin('wmplayer.ocx'),f4m:false};}
var apply=function(o,e){for(var p in e)o[p]=e[p];return o;};var isLink=function(el){return el&&typeof el.tagName=='string'&&(el.tagName.toUpperCase()=='A'||el.tagName.toUpperCase()=='AREA');};SL.getViewportHeight=function(){var h=window.innerHeight;var mode=document.compatMode;if((mode||client.isIE)&&!client.isOpera){h=client.isStrict?document.documentElement.clientHeight:document.body.clientHeight;}
return h;};SL.getViewportWidth=function(){var w=window.innerWidth;var mode=document.compatMode;if(mode||client.isIE){w=client.isStrict?document.documentElement.clientWidth:document.body.clientWidth;}
return w;};SL.createHTML=function(obj){var html='<'+obj.tag;for(var attr in obj){if(attr=='tag'||attr=='html'||attr=='children')continue;if(attr=='cls'){html+=' class="'+obj['cls']+'"';}else{html+=' '+attr+'="'+obj[attr]+'"';}}
if(RE.empty.test(obj.tag)){html+='/>';}else{html+='>';var cn=obj.children;if(cn){for(var i=0,len=cn.length;i<len;++i){html+=this.createHTML(cn[i]);}}
if(obj.html)html+=obj.html;html+='</'+obj.tag+'>';}
return html;};var ease=function(x){return 1+Math.pow(x-1,3);};var animate=function(el,p,to,d,cb){var from=parseFloat(SL.getStyle(el,p));if(isNaN(from))from=0;if(from==to){if(typeof cb=='function')cb();return;}
var delta=to-from;var op=p=='opacity';var unit=op?'':'px';var fn=function(ease){SL.setStyle(el,p,from+ease*delta+unit);};if(!options.animate&&!op||op&&!options.animateFade){fn(1);if(typeof cb=='function')cb();return;}
d*=1000;var begin=new Date().getTime();var end=begin+d;var timer=setInterval(function(){var time=new Date().getTime();if(time>=end){clearInterval(timer);fn(1);if(typeof cb=='function')cb();}else{fn(ease((time-begin)/d));}},10);};var clearOpacity=function(el){var s=el.style;if(client.isIE){if(typeof s.filter=='string'&&(/alpha/i).test(s.filter)){s.filter=s.filter.replace(/[\w\.]*alpha\(.*?\);?/i,'');}}else{s.opacity='';s['-moz-opacity']='';s['-khtml-opacity']='';}};var getComputedHeight=function(el){var h=Math.max(el.offsetHeight,el.clientHeight);if(!h){h=parseInt(SL.getStyle(el,'height'),10)||0;if(!client.isBorderBox){h+=parseInt(SL.getStyle(el,'padding-top'),10)
+parseInt(SL.getStyle(el,'padding-bottom'),10)
+parseInt(SL.getStyle(el,'border-top-width'),10)
+parseInt(SL.getStyle(el,'border-bottom-width'),10);}}
return h;};var getPlayer=function(url){var m=url.match(RE.domain);var d=m&&document.domain==m[1];if(url.indexOf('#')>-1&&d)return'inline';var q=url.indexOf('?');if(q>-1)url=url.substring(0,q);if(RE.img.test(url))return'img';if(RE.swf.test(url))return plugins.fla?'swf':'unsupported-swf';if(RE.flv.test(url))return plugins.fla?'flv':'unsupported-flv';if(RE.qt.test(url))return plugins.qt?'qt':'unsupported-qt';if(RE.wmp.test(url)){if(plugins.wmp)return'wmp';if(plugins.f4m)return'qt';if(client.isMac)return plugins.qt?'unsupported-f4m':'unsupported-qtf4m';return'unsupported-wmp';}else if(RE.qtwmp.test(url)){if(plugins.qt)return'qt';if(plugins.wmp)return'wmp';return client.isMac?'unsupported-qt':'unsupported-qtwmp';}else if(!d||RE.iframe.test(url)){return'iframe';}
return'unsupported';};var handleClick=function(ev){var link;if(isLink(this)){link=this;}else{link=SL.getTarget(ev);while(!isLink(link)&&link.parentNode){link=link.parentNode;}}
if(link){SB.open(link);if(gallery.length)SL.preventDefault(ev);}};var toggleNav=function(id,on){var el=SL.get('shadowbox_nav_'+id);if(el)el.style.display=on?'':'none';};var buildBars=function(cb){var obj=gallery[current];var title_i=SL.get('shadowbox_title_inner');title_i.innerHTML=obj.title||'';var nav=SL.get('shadowbox_nav');if(nav){var c,n,pl,pa,p;if(options.displayNav){c=true;var len=gallery.length;if(len>1){if(options.continuous){n=p=true;}else{n=(len-1)>current;p=current>0;}}
if(options.slideshowDelay>0&&hasNext()){pa=slide_timer!='paused';pl=!pa;}}else{c=n=pl=pa=p=false;}
toggleNav('close',c);toggleNav('next',n);toggleNav('play',pl);toggleNav('pause',pa);toggleNav('previous',p);}
var counter=SL.get('shadowbox_counter');if(counter){var co='';if(options.displayCounter&&gallery.length>1){if(options.counterType=='skip'){var i=0,len=gallery.length,end=len;var limit=parseInt(options.counterLimit);if(limit<len){var h=Math.round(limit/2);i=current-h;if(i<0)i+=len;end=current+(limit-h);if(end>len)end-=len;}
while(i!=end){if(i==len)i=0;co+='<a onclick="Shadowbox.change('+i+');"';if(i==current)co+=' class="shadowbox_counter_current"';co+='>'+(++i)+'</a>';}}else{co=(current+1)+' '+SB.LANG.of+' '+len;}}
counter.innerHTML=co;}
cb();};var hideBars=function(anim,cb){var obj=gallery[current];var title=SL.get('shadowbox_title');var info=SL.get('shadowbox_info');var title_i=SL.get('shadowbox_title_inner');var info_i=SL.get('shadowbox_info_inner');var fn=function(){buildBars(cb);};var title_h=getComputedHeight(title);var info_h=getComputedHeight(info)*-1;if(anim){animate(title_i,'margin-top',title_h,0.35);animate(info_i,'margin-top',info_h,0.35,fn);}else{SL.setStyle(title_i,'margin-top',title_h+'px');SL.setStyle(info_i,'margin-top',info_h+'px');fn();}};var showBars=function(cb){var title_i=SL.get('shadowbox_title_inner');var info_i=SL.get('shadowbox_info_inner');var t=title_i.innerHTML!='';if(t)animate(title_i,'margin-top',0,0.35);animate(info_i,'margin-top',0,0.35,cb);};var loadContent=function(){var obj=gallery[current];if(!obj)return;var changing=false;if(content){content.remove();changing=true;}
var p=obj.player=='inline'?'html':obj.player;if(typeof SB[p]!='function'){SB.raise('Unknown player '+obj.player);}
content=new SB[p](content_id,obj);listenKeys(false);toggleLoading(true);hideBars(changing,function(){if(!content)return;if(!changing){SL.get('shadowbox').style.display='';}
var fn=function(){resizeContent(function(){if(!content)return;showBars(function(){if(!content)return;SL.get('shadowbox_body_inner').innerHTML=SL.createHTML(content.markup(dims));toggleLoading(false,function(){if(!content)return;if(typeof content.onLoad=='function'){content.onLoad();}
if(options.onFinish&&typeof options.onFinish=='function'){options.onFinish(gallery[current]);}
if(slide_timer!='paused'){SB.play();}
listenKeys(true);});});});};if(typeof content.ready!='undefined'){var id=setInterval(function(){if(content){if(content.ready){clearInterval(id);id=null;fn();}}else{clearInterval(id);id=null;}},100);}else{fn();}});if(gallery.length>1){var next=gallery[current+1]||gallery[0];if(next.player=='img'){var a=new Image();a.src=next.content;}
var prev=gallery[current-1]||gallery[gallery.length-1];if(prev.player=='img'){var b=new Image();b.src=prev.content;}}};var setDimensions=function(height,width,resizable){resizable=resizable||false;var sb=SL.get('shadowbox_body');var h=height=parseInt(height);var w=width=parseInt(width);var view_h=SL.getViewportHeight();var view_w=SL.getViewportWidth();var border_w=parseInt(SL.getStyle(sb,'border-left-width'),10)
+parseInt(SL.getStyle(sb,'border-right-width'),10);var extra_w=border_w+2*options.viewportPadding;if(w+extra_w>=view_w){w=view_w-extra_w;}
var border_h=parseInt(SL.getStyle(sb,'border-top-width'),10)
+parseInt(SL.getStyle(sb,'border-bottom-width'),10);var bar_h=getComputedHeight(SL.get('shadowbox_title'))
+getComputedHeight(SL.get('shadowbox_info'));var extra_h=border_h+2*options.viewportPadding+bar_h;if(h+extra_h>=view_h){h=view_h-extra_h;}
var drag=false;var resize_h=height;var resize_w=width;var handle=options.handleOversize;if(resizable&&(handle=='resize'||handle=='drag')){var change_h=(height-h)/height;var change_w=(width-w)/width;if(handle=='resize'){if(change_h>change_w){w=Math.round((width/height)*h);}else if(change_w>change_h){h=Math.round((height/width)*w);}
resize_w=w;resize_h=h;}else{var link=gallery[current];if(link)drag=link.player=='img'&&(change_h>0||change_w>0);}}
dims={height:h+border_h+bar_h,width:w+border_w,inner_h:h,inner_w:w,top:(view_h-(h+extra_h))/2+options.viewportPadding,resize_h:resize_h,resize_w:resize_w,drag:drag};};var resizeContent=function(cb){if(!content)return;setDimensions(content.height,content.width,content.resizable);if(cb){switch(options.animSequence){case'hw':adjustHeight(dims.inner_h,dims.top,true,function(){adjustWidth(dims.width,true,cb);});break;case'wh':adjustWidth(dims.width,true,function(){adjustHeight(dims.inner_h,dims.top,true,cb);});break;case'sync':default:adjustWidth(dims.width,true);adjustHeight(dims.inner_h,dims.top,true,cb);}}else{adjustWidth(dims.width,false);adjustHeight(dims.inner_h,dims.top,false);var c=SL.get(content_id);if(c){if(content.resizable&&options.handleOversize=='resize'){c.height=dims.resize_h;c.width=dims.resize_w;}
if(gallery[current].player=='img'&&options.handleOversize=='drag'){var top=parseInt(SL.getStyle(c,'top'));if(top+content.height<dims.inner_h){SL.setStyle(c,'top',dims.inner_h-content.height+'px');}
var left=parseInt(SL.getStyle(c,'left'));if(left+content.width<dims.inner_w){SL.setStyle(c,'left',dims.inner_w-content.width+'px');}}}}};var adjustHeight=function(height,top,anim,cb){height=parseInt(height);var sb=SL.get('shadowbox_body');if(anim){animate(sb,'height',height,options.resizeDuration);}else{SL.setStyle(sb,'height',height+'px');}
var s=SL.get('shadowbox');if(anim){animate(s,'top',top,options.resizeDuration,cb);}else{SL.setStyle(s,'top',top+'px');if(typeof cb=='function')cb();}};var adjustWidth=function(width,anim,cb){width=parseInt(width);var s=SL.get('shadowbox');if(anim){animate(s,'width',width,options.resizeDuration,cb);}else{SL.setStyle(s,'width',width+'px');if(typeof cb=='function')cb();}};var listenKeys=function(on){if(!options.enableKeys)return;SL[(on?'add':'remove')+'Event'](document,'keydown',handleKey);};var handleKey=function(e){var code=SL.keyCode(e);SL.preventDefault(e);if(code==81||code==88||code==27){SB.close();}else if(code==37){SB.previous();}else if(code==39){SB.next();}else if(code==32){SB[(typeof slide_timer=='number'?'pause':'play')]();}};var toggleLoading=function(on,cb){var loading=SL.get('shadowbox_loading');if(on){loading.style.display='';if(typeof cb=='function')cb();}else{var p=gallery[current].player;var anim=(p=='img'||p=='html');var fn=function(){loading.style.display='none';clearOpacity(loading);if(typeof cb=='function')cb();};if(anim){animate(loading,'opacity',0,options.fadeDuration,fn);}else{fn();}}};var fixTop=function(){SL.get('shadowbox_container').style.top=document.documentElement.scrollTop+'px';};var fixHeight=function(){SL.get('shadowbox_overlay').style.height=SL.getViewportHeight()+'px';};var hasNext=function(){return gallery.length>1&&(current!=gallery.length-1||options.continuous);};var toggleVisible=function(cb){var els,v=(cb)?'hidden':'visible';var hide=['select','object','embed'];for(var i=0;i<hide.length;++i){els=document.getElementsByTagName(hide[i]);for(var j=0,len=els.length;j<len;++j){els[j].style.visibility=v;}}
var so=SL.get('shadowbox_overlay');var sc=SL.get('shadowbox_container');var sb=SL.get('shadowbox');if(cb){SL.setStyle(so,{backgroundColor:options.overlayColor,opacity:0});if(!options.modal)SL.addEvent(so,'click',SB.close);if(ltIE7){fixTop();fixHeight();SL.addEvent(window,'scroll',fixTop);}
sb.style.display='none';sc.style.visibility='visible';animate(so,'opacity',parseFloat(options.overlayOpacity),options.fadeDuration,cb);}else{SL.removeEvent(so,'click',SB.close);if(ltIE7)SL.removeEvent(window,'scroll',fixTop);sb.style.display='none';animate(so,'opacity',0,options.fadeDuration,function(){sc.style.visibility='hidden';sb.style.display='';clearOpacity(so);});}};Shadowbox.init=function(opts){if(initialized)return;if(typeof SB.LANG=='undefined'){SB.raise('No Shadowbox language loaded');return;}
if(typeof SB.SKIN=='undefined'){SB.raise('No Shadowbox skin loaded');return;}
apply(options,opts||{});var markup=SB.SKIN.markup.replace(/\{(\w+)\}/g,function(m,p){return SB.LANG[p];});var bd=document.body||document.documentElement;SL.append(bd,markup);if(ltIE7){SL.setStyle(SL.get('shadowbox_container'),'position','absolute');SL.get('shadowbox_body').style.zoom=1;var png=SB.SKIN.png_fix;if(png&&png.constructor==Array){for(var i=0;i<png.length;++i){var el=SL.get(png[i]);if(el){var match=SL.getStyle(el,'background-image').match(/url\("(.*\.png)"\)/);if(match){SL.setStyle(el,{backgroundImage:'none',filter:'progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src='+match[1]+',sizingMethod=scale);'});}}}}}
for(var e in options.ext){RE[e]=new RegExp('\.('+options.ext[e].join('|')+')\s*$','i');}
var id;SL.addEvent(window,'resize',function(){if(id){clearTimeout(id);id=null;}
id=setTimeout(function(){if(ltIE7)fixHeight();resizeContent();},50);});if(!options.skipSetup)SB.setup();initialized=true;};Shadowbox.loadSkin=function(skin,dir){if(!(/\/$/.test(dir)))dir+='/';skin=dir+skin+'/';document.write('<link rel="stylesheet" type="text/css" href="'+skin+'skin.css">');document.write('<scr'+'ipt type="text/javascript" src="'+skin+'skin.js"><\/script>');};Shadowbox.loadLanguage=function(lang,dir){if(!(/\/$/.test(dir)))dir+='/';document.write('<scr'+'ipt type="text/javascript" src="'+dir+'shadowbox-'+lang+'.js"><\/script>');};Shadowbox.loadPlayer=function(players,dir){if(typeof players=='string')players=[players];if(!(/\/$/.test(dir)))dir+='/';for(var i=0,len=players.length;i<len;++i){document.write('<scr'+'ipt type="text/javascript" src="'+dir+'shadowbox-'+players[i]+'.js"><\/script>');}};Shadowbox.setup=function(links,opts){if(!links){var links=[];var a=document.getElementsByTagName('a'),rel;for(var i=0,len=a.length;i<len;++i){rel=a[i].getAttribute('rel');if(rel&&RE.rel.test(rel))links[links.length]=a[i];}}else if(!links.length){links=[links];}
var link;for(var i=0,len=links.length;i<len;++i){link=links[i];if(typeof link.shadowboxCacheKey=='undefined'){link.shadowboxCacheKey=cache.length;SL.addEvent(link,'click',handleClick);}
cache[link.shadowboxCacheKey]=this.buildCacheObj(link,opts);}};Shadowbox.buildCacheObj=function(link,opts){var href=link.href;var o={el:link,title:link.getAttribute('title'),player:getPlayer(href),options:apply({},opts||{}),content:href};var opt,l_opts=['player','title','height','width','gallery'];for(var i=0,len=l_opts.length;i<len;++i){opt=l_opts[i];if(typeof o.options[opt]!='undefined'){o[opt]=o.options[opt];delete o.options[opt];}}
var rel=link.getAttribute('rel');if(rel){var match=rel.match(RE.gallery);if(match)o.gallery=escape(match[2]);var params=rel.split(';');for(var i=0,len=params.length;i<len;++i){match=params[i].match(RE.param);if(match){if(match[1]=='options'){eval('apply(o.options, '+match[2]+')');}else{o[match[1]]=match[2];}}}}
return o;};Shadowbox.applyOptions=function(opts){if(opts){default_options=apply({},options);options=apply(options,opts);}};Shadowbox.revertOptions=function(){if(default_options){options=default_options;default_options=null;}};Shadowbox.open=function(obj,opts,id){this.revertOptions();if(isLink(obj)){if(typeof obj.shadowboxCacheKey=='undefined'||typeof cache[obj.shadowboxCacheKey]=='undefined'){obj=this.buildCacheObj(obj,opts);}else{obj=cache[obj.shadowboxCacheKey];}}
if(!id){id=0};if(obj.constructor==Array){gallery=obj;current=id;}else{var copy=apply({},obj);if(!obj.gallery){gallery=[copy];current=0;}else{current=null;gallery=[];var ci;for(var i=0,len=cache.length;i<len;++i){ci=cache[i];if(ci.gallery){if(ci.content==obj.content&&ci.gallery==obj.gallery&&ci.title==obj.title){current=gallery.length;}
if(ci.gallery==obj.gallery){gallery.push(apply({},ci));}}}
if(current==null){gallery.unshift(copy);current=0;}}}
obj=gallery[current];if(obj.options||opts){this.applyOptions(apply(apply({},obj.options||{}),opts||{}));}
var match,r;for(var i=0,len=gallery.length;i<len;++i){r=false;if(gallery[i].player=='unsupported'){r=true;}else if(match=RE.unsupported.exec(gallery[i].player)){if(options.handleUnsupported=='link'){gallery[i].player='html';var s,a,oe=options.errors;switch(match[1]){case'qtwmp':s='either';a=[oe.qt.url,oe.qt.name,oe.wmp.url,oe.wmp.name];break;case'qtf4m':s='shared';a=[oe.qt.url,oe.qt.name,oe.f4m.url,oe.f4m.name];break;default:s='single';if(match[1]=='swf'||match[1]=='flv')match[1]='fla';a=[oe[match[1]].url,oe[match[1]].name];}
var msg=SB.LANG.errors[s].replace(/\{(\d+)\}/g,function(m,i){return a[i];});gallery[i].content='<div class="shadowbox_message">'+msg+'</div>';}else{r=true;}}else if(gallery[i].player=='inline'){var match=RE.inline.exec(gallery[i].content);if(match){var el;if(el=SL.get(match[1])){gallery[i].content=el.innerHTML;}else{SB.raise('Cannot find element with id '+match[1]);}}else{SB.raise('Cannot find element id for inline content');}}
if(r){gallery.splice(i,1);if(i<current){--current;}else if(i==current){current=i>0?current-1:i;}
--i;len=gallery.length;}}
if(gallery.length){if(options.onOpen&&typeof options.onOpen=='function'){options.onOpen(obj);}
if(!activated){setDimensions(options.initialHeight,options.initialWidth);adjustHeight(dims.inner_h,dims.top,false);adjustWidth(dims.width,false);toggleVisible(loadContent);}else{loadContent();}
activated=true;}};Shadowbox.change=function(num){if(!gallery)return;if(!gallery[num]){if(!options.continuous){return;}else{num=num<0?(gallery.length-1):0;}}
if(typeof slide_timer=='number'){clearTimeout(slide_timer);slide_timer=null;slide_delay=slide_start=0;}
current=num;if(options.onChange&&typeof options.onChange=='function'){options.onChange(gallery[current]);}
loadContent();};Shadowbox.next=function(){this.change(current+1);};Shadowbox.previous=function(){this.change(current-1);};Shadowbox.play=function(){if(!hasNext())return;if(!slide_delay)slide_delay=options.slideshowDelay*1000;if(slide_delay){slide_start=new Date().getTime();slide_timer=setTimeout(function(){slide_delay=slide_start=0;SB.next();},slide_delay);toggleNav('play',false);toggleNav('pause',true);}};Shadowbox.pause=function(){if(typeof slide_timer=='number'){var time=new Date().getTime();slide_delay=Math.max(0,slide_delay-(time-slide_start));if(slide_delay){clearTimeout(slide_timer);slide_timer='paused';}
toggleNav('pause',false);toggleNav('play',true);}};Shadowbox.close=function(){if(!activated)return;listenKeys(false);toggleVisible(false);if(content){content.remove();content=null;}
if(typeof slide_timer=='number')clearTimeout(slide_timer);slide_timer=null;slide_delay=0;if(options.onClose&&typeof options.onClose=='function'){options.onClose(gallery[current]);}
activated=false;};Shadowbox.clearCache=function(){var i=cache.length;while(i--){if(cache[i].el){SL.removeEvent(cache[i].el,'click',handleClick);try{delete cache[i].el.shadowboxCacheKey;}catch(e){if(cache[i].el.removeAttribute){cache[i].el.removeAttribute('shadowboxCacheKey');}}}}
cache=[];};Shadowbox.getPlugins=function(){return plugins;};Shadowbox.getOptions=function(){return options;};Shadowbox.getCurrent=function(){return gallery[current];};Shadowbox.getVersion=function(){return version;};Shadowbox.getClient=function(){return client;};Shadowbox.getContent=function(){return content;};Shadowbox.getDimensions=function(){return dims;};Shadowbox.raise=function(e){if(typeof options.handleException=='function'){options.handleException(e);}else{throw e;}};})();


addEvent(window,"load",sortables_init);var SORT_COLUMN_INDEX;function sortables_init(){if(!document.getElementsByTagName)return;tbls=document.getElementsByTagName("table");for(ti=0;ti<tbls.length;ti++){thisTbl=tbls[ti];if(((' '+thisTbl.className+' ').indexOf("sortable")!=-1)&&(thisTbl.id)){ts_makeSortable(thisTbl);}}}
function ts_makeSortable(table){if(table.rows&&table.rows.length>0){var firstRow=table.rows[0];}
if(!firstRow)return;for(var i=1;i<firstRow.cells.length;i++){var cell=firstRow.cells[i];var txt=ts_getInnerText(cell);cell.innerHTML='<a href="#"  '+'onclick="ts_resortTable(this, '+i+');return false;">'+
txt+'<span class="sortarrow">&nbsp;&nbsp;&nbsp;</span></a>';}}
function ts_getInnerText(el){if(typeof el=="string")return el;if(typeof el=="undefined"){return el};if(el.innerText)return el.innerText;var str="";var cs=el.childNodes;var l=cs.length;for(var i=0;i<l;i++){switch(cs[i].nodeType){case 1:str+=ts_getInnerText(cs[i]);break;case 3:str+=cs[i].nodeValue;break;}}
return str;}
function ts_resortTable(lnk,clid){var span;for(var ci=0;ci<lnk.childNodes.length;ci++){if(lnk.childNodes[ci].tagName&&lnk.childNodes[ci].tagName.toLowerCase()=='span')span=lnk.childNodes[ci];}
var spantext=ts_getInnerText(span);var td=lnk.parentNode;var column=clid||td.cellIndex;var table=getParent(td,'TABLE');if(table.rows.length<=1)return;var itm=ts_getInnerText(table.rows[1].cells[column]);sortfn=ts_sort_caseinsensitive;if(itm.match(/^\d\d[\/-]\d\d[\/-]\d\d\d\d$/))sortfn=ts_sort_date;if(itm.match(/^\d\d[\/-]\d\d[\/-]\d\d$/))sortfn=ts_sort_date;if(itm.match(/^[£$]/))sortfn=ts_sort_currency;if(itm.match(/^[\d\.]+$/))sortfn=ts_sort_numeric;SORT_COLUMN_INDEX=column;var firstRow=new Array();var newRows=new Array();for(i=0;i<table.rows[0].length;i++){firstRow[i]=table.rows[0][i];}
for(j=1;j<table.rows.length;j++){newRows[j-1]=table.rows[j];}
newRows.sort(sortfn);if(span.getAttribute("sortdir")=='down'){ARROW='&nbsp;&nbsp;&uarr;';newRows.reverse();span.setAttribute('sortdir','up');}else{ARROW='&nbsp;&nbsp;&darr;';span.setAttribute('sortdir','down');}
for(i=0;i<newRows.length;i++)
{if(!newRows[i].className||(newRows[i].className&&(newRows[i].className.indexOf('sortbottom')==-1)))
{table.tBodies[0].appendChild(newRows[i]);}}
for(i=0;i<newRows.length;i++)
{if(newRows[i].className&&(newRows[i].className.indexOf('sortbottom')!=-1))
{table.tBodies[0].appendChild(newRows[i]);}}
var allspans=document.getElementsByTagName("span");for(var ci=0;ci<allspans.length;ci++){if(allspans[ci].className=='sortarrow'){if(getParent(allspans[ci],"table")==getParent(lnk,"table")){allspans[ci].innerHTML='&nbsp;&nbsp;&nbsp;';}}}
span.innerHTML=ARROW;for(i=1;i<table.rows.length;i++)
{table.rows[i].cells[0].innerText=i;}}
function getParent(el,pTagName){if(el==null)return null;else if(el.nodeType==1&&el.tagName.toLowerCase()==pTagName.toLowerCase())
return el;else
return getParent(el.parentNode,pTagName);}
function ts_sort_date(a,b){aa=ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);bb=ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);if(aa.length==10){dt1=aa.substr(6,4)+aa.substr(3,2)+aa.substr(0,2);}else{yr=aa.substr(6,2);if(parseInt(yr)<50){yr='20'+yr;}else{yr='19'+yr;}
dt1=yr+aa.substr(3,2)+aa.substr(0,2);}
if(bb.length==10){dt2=bb.substr(6,4)+bb.substr(3,2)+bb.substr(0,2);}else{yr=bb.substr(6,2);if(parseInt(yr)<50){yr='20'+yr;}else{yr='19'+yr;}
dt2=yr+bb.substr(3,2)+bb.substr(0,2);}
if(dt1==dt2)return 0;if(dt1<dt2)return-1;return 1;}
function ts_sort_currency(a,b){aa=ts_getInnerText(a.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');bb=ts_getInnerText(b.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');return parseFloat(aa)-parseFloat(bb);}
function ts_sort_numeric(a,b){aa=parseFloat(ts_getInnerText(a.cells[SORT_COLUMN_INDEX]));if(isNaN(aa))aa=0;bb=parseFloat(ts_getInnerText(b.cells[SORT_COLUMN_INDEX]));if(isNaN(bb))bb=0;return aa-bb;}
function ts_sort_caseinsensitive(a,b){aa=ts_getInnerText(a.cells[SORT_COLUMN_INDEX]).toLowerCase();bb=ts_getInnerText(b.cells[SORT_COLUMN_INDEX]).toLowerCase();if(aa==bb)return 0;if(aa<bb)return-1;return 1;}
function ts_sort_default(a,b){aa=ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);bb=ts_getInnerText(b.cells[SORT_COLUMN_INDEX]);if(aa==bb)return 0;if(aa<bb)return-1;return 1;}
function addEvent(elm,evType,fn,useCapture)
{if(elm.addEventListener){elm.addEventListener(evType,fn,useCapture);return true;}else if(elm.attachEvent){var r=elm.attachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}





function PopupImage(img){w=open("",'image','width=600,height=630,toolbar=no,scrollbars=no,resizable=yes');w.document.write("<HTML><HEAD><TITLE>Zoom</TITLE><link href=style.css rel=stylesheet type='text/css'></HEAD>");w.document.write("");w.document.write("<BODY  leftMargin=0 topMargin=0 marginwidth=0 marginheight=0 background=images/bg_chargement.gif><IMG src='"+img+"' border=0  onclick='self.close();'><br /><div align='center'><a href='#' align='center' onclick='self.close();'>Fermer la fenêtre</a></div>");w.document.write("</BODY></HTML>");w.document.close();}
function EcrireCookie(nom,valeur)
{var argv=EcrireCookie.arguments;var argc=EcrireCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;document.cookie=nom+"="+escape(valeur)+
((expires==null)?"":("; expires="+expires.toGMTString()))+
((path==null)?"":("; path="+path))+
((domain==null)?"":("; domain="+domain))+
((secure==true)?"; secure":"");}
function close_fiche_conseil()
{if(opener.document.getElementById('lienTop')!=null)
window.close();else
document.location.href='/';}
function affiche_produit(id_div,id_produit,positionDiv)
{
//alert(isMSIE +' '+navigatorVersion);
if(isMSIE && navigatorVersion==6) {
    //alert('POS'+positionDiv); 
    document.location.href=$('#titreProduit'+positionDiv+' a').attr('href');
}
for(i=1;i<=12;i++)
{if(document.getElementById('divProduit'+i)!=null)
{document.getElementById('divProduit'+i).style.display="none";document.getElementById('divProduit'+i).style.visibility="hidden";}}
if(id_div>0)
{if(document.getElementById('divProduit')!=null)
{document.getElementById('divProduit').style.display="none";document.getElementById('divProduit').style.visibility="hidden";}
if(document.getElementById('divProduit'+id_div)!=null)
{document.getElementById('divProduit'+id_div).style.display="block";document.getElementById('divProduit'+id_div).style.visibility="visible";compteVuAjaxProduit(id_produit);}
else
{afficheAjaxProduit(id_produit);if(document.getElementById('divProduit')!=null)
{document.getElementById('divProduit').style.display="block";document.getElementById('divProduit').style.visibility="visible";}}}
else
{afficheAjaxProduit(id_produit);if(document.getElementById('divProduit')!=null)
{document.getElementById('divProduit').style.display="block";document.getElementById('divProduit').style.visibility="visible";}}
document.getElementById('lienTop').focus();}
function affiche_news(id_div,id_news)
{for(i=1;i<=12;i++)
{if(document.getElementById('divProduit'+i)!=null)
{document.getElementById('divProduit'+i).style.display="none";document.getElementById('divProduit'+i).style.visibility="hidden";}}
if(id_div>0)
{if(document.getElementById('divProduit')!=null)
{document.getElementById('divProduit').style.display="none";document.getElementById('divProduit').style.visibility="hidden";}
if(document.getElementById('divProduit'+id_div)!=null)
{document.getElementById('divProduit'+id_div).style.display="block";document.getElementById('divProduit'+id_div).style.visibility="visible";}
else
{afficheNewsProduit(id_news);if(document.getElementById('divProduit')!=null)
{document.getElementById('divProduit').style.display="block";document.getElementById('divProduit').style.visibility="visible";}}}
else
{afficheNewsProduit(id_news);if(document.getElementById('divProduit')!=null)
{document.getElementById('divProduit').style.display="block";document.getElementById('divProduit').style.visibility="visible";}}
document.getElementById('lienTop').focus();}
function cache(id_div,mode)
{if(mode=="visu")
{if(document.getElementById(id_div).style.visibility=="hidden")
{document.getElementById(id_div).style.visibility="visible";document.getElementById(id_div).style.display="block";}
else
{document.getElementById(id_div).style.visibility="hidden";document.getElementById(id_div).style.display="none";}}
else
{if(document.getElementById(id_div).style.visibility=="visible")
{document.getElementById(id_div).style.visibility="hidden";document.getElementById(id_div).style.display="none";}
else
{document.getElementById(id_div).style.visibility="visible";document.getElementById(id_div).style.display="block";}}}
function AjouterFavoris(){if(navigator.appName!='Microsoft Internet Explorer'){window.sidebar.addPanel("Espace Aubade","http://www.espace-aubade.fr/","");}
else{window.external.AddFavorite("http://www.espace-aubade.fr/","Espace Aubade");}}
function selectionnerVilleAP(li) {
document.getElementById("cpAP").value = li.extra[1];
document.getElementById("insee2").value = li.extra[2];
}
function selectionnerVille(li) {
//alert(li.extra[0]);
document.getElementById("recherche").value = li.extra[0];
rechercheAjaxMagasins();
}
function champsok_formulaire() {

	if(!$("#nom").val().length) {
		alert("Merci de remplir votre nom, svp.");
		$('#nom').focus();
		return false;
	} else if(!$("#email").val().length) {
		alert("Merci de remplir votre email, svp.");
		$('#email').focus();
		return false;
	} else if(!$("#commentaire").val().length) {
		alert("Merci de remplir votre commentaire, svp.");
		$('#commentaire').focus();
		return false;
	}
	return true;
}

