function openVideo(url,width,height) {
	var divID = 'videoID';
	var div = document.getElementById(divID);
	if (!div) {
		div = document.createElement('div');
		div.id = divID;
		div.style.position='absolute';
		div.style.top=0;
		div.style.bottom=0;
		div.style.left=0
		div.style.right=0;
		div.style.width="100%";
		div.style.height="100%";
		div.style.textAlign = "center";
		div.style.zIndex = 2000;

		var browserWidth = document.body && document.body.offsetWidth ? document.body.offsetWidth : window.innerWidth;
		var endWidth = +(browserWidth * 80/100).toFixed(0);
		var endHeight = +(endWidth * height / width).toFixed(0);

		var allHeight = endHeight + 30;
		var innerDiv = document.createElement('div');
		innerDiv.className = 'innerDiv';
		innerDiv.style.backgroundColor = 'white';
		innerDiv.style.width = (endWidth + 20) + 'px';
		innerDiv.style.margin="0 auto";
		innerDiv.style.top="50%";
		innerDiv.style.position='relative';
		innerDiv.style.marginTop='-' + (allHeight/2).toFixed(0) + 'px';
		// create iframe
		var iframe = document.createElement('iframe');
		iframe.src = url;
		iframe.style.width = endWidth + 'px';
		iframe.style.height = endHeight+ 'px';
		innerDiv.appendChild(iframe);

		var closeDiv = document.createElement('div');
		closeDiv.onclick = function() { var div = document.getElementById(divID); if (div) { document.body.removeChild(div); } }
		closeDiv.style.cursor = 'pointer';
		closeDiv.appendChild(document.createTextNode('[CLOSE]'));
		innerDiv.appendChild(closeDiv);

		div.appendChild(innerDiv);
		document.body.appendChild(div);
	}
	div.style.display = 'block';
//	window.open(url, '_blank', 'width='+width+',height='+height);
//	window.focus();
}
stm_bm(["menu6b59",700,"","blank.gif",0,"","",0,0,200,0,1000,1,0,0,"","",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,0,2,12,0,100,"",-2,"",-2,50,0,0,"#999999","transparent","",3,0,0,"#CCCCCC"]);
stm_ai("p0i0",[0,"\r\nHome","","",-1,-1,0,"index.html","_self","","","","",12,12,0,"","",0,0,0,1,2,"#FFFFF7",1,"#B5BED6",1,"accueil.gif","accueil.gif",3,3,0,0,"#FFFFF7","#000000","#333366","#000000","bold 10pt Verdana","bold 10pt Verdana",0,0],90,40);
stm_aix("p0i1","p0i0",[0,"\r\nLodging","","",-1,-1,0,"lodging_snowmobile.html","_self","","","","",12,12,0,"","",0,0,0,0,2,"#FFFFF7",1,"#B5BED6",1,"hebergement.gif","hebergement.gif",3,3,0,0,"#FFFFF7","#000000","#333366","#333333"],107,40);
stm_aix("p0i2","p0i1",[0,"\r\nSnowmobile Tours & Maps","","",-1,-1,0,"#","_self","","","","",12,12,0,"","",0,0,0,0,2,"#FFFFF7",1,"#B5BED6",1,"sentiers.gif","sentiers.gif"],219,40);
stm_bp("p1",[1,4,0,0,6,1,0,0,100,"",-2,"",-2,80,0,0,"#999999","#4D5580","",2,3,1,"#000000"]);
stm_aix("p1i0","p0i0",[0,"Snowmobile Tours & Maps","","",-1,-1,0,"trails.html","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF7",1,"#B5BED6",1,"","",3,3,0,0,"#FFFFF7","#000000","#FFFFFF","#FFFFFF","9pt Verdana","bold 9pt Verdana"],199,20);
stm_aix("p1i1","p1i0",[0,"Snowmobile Trail Conditions","","",-1,-1,0,"trails-condition.html"],199,20);
stm_aix("p1i2","p1i0",[0,"Trail Conditions Trans Quebec \r\nLive","","",-1,-1,0,"Quebec_trail_conditions.html"],199,20);
stm_aix("p1i3","p1i0",[0,"Trail Permits","","",-1,-1,0,"trail_permits.html","_self","","","","",0,0,0,"","",0,0,0,0,2],199,19);
stm_aix("p1i4","p1i0",[0,"Weather Forecast","","",-1,-1,0,"meteo.html"],199,20);
stm_ep();
stm_aix("p0i3","p0i1",[0,"\r\nAttractions & videos","","",-1,-1,0,"","_self","","","","",12,12,0,"","",0,0,0,0,2,"#FFFFF7",1,"#B5BED6",1,"photos.gif","photos.gif"],212,40);
stm_bpx("p2","p1",[]);
stm_aix("p2i0","p1i0",[0,"Attractions of the Upper Laurentians ","","",-1,-1,0,"attractions.html"],234,20);
stm_aix("p2i1","p1i0",[1,"Devil\'s Mountain Relay","","",-1,-1,0,"devils_mountain.html","_self","","","","",0,0,0,"","",0,0,0,0,0],234,20);
stm_aix("p2i1","p1i0",[1,"Video Wood Runner Trail","","",-1,-1,0,"video_snowmobiling.html","_self","","","","",0,0,0,"","",0,0,0,0,0],234,20);
stm_ep();
stm_aix("p0i4","p0i1",[0,"\r\nContact Us","","",-1,-1,0,"#","_self","","","","",12,12,0,"","",0,0,0,0,2,"#FFFFF7",1,"#B5BED6",1,"joindre.gif","joindre.gif"],121,40);
stm_bpx("p3","p1",[]);
stm_aix("p3i0","p1i0",[0,"Contacts","","",-1,-1,0,"contact.html"],112,20);
stm_aix("p3i1","p1i0",[0,"Interesting Links","","",-1,-1,0,"link.html"],112,20);
stm_aix("p3i2","p1i0",[0,"Partners","","",-1,-1,0,"partner.html"],112,20);
stm_ep();
stm_ep();
stm_em();

