// rollover script for navigation buttons

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) { //v3.0
  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); 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];}
}



// end of rollover script
function newWindParam()
	{
	var newStuff=window.open("bye.html");
	}
	
function fillFrame(ch_no)
	{
	var myCh;
	var channel = new Array();
		 
	channel[0]="history.html"
	channel[1]="mission.html"
	channel[2]="partners.html"
	channel[3]="howto.html"
	channel[4]="contact.html"
	
	myCh=ch_no;
	
	/*channel[2]=""
	channel[3]=""
	channel[4]=""*/
	parent.right.location=channel[myCh];
	//parent.right.title="Hello";
	}
	
// function not used
/*function closeMe()
	{
	var newWind;
	
	newWind=window.open("http://127.0.0.1/meridianacanada/index.html", "");
	
	}*/
	
function homePage()
	{
	parent.location="../index.html";
	}	
	
function comment_php()
	{
	parent.right.location="contact.php";
	}	

function pop1()
	{
	var newStuff=window.open("commode.html" , "", "height=593 , width=651, top=50, left=75");
	}

function pop2()
	{
	var newStuff=window.open("wispa.html" , "", "height=700 , width=708, top=50, left=75");
	}

function pop3()
	{
	var newStuff=window.open("wet.html" , "", "height=590 , width=407, top=50, left=75");
	}
	
function wispa_mobile()
	{
	var newStuff=window.open("wispa_mobile.html" , "", "height=721 , width=720, top=50, left=75");
	}

function wispa_detail()
	{
	var newStuff=window.open("wispa_detail.html" , "", "height=634 , width=700, top=50, left=75");
	}
	
function pop_e_pmill()
	{
	var newStuff=window.open("popup_pmill.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}	

function pop_f_pmill()
	{
	var newStuff=window.open("popup_f_pmill.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}	

function pop_e_pvc()
	{
	var newStuff=window.open("popup_pvc.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}	
	
function pop_e_rotolo()
	{
	var newStuff=window.open("popup_rotolo.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}

function pop_f_rotolo()
	{
	var newStuff=window.open("popup_f_rotolo.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}

function pop_f_pvc()
	{
	var newStuff=window.open("popup_pvc_f.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}	
	
function pop_rotolo()
	{
	var newStuff=window.open("popup_rotolo.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}

function pop_villa()
	{
	var newStuff=window.open("villa.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}
	
function pop_f_villa()
	{
	var newStuff=window.open("villa_f_w.html" , "", "height=478 , width=826, scrollbars, status, top=50, left=75");
	}	
	
function pop_map_e()
	{
	var newStuff=window.open("http://www.mapquest.com/maps/map.adp?country=US&countryid=250&addtohistory=&searchtab=address&searchtype=address&address=4500+Kimber&city=Saint-Hubert&state=qc&zipcode=J3Y+8K5&search=++Search++" , "", "height=500 , width=600, top=50, left=75, scrollbars, resizable");
	}

function pop_map_f()
	{
	var newStuff=window.open("http://www.mapquest.com/maps/map.adp?country=US&countryid=250&addtohistory=&searchtab=address&searchtype=address&address=4500+Kimber&city=Saint-Hubert&state=qc&zipcode=J3Y+8K5&search=++Search++" , "", "height=500 , width=600, top=50, left=75, scrollbars, resizable");
	}
	
function wclose()
	{
	parent.close();
	}	

function mapclose()
	{
	self.close();
	}		
	
function 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=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 findObj(n, d) { //v3.0
  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=findObj(n,d.layers[i].document); return x;
}

function nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

//  fuction fade images - salas
FadeObjects = new Object();
FadeTimers = new Object();

function Fade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  
        setTimeout("Fade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
        
    clearTimeout(FadeTimers[object.sourceIndex]);
    
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;

    if (object.filters.alpha.opacity != destOp){
        FadeObjects[object.sourceIndex]=object;
        FadeTimers[object.sourceIndex]=setTimeout("Fade(FadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}

function rec1()
	{
	var newStuff=window.open("1.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}

function rec2()
	{
	var newStuff=window.open("2.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec3()
	{
	var newStuff=window.open("3.html" , "", "height=600, width=800 top=50, left=50, scrollbars, resizable");
	
	}
	
function rec4()
	{
	var newStuff=window.open("4.html" , "", "height=600, width=800 top=50, left=5, scrollbars, resizable");
	
	}
	
function rec5()
	{
	var newStuff=window.open("5.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	
	}
	
function rec6()
	{
	var newStuff=window.open("6.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec7()
	{
	var newStuff=window.open("7.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec8()
	{
	var newStuff=window.open("8.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec9()
	{
	var newStuff=window.open("9.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec10()
	{
	var newStuff=window.open("10.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}	
	
	function rec11()
	{
	var newStuff=window.open("11.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}

function rec12()
	{
	var newStuff=window.open("12.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec13()
	{
	var newStuff=window.open("13.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec14()
	{
	var newStuff=window.open("14.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec15()
	{
	var newStuff=window.open("15.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec16()
	{
	var newStuff=window.open("16.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec17()
	{
	var newStuff=window.open("17.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec18()
	{
	var newStuff=window.open("18.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec19()
	{
	var newStuff=window.open("19.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec20()
	{
	var newStuff=window.open("20.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}	
		
function rec21()
	{
	var newStuff=window.open("21.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}
	
function rec22()
	{
	var newStuff=window.open("22.html" , "", "height=600, width=800 top=5, left=5, scrollbars, resizable");
	
	}