<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
/* search script */
function _mSearch(){
    fl=true;f=document.forms['_mFind'];
    if(fl==true&&f._mKeyWord.value==''){alert('Please precise a keyword !');fl=false;}
    if(fl==true&&f._mService.value==''){alert('Please select a product !');fl=false;}
    if(fl==true){
        if (f._mService.value == '/logocoulani.php') {
            var base = document.mpCont.location+'';var t1 = base.indexOf('page=');var t2 = base.indexOf('&cat=');
            if (t1 > -1) {tp1 = base.substring(0, t1);tp2 = base.substring(t2);mod = tp1+'page=0'+tp2;}
            var ti = mod.indexOf('k=');
            if (ti > -1) {tu = mod.substring(0,ti-1)+'&k='+f._mKeyWord.value;} else {tu = mod+'&k='+f._mKeyWord.value;}
            document.mpCont.location = tu;
        } else {loc = f._mService.value+'?k='+f._mKeyWord.value;self.location = loc;}
    }
}
function _mKp() { if (window.event.keyCode == 13) { _mSearch(); } return false; }
/* misc */
function winclo() {
    //window.open('popup_pub/fin_ete.htm','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=432, height=385, left=0, top=0');
}
function jsOpenhWnd(u){p="height=660,width=380,toolbar=no,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no";hWnd=window.open(u,"Hwnd",p);hWnd.focus();}
function popupnewsletter(t){
    window.open("popup_newsletter.php", t, "width=349,height=193,resizable=no,scrollbars=no");
    return true;
}

function changeIt(newImg,Img) {
if (newImg.charAt(0) != 'h') {
ImgSrc = 'http://olympusc5050z.dmbrown.co.uk/all_alone.jpg';
}
    document.images[Img].src = newImg;
    }
	
function chTdColor(o, sens) {
    if(o) {
        if(sens == 1) {
            o.style.background = '#A54A00';
            o.style.color = '#FFFFFF';
            o.style.cursor = 'pointer';
        }else{
            o.style.background = '#BBABA1';
            o.style.color = '#FFFFFF';
            o.style.cursor = 'normal';
        }
    }
}