guatemala = new Array(5);
guatemala[0]="Operates with the highest levels of Safety";
guatemala[1]="World Class Service";
guatemala[2]="Modern Fleet";
guatemala[3]="International Frequent Flyer Program";
guatemala[4]="Excellent On Time Performance";

honduras = new Array(5);
honduras[0]="The newest fleet in Honduras";
honduras[1]="Unique and improved Call Center";
honduras[2]="We are the only that provide you with direct access to the reservation system"; 
honduras[3]="The safest turbo-prop fleet  with the best maintenance in Honduras"; 
honduras[4]="The best Schedule Completion & On Time Performance in Honduras";

costarica = new Array(7);
costarica[0]="World-class safety technology & best operational safety standards/practices ";
costarica[1]="Featuring the newest (7 years) and most comfortable (leather seats/air condition) fleet";
costarica[2]="SANSA is a carbon-neutral airline!";
costarica[3]="Our completely renovated main hub is located at Juan Santamaria International Airport";
costarica[4]="DISTANCIA Frequent Flyer Program (associated with United Airlines, Lufthansa, Iberia and a wide variety of partners around the world)";
costarica[5]="Proudly serving Costa Rica for more than 30 years";
costarica[6]="Don't drive - fly when in Costa Rica! Why do we encourage you to fly in Costa Rica?";

panama = new Array(5);
panama[0]="Best safety record in Panama";
panama[1]="First domestic airline to be certified under the newest and rigorous regulations of the Civil Aviation Authority of Panama (AAC)";
panama[2]="DISTANCIA Frequent Flyer Program";
panama[3]="AEROPERLAS REGIONAL neutralizes its CO2 Emissions! ";
panama[4]="More than 40 years proudly serving Panama!";

nicaragua = new Array(5);
nicaragua[0]="We offer 8 different routes within Nicaragua"; 
nicaragua[1]="Best frequency of flights to our destinations"; 
nicaragua[2]="Quality of our service"; 
nicaragua[3]="Only airline certified to fly within Nicaragua"; 
nicaragua[4]="Our pilots and mechanics are trained by our Aircraft's Fabricant";

function opacity(id, opacStart, opacEnd, millisec) { 
    //speed for each frame 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    //determine the direction for the blending, if start and end are the same nothing happens 
    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
            timer++; 
        } 
    } 
} 

//change the opacity for different browsers 
function changeOpac(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
}



function mostar_msg(pais, numarr, div, opacStart, opacEnd, millisec)
{
	var msgshow;
	var urlshow;
	opacity(div, opacStart, opacEnd, millisec);
	valormsg = Math.floor(Math.random()*numarr);
	if(pais=="0")
		{
		msgshow = guatemala[valormsg];	
		urlshow = "eng/oyn/wfw/wfwsansa.asp";
		}
	if(pais=="1")
		{
		msgshow = honduras[valormsg];	
		urlshow = "eng/oyn/wfw/wfwtacaregh.asp?hd=3";
		}
	if(pais=="2")
		{
		msgshow = costarica[valormsg];	
		urlshow = "eng/oyn/wfw/wfwsansa.asp?hd=5";
		}
	if(pais=="3")
		{
		msgshow = nicaragua[valormsg];	
		urlshow = "eng/oyn/wfw/wfwsansa.asp?hd=5";
		}
	if(pais=="4")
		{
		msgshow = panama[valormsg];	
		urlshow = "eng/oyn/wfw/wfwaeroperlas.asp?hd=6";
		}
	document.write("<a style='border-right:none;font-family:Verdana, Arial, Helvetica, sans-serif; line-height:22px; font-size:16px; text-decoration:none; color:#666666;' href='" + urlshow +"#" + valormsg+ "'>"+msgshow+"</a>");
	document.write("<br> <a href='" + urlshow + "' style=\'padding-right:0px; text-decoration:none; font-weight:bold; font-size:11px; padding-top:10px; float:right; color:#C8223E;\'>> More</a>");
}
