
var myWindow;
function newWindow(url, w, h) {
	param3 = "width=" + w + ",height=" + h + ",toolbar=1,scrollbars=1,resizable=1,status=1,menubar=1,directories=1,location=1";
	myWindow = window.open(url, "ext_link1", param3);
	myWindow.focus();
    }

var extWindow;
    function photoWindow(url, w, h) {
        if (!url)
            url = "http://www.intercaspian.com";

        if ( !w)
            w = "640";

        if (!h)
            h = "440";

//      param3 = "width=" + w + ",height=" + h + ",toolbar=1,scrollbars=1,resizable=1,status=1,menubar=1,directories=1,location=1,navigation=1";
        param3 = "width=" + w + ",height=" + h + "status=1, scrollbars=1";
        extWindow = window.open(url, "ext_link1", param3);
        w2 = new Number(w);
        h2 = new Number(h);
        extWindow.resizeTo(w2 + 5, h2 + 40);
        extWindow.focus();
    }


function popupMail(n, a, d) {  

// SET MESSAGE VALUES
//var to = "person@company.com";

var to = n + '@' + a + '.' + d ;


var doc = "mailto:" + to ; 
window.location = doc;
}



function rollover() {
  if (!document.getElementById) return
  var imgOrSrc;
  var imgPreload = new Array();
  var images = document.getElementsByTagName('img');
  for (var i = 0; i < images.length; i++) {
    if (images[i].getAttribute('rsrc')) {
      imgPreload[i] = new Image();
      imgPreload[i].src = images[i].getAttribute('rsrc');
      images[i].onmouseover = function() {
       imgOrSrc = this.getAttribute('src');
        this.setAttribute('src',this.getAttribute('rsrc'))
      }
      images[i].onmouseout = function() {
        this.setAttribute('src',imgOrSrc)
      }
    }
  }
}



e240=new Image()
e240.src="./images/mbut_home.jpg"
e593=new Image()
e593.src="./images/mbut_homea.jpg"

function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}



function filter1(imagename,objectsrc){

clip=new Image()
clip.src="/retour-de-la-chasse/images/" + imagename + ".jpg"

doc=new Image()
doc.src="/retour-de-la-chasse/images/" + objectsrc + ".jpg"

if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}


