function showJobs(arrResult){var arrJobs = arrResult.arrJobs;var sPartnerType = arrResult.sPartnerType;if(sPartnerType === 'partner'){if(!document.getElementById('jobillico-link-propulsed') || !document.getElementById('jobillico-img-propulsed') || !document.getElementById('jobillico-link-propulsed').hasAttribute('href') || document.getElementById('jobillico-link-propulsed').getAttribute('href') !== 'https://www.jobillico.com' || !document.getElementById('jobillico-img-propulsed').hasAttribute('src') || !document.getElementById('jobillico-img-propulsed').hasAttribute('alt') || !document.getElementById('jobillico-img-propulsed').hasAttribute('title')){var sNode = '<p>Il manque des éléments HTML à votre balise Jobillico.</p>';document.getElementById('jobillico-widget').innerHTML=sNode;}else if((document.getElementById('jobillico-img-propulsed').getAttribute('alt') !== 'Powered by Jobillico' || document.getElementById('jobillico-img-propulsed').getAttribute('title') !== 'Powered by Jobillico' || document.getElementById('jobillico-img-propulsed').getAttribute('src') !== 'https://www.jobillico.com/images/widget/poweredBy-EN.png') && (document.getElementById('jobillico-img-propulsed').getAttribute('alt') !== 'Propulsé par Jobillico' || document.getElementById('jobillico-img-propulsed').getAttribute('title') !== 'Propulsé par Jobillico' || document.getElementById('jobillico-img-propulsed').getAttribute('src') !== 'https://www.jobillico.com/images/widget/poweredBy-FR.png')){var sNode = '<p>Il manque des éléments HTML à votre balise Jobillico.</p>';document.getElementById('jobillico-widget').innerHTML=sNode;}else{var anchorToAppend = document.getElementById('jobillico-link-propulsed');anchorToAppend.innerHTML = '';anchorToAppend.setAttribute('target', '_blank');var imgNode = document.createElement('img');imgNode.setAttribute('id', 'jobillico-img-propulsed');imgNode.src = 'https://www.jobillico.com/images/widget/poweredBy-FR-new.png';imgNode.setAttribute('alt', 'Propulsé par Jobillico');imgNode.setAttribute('height', '42px');imgNode.setAttribute('width', '202px');imgNode.setAttribute('title', 'Propulsé par Jobillico');anchorToAppend.appendChild(imgNode);var sNode = arrJobs.join('');document.getElementById('jobillico-widget').innerHTML=sNode;}}else{if(!document.getElementById('jobillico-propulsed')){var referenceDiv = document.getElementById('jobillico-widget');var newDiv = document.createElement('div');newDiv.setAttribute('id', 'jobillico-propulsed');referenceDiv.parentNode.insertBefore(newDiv, referenceDiv.nextSibling);var jobillicoLink = document.createElement('a');jobillicoLink.style.cssText = 'margin:15px; color:#64c434; font-family: Helvetica;';jobillicoLink.setAttribute('href', 'https://www.jobillico.com');jobillicoLink.setAttribute('target', '_blank');jobillicoLink.setAttribute('id', 'jobillico-link-propulsed');newDiv.appendChild(jobillicoLink);}else if(document.getElementById('jobillico-propulsed') && !document.getElementById('jobillico-link-propulsed')){var referenceDiv = document.getElementById('jobillico-propulsed');var jobillicoLink = document.createElement('a');jobillicoLink.style.cssText = 'margin:15px; color:#64c434; font-family: Helvetica;';jobillicoLink.setAttribute('href', 'https://www.jobillico.com');jobillicoLink.setAttribute('target', '_blank');jobillicoLink.setAttribute('id', 'jobillico-link-propulsed');referenceDiv.appendChild(jobillicoLink);}else if(document.getElementById('jobillico-link-propulsed') && !document.getElementById('jobillico-link-propulsed').getAttribute('href') || document.getElementById('jobillico-link-propulsed').getAttribute('href') !== 'https://www.jobillico.com'){document.getElementById('jobillico-link-propulsed').setAttribute('href', 'https://www.jobillico.com');document.getElementById('jobillico-link-propulsed').setAttribute('target', '_blank');}var anchorToAppend = document.getElementById('jobillico-link-propulsed');anchorToAppend.innerHTML = '';var imgNode = document.createElement('img');imgNode.setAttribute('id', 'jobillico-img-propulsed');imgNode.src = 'https://www.jobillico.com/images/widget/poweredBy-FR.png';imgNode.setAttribute('alt', 'Propulsé par Jobillico');imgNode.setAttribute('height', '42px');imgNode.setAttribute('width', '202px');imgNode.setAttribute('title', 'Propulsé par Jobillico');anchorToAppend.appendChild(imgNode);var sNode = arrJobs.join('');document.getElementById('jobillico-widget').innerHTML=sNode;}}function initJQuery(){
                                window.scriptJQ = null;
                                
                                if(typeof jQuery == 'undefined')
                                {
                                    //console.log('jquery va être loadé');
                                    window.scriptJQ = document.createElement('script'); window.scriptJQ.type = 'text/javascript';
                                    window.scriptJQ.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js';
                                    var head = document.getElementsByTagName('head')[0];
                                    window.scriptJQ.onload = window.scriptJQ.onreadystatechange = function()
                                    {
                                        if(!this.readyState
                                           ||
                                                ( this.readyState === 'loaded' || this.readyState === 'complete')
                                        )
                                        {
                                            window.scriptJQ.onload = window.scriptJQ.onreadystatechange = null;
                                            if(typeof $ == 'function')
                                            {
                                                //console.log('autre script utilisant le $');
                                                jQuery = jQuery.noConflict();
                                            }
                                            else
                                            {
                                                //console.log('aucun autre script utilisant le $');
                                            }
                                            head.removeChild(window.scriptJQ);
                                            initWidget(1);
                                        }
                                    };
                                    head.appendChild(window.scriptJQ);
                                }
                                else
                                {
                                    //console.log('jquery deja loadé');
                                    if(typeof $ == 'function')
                                    {
                                        //console.log('autre script utilisant le $');
                                    }
                                    else
                                    {
                                        //console.log('aucun autre script utilisant le $');
                                    }
                                    initWidget(1);
                                }
                         }function initWidget(iNoPage){ var oDiv = document.getElementById('jobillico-widget');if(!oDiv){    oDiv = null;    if(document.readyState !== 'complete'){    setTimeout(initWidget,500,iNoPage);    }    return;}oDiv.innerHTML='';oDiv = null;jQuery.ajax({type: 'GET',url: 'https://www.jobillico.com/widget/recupWidget/'+iNoPage,dataType: 'jsonp',jsonp: false,jsonpCallback: 'showJobs',data: {sKey: '',sLocation: ''+window.location.hostname,sSwitch: 'switch'},success: function(data){if(data.bSuccess){}},error: function(jqXHR, sStatus, sError){}});}function openJob(objJS){ document.getElementById('jobi-expandOffer').innerHTML=objJS.nextSibling.nextSibling.innerHTML;document.getElementById('jobi-jobs-list').style.display='none';document.getElementById('jobi-paginate-widget').style.display='none';}function returnListJobs(objJS){ document.getElementById('jobi-expandOffer').innerHTML='';document.getElementById('jobi-jobs-list').style.display='';document.getElementById('jobi-paginate-widget').style.display='';}var arrStyleLoaded=document.getElementsByTagName('link');var bCssPresent=false;for(var i=arrStyleLoaded.length-1;i>=0;i--){if(arrStyleLoaded[i].href.toLowerCase().indexOf('jobillico-widget.css')!=-1){bCssPresent=true;break;}}arrStyleLoaded=null;if(!bCssPresent){var linkCSS = document.createElement('link'); linkCSS.type = 'text/css';linkCSS.rel='stylesheet';linkCSS.media='screen';linkCSS.href = 'https://www.jobillico.com/css/jobillico-widget.css';var s = document.getElementsByTagName('head')[0]; s.appendChild(linkCSS);}setTimeout(initJQuery,1000);