overtureLoaded = false;function openContextualLink(url){ window.open(url,'context','');}function URLencode(sStr) { return escape(sStr).replace(/\+/g, '%2C').replace(/\"/g,'%22').replace(/\'/g, '%27');}function HTMLencode(sStr) { return sStr.replace(/\"/g,'&quot;').replace(/\'/g, '&#39;');}function HTMLencode2(sStr) { return sStr.replace(/\"/g,'&quot;').replace(/\'/g, '\\\'');}actions = new Array();function HTMLcontainer(){ this.innerHTML = ""; this.commit = commitHTML;}function commitHTML(obj){ obj.innerHTML += this.innerHTML;} function actionBoxGroup(marginTop,title,image,width,imgWidth,imgHeight,bgcolor,url){ this.marginTop = marginTop; this.actionBoxes = new Array(); this.addActionBox = addActionBox; this.show = showActionGroup; this.idx = actions.length; actions[actions.length] = this; this.title = title; this.image = image; this.imgWidth = imgWidth; this.imgHeight = imgHeight; this.bgcolor = bgcolor; this.url = url; if (width) this.width = width; else this.width = 152; }function addActionBox(o){ this.actionBoxes[this.actionBoxes.length] = o;}function showActionGroup(el){ oHTML = "<table width='"+this.width+"' cellspacing='0' cellpadding='4' style='border-left:1px solid #006;border-top:1px solid #006;"+((this.actionBoxes.length>0)?"border-bottom:1px solid #006;":"")+"border-right:1px solid #006;margin-top:" + this.marginTop + "px' id='ac"+this.idx+"'>"; if ((this.title)&&(this.title != "")) oHTML += "<tr>"+ ((this.image != "") ? "<td align=center style='padding:2px;border-bottom:1px solid #006;background-color:"+this.bgcolor+"' width=23><img src='"+this.image+"' " + ((!isNaN(this.imgWidth))?"width="+this.imgWidth:"") + " " + ((!isNaN(this.imgHeight))?"height="+this.imgHeight:"") + "></td>" : "") + "<td style='padding:4px;border-bottom:1px solid #006;background-color:"+this.bgcolor+"' " + ((this.image == "") ? "colspan=2" : "width=" + (this.width-23)) + ">"+((this.url != "") ? "<a href='"+this.url+"'>" : "")+"<b>"+this.title+"</b>"+((this.url != "") ? "</a>" : "")+"</td></tr>"; j = 0; while (j < this.actionBoxes.length) { if (this.actionBoxes[j].picto != "") oHTML += "<tr id=row"+this.idx+""+j+" style='position:relative;cursor:hand' onmouseover='showMore("+this.idx+","+j+")' onmouseout='showLess("+this.idx+","+j+")'>"; else oHTML += "<tr id=row"+this.idx+""+j+">"; oHTML += "<td bgcolor='#FFFFFF' id=cell"+this.idx+""+j+"1 style='padding-left:15px'>" + ((this.actionBoxes[j].action != "") ? ("<a href=\"#\" onclick=\""+this.actionBoxes[j].action +"\">") : "") + this.actionBoxes[j].title + ((this.actionBoxes[j].action != "") ? ("</a>") : "") + "</td></tr>"; j++; } oHTML += "</table>"; el.innerHTML += oHTML;}function actionBox(title,picto,act,imgWidth,imgHeight){ this.picto = picto; this.title = title; this.action = act; this.elements = new Array(); this.addElement = addElement; this.customElement = ""; this.imgWidth = imgWidth; this.imgHeight = imgHeight;}function action(title,dest){ this.title = title; this.dest = dest;}function addElement(title,dest){ this.elements[this.elements.length] = new action(title,dest);}activeCustomEl = -1;activeCat = -1;function hideBrands() {}divs = new Array();hideAble = true;function hideBrands(){ if (hideAble) { j = 0; while (j < divs.length) { document.body.removeChild(divs[j]); j++; } divs = new Array(); activeCat = -1; if (activeCustomEl != -1) {activeCustomEl.style.display = "none"; activeCustomEl = -1}; }}function findPosition( oLink ) { if( oLink.offsetParent ) { for( var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent ) { posX += oLink.offsetLeft; posY += oLink.offsetTop; } return [ posX, posY ]; } else { return [ oLink.x, oLink.y ]; }}function showMore(idxGrp,idxAct){ if (activeCat != -1) hideBrands(); activeCat = idxGrp+""+idxAct; hideAble = false; document.getElementById("cell"+idxGrp+""+idxAct+"1").bgColor = "#B5CBE1"; if (actions[idxGrp].actionBoxes[idxAct].customElement != "") { t = findPosition(document.getElementById("row"+idxGrp+""+idxAct))[1] ; l = findPosition(document.getElementById("row"+idxGrp+""+idxAct))[0] + actions[idxGrp].width - 3; actions[idxGrp].actionBoxes[idxAct].customElement.style.top = t; actions[idxGrp].actionBoxes[idxAct].customElement.style.left = l; actions[idxGrp].actionBoxes[idxAct].customElement.style.display = ""; activeCustomEl = actions[idxGrp].actionBoxes[idxAct].customElement; } else if (actions[idxGrp].actionBoxes[idxAct].elements.length > 0 ) { t = findPosition(document.getElementById("row"+idxGrp+""+idxAct))[1] ; l = findPosition(document.getElementById("row"+idxGrp+""+idxAct))[0] - 3 - 150; bgBrand = document.createElement("DIV"); bgBrand.id = "dBrandBG" + idxGrp + "" + idxAct; bgBrand.className = "noprint"; bgBrand.style.position = "absolute"; bgBrand.style.zIndex = 165; bgBrand.style.top = t; bgBrand.style.left = l; bgBrand.style.display = "none"; bgBrand.style.backgroundColor = "#ffffff"; divs[divs.length] = document.body.appendChild(bgBrand); dBrand = document.createElement("DIV"); dBrand.id = "dBrand"; dBrand.className = "noprint"; dBrand.id = "dbr" + idxGrp + "" + idxAct; dBrand.style.position = "absolute"; dBrand.style.zIndex = 166; dBrand.style.top = t; dBrand.style.left = l; if (!document.all) dBrand.style.backgroundColor = "#ffffff"; dBrand.style.display = "none"; divs[divs.length] = document.body.appendChild(dBrand); iHTML = "<table width=150 cellpadding=5 cellspacing=0 style='border:1px solid #006;' onmouseover='hideAble = false;' onmouseout='showLess("+idxGrp+","+idxAct+")'>"; i = 0; while (i < actions[idxGrp].actionBoxes[idxAct].elements.length) { iHTML += "<tr><td><a href='"+actions[idxGrp].actionBoxes[idxAct].elements[i].dest+"'>"+actions[idxGrp].actionBoxes[idxAct].elements[i].title+"</a></td></tr>"; i++; } iHTML += "</table>"; dBrand.innerHTML = iHTML; dBrand.style.display = ""; bgBrand.style.height = dBrand.clientHeight; bgBrand.style.width = dBrand.clientWidth; bgBrand.style.display = ""; }}function showLess(idxGrp,idxAct){ document.getElementById("cell"+idxGrp+""+idxAct+"1").bgColor = "#FFFFFF"; hideAble = true; setTimeout("hideBrands()",500);}