document.write('<div id="val_message" style="position:absolute; top:300px; left:100px; width:440px; height:220px;border:1px solid black; margin: 30px 50px; z-index:12000000;background-color:#FFFFFF;visibility:hidden;">');

document.write('<table cellpadding="10" cellspacing="0" border="0"  style="background-color:#FFFFFF;">');
document.write('<tr>');
document.write('<td >');
	document.write('<table cellpadding="0" cellspacing="0" border="0" style="background-color:#BCD8E9;">');
	document.write('<tr>');
	document.write('<td >');
	document.write('<img src="/images/french_site_going_to_englis.jpg" >');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td style="color:#000000;padding-left:10px; padding-right:10px;padding-bottom:10px;">');
	document.write('Vous allez maintenant être redirigé automatiquement à notre site web anglophone. Afin de recevoir des renseignements additionnels en français, s\'il vous plaît contactez un de nos conseillers de voyage bilingue au 1-800-665-0040 ou au 204-927-7838.<b> Merci</b>');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td style="font-weight:900;color:#FF3300;padding-bottom:10px;background-color:#BCD8E9;text-align:center;">');
	document.write('<span id="proceed"></span>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

document.write('<div id="val_shadow" style=" position:absolute; top:0px; left:0px; height:1000px;width:1000px; z-index:100;background-color: #ffffff; -moz-opacity:0.6; opacity:0.6;filter:alpha(opacity=40);visibility:hidden;">');
document.write('</div>');



//define reference to the body object in IE
var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;

function positionit1()
{
	//define universal dsoc left point
	var dsocleft=document.all? iebody.scrollLeft : pageXOffset;
	//define universal dsoc top point
	var dsoctop=document.all? iebody.scrollTop : pageYOffset;

	//if the user is using IE 4+ or Firefox/ NS6+
	document.getElementById("val_message").style.left=parseInt( dsocleft )+ 150 +"px";
	document.getElementById("val_message").style.top =parseInt( dsoctop )+ 150 +"px";
	
}


function positionit()
{
	//define universal dsoc left point
	var dsocleft=document.all? iebody.scrollLeft : pageXOffset;

	//define universal dsoc top point
	var dsoctop=document.all? iebody.scrollTop : pageYOffset;

	var screenW = 640;
	var screenH = 480;
	if (parseInt(navigator.appVersion)>3) {
	 screenW = screen.width;
	 screenH = screen.height;
	}
	else if (navigator.appName == "Netscape" 
	    && parseInt(navigator.appVersion)==3
	    && navigator.javaEnabled()
	   ) 
	{
	 var jToolkit = java.awt.Toolkit.getDefaultToolkit();
	 var jScreenSize = jToolkit.getScreenSize();
	 screenW = jScreenSize.width;
	 screenH = jScreenSize.height;
	}

	var xx = (screenW/2)-320;
	var yy = (screenH/2)-280;

	//if the user is using IE 4+ or Firefox/ NS6+
	document.getElementById("val_message").style.left = parseInt(parseInt( dsocleft )+ xx) +"px";
	document.getElementById("val_message").style.top  = parseInt(parseInt( dsoctop )+ yy) +"px";

}




function showVousAllez(goTo)
{
	document.getElementById("main_conteiner").style.visibility="hidden";
	document.getElementById("proceed").innerHTML  = '<a href="javascript:void(0);" onClick=\'openEngWindow("'+goTo+'");\'  style="font-weight:900;">Continuer</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0);" onClick="showCloseOut();" style="font-weight:900;">Je désire demeurer dans le site francophonne</a>' ;
	
	
	var shadowHeight = parseInt(document.body.clientHeight) + 100;
	var shadowWidth = parseInt(document.body.clientWidth) + 100;
	
	document.getElementById("val_shadow").style.height = shadowHeight + "px";
	document.getElementById("val_shadow").style.width = shadowWidth + "px";
	
	positionit();
	
	document.getElementById("val_message").style.visibility = "visible";
	document.getElementById("val_shadow").style.visibility = "visible";
	
	showFadeOut();
	

	return;
}



function showVousAllez2()
{
	
	document.getElementById("proceed").innerHTML  = '<img src="/images/spacer.gif" height="14">' ;
	
	
	var shadowHeight = parseInt(document.body.clientHeight) + 100;
	var shadowWidth = parseInt(document.body.clientWidth) + 100;
	
	document.getElementById("val_shadow").style.height = shadowHeight + "px";
	document.getElementById("val_shadow").style.width = shadowWidth + "px";
	
	positionit();
	
	document.getElementById("val_message").style.visibility = "visible";
	document.getElementById("val_shadow").style.visibility = "visible";
	
	showFadeOut();
	

	return;
}



function showFadeOut()
{
	document.getElementById("val_message").style.opacity = 1;
	document.getElementById("val_message").style.filter = "alpha(opacity=100)";
	var k=0.01;
	
	for( var myTime=30000; myTime<=180000; myTime=myTime + 500  )
	{
		var m= 100- ( k * 100 );
		
		setTimeout('document.getElementById("val_message").style.opacity=1-'+k+'; ',myTime);
		setTimeout('document.getElementById("val_message").style.filter = "alpha(opacity=' + m +')"; ',myTime);
		
		
		if(myTime<=180000)
		{}
		else
		{
			myTime = myTime + 1000;
			setTimeout('showCloseOut()',myTime);
			break;
		}
		
		if(k <= 0.4 )
		{}
		else
		{
		 	myTime = myTime + 1000;
			setTimeout('showCloseOut()',myTime);
			break;
		}
		
		k=k+0.01;
		
		
	}
	
	return;
}



function showCloseOut()
{
 	document.getElementById("val_message").style.visibility = "hidden"; 
 	document.getElementById("val_shadow").style.visibility = "hidden"; 
	document.getElementById("main_conteiner").style.visibility="visible";
	
	return;
}



function openEngWindow(goTo)
{
	window.open(goTo,"TravelManitoba");
	showCloseOut();
	return;
}




