var num; var block; var count = 0; var img; var desc;
function showDiv(num) {
	if(count == 0) {
		document.getElementById("list_destination_block"+num+"").style.display = "block";
		document.getElementById("list_sign"+num+"").innerHTML = "-&nbsp;&nbsp;";
		count = 1;
	}else{
		document.getElementById("list_destination_block"+num+"").style.display = "none";
		document.getElementById("list_sign"+num+"").innerHTML = "+&nbsp;";
		count = 0;
	}
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
function newImage(arg){
	if (document.images) {
		rslt = new Image(); 
		rslt.src = arg; 
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; }
	} 
} 
	
var preloadFlag = false;

function preloadImages() {
	if (document.images) {
		img1_over = newImage("/images/nav/red_Destinations.jpg");
		img2_over = newImage("/images/nav/red_EventPlanning.jpg");
		img3_over = newImage("/images/nav/red_AskandShare.jpg");
		img4_over = newImage("/images/nav/red_SpecialOffers.jpg");
		img5_over = newImage("/images/nav/red_AboutUs.jpg");
		img6_over = newImage("/images/nav/red_ContactInformation.jpg");
		preloadFlag = true;
	}
}
function imgPopUp(FileName, winlgw, winlgh, winName){
	var scrWidth = window.screen.width
	var scrHeight = window.screen.height
	
	var winlgw = 820
	var winlgh = 635
	
	var lgwinprop
	var winName
	
	var getLeft = (scrWidth - winlgw)/2
	var getTop = (scrHeight - winlgh)/2
	
	lgwinprop = "'personalbar=no,toolbar=no,location=no,scrollbars=no,resizable=yes,width=" + winlgw + ",height=" + winlgh + ",left=" + getLeft + ",top=" + getTop + "'"
	newWindow = window.open(FileName, winName, lgwinprop)
}
function PopUp(FileName, winlgw, winlgh, winName) {
	var scrWidth = window.screen.width
	var scrHeight = window.screen.height
	var winlgw //= 540
	var winlgh // = 490
	var lgwinprop
	var winName
	
	var getLeft = (scrWidth - winlgw)/2
	var getTop = (scrHeight - winlgh)/2
	
	lgwinprop = "'personalbar=no,toolbar=no,location=no,scrollbars=no,resizable=no,width=" + winlgw + ",height=" + winlgh + ",left=" + getLeft + ",top=" + getTop + "'"
	
	newWindow = window.open(FileName, winName, lgwinprop)
}

		function showMenu(country){
		var country;
		if(country == "1") {
			document.getElementById("menu1").style.display = "block";
			document.getElementById("menu2").style.display = "none";
			document.getElementById("menu3").style.display = "none";
			document.getElementById("menu4").style.display = "none";
			document.getElementById("menu5").style.display = "none";
			document.getElementById("menu6").style.display = "none";
			
			changeImages('northamerica', '/images/map_northamerica_red.gif');
			changeImages('southamerica', '/images/map_southamerica.gif');
			changeImages('africa', '/images/map_africa.gif');
			changeImages('europe', '/images/map_europe.gif');
			changeImages('asia', '/images/map_asia.gif');
			changeImages('australia', '/images/map_australia.gif');
			changeImages('cruise', '/images/map_cruise.gif');
		}else if(country =="2") {
			document.getElementById("menu1").style.display = "none";
			document.getElementById("menu2").style.display = "block";
			document.getElementById("menu3").style.display = "none";
			document.getElementById("menu4").style.display = "none";
			document.getElementById("menu5").style.display = "none";
			document.getElementById("menu6").style.display = "none";
			
			changeImages('northamerica', '/images/map_northamerica.gif');
			changeImages('southamerica', '/images/map_southamerica_red.gif');
			changeImages('africa', '/images/map_africa.gif');
			changeImages('europe', '/images/map_europe.gif');
			changeImages('asia', '/images/map_asia.gif');
			changeImages('australia', '/images/map_australia.gif');
			changeImages('cruise', '/images/map_cruise.gif');

		}else if(country =="3") {
			document.getElementById("menu1").style.display = "none";
			document.getElementById("menu2").style.display = "none";
			document.getElementById("menu3").style.display = "block";
			document.getElementById("menu4").style.display = "none";
			document.getElementById("menu5").style.display = "none";
			document.getElementById("menu6").style.display = "none";
			
			changeImages('northamerica', '/images/map_northamerica.gif');
			changeImages('southamerica', '/images/map_southamerica.gif');
			changeImages('africa', '/images/map_africa_red.gif');
			changeImages('europe', '/images/map_europe.gif');
			changeImages('asia', '/images/map_asia.gif');
			changeImages('australia', '/images/map_australia.gif');
			changeImages('cruise', '/images/map_cruise.gif');

		}else if(country =="4") {
			document.getElementById("menu1").style.display = "none";
			document.getElementById("menu2").style.display = "none";
			document.getElementById("menu3").style.display = "none";
			document.getElementById("menu4").style.display = "block";
			document.getElementById("menu5").style.display = "none";
			document.getElementById("menu6").style.display = "none";
			
			changeImages('northamerica', '/images/map_northamerica.gif');
			changeImages('southamerica', '/images/map_southamerica.gif');
			changeImages('africa', '/images/map_africa.gif');
			changeImages('europe', '/images/map_europe_red.gif');
			changeImages('asia', '/images/map_asia.gif');
			changeImages('australia', '/images/map_australia.gif');
			changeImages('cruise', '/images/map_cruise.gif');


		}else if(country =="5") {
			document.getElementById("menu1").style.display = "none";
			document.getElementById("menu2").style.display = "none";
			document.getElementById("menu3").style.display = "none";
			document.getElementById("menu4").style.display = "none";
			document.getElementById("menu5").style.display = "block";
			document.getElementById("menu6").style.display = "none";
			
			changeImages('northamerica', '/images/map_northamerica.gif');
			changeImages('southamerica', '/images/map_southamerica.gif');
			changeImages('africa', '/images/map_africa.gif');
			changeImages('europe', '/images/map_europe.gif');
			changeImages('asia', '/images/map_asia_red.gif');
			changeImages('australia', '/images/map_australia.gif');
			changeImages('cruise', '/images/map_cruise.gif');


		}else if(country =="6") {
			document.getElementById("menu1").style.display = "none";
			document.getElementById("menu2").style.display = "none";
			document.getElementById("menu3").style.display = "none";
			document.getElementById("menu4").style.display = "none";
			document.getElementById("menu5").style.display = "none";
			document.getElementById("menu6").style.display = "block";
			
			changeImages('northamerica', '/images/map_northamerica.gif');
			changeImages('southamerica', '/images/map_southamerica.gif');
			changeImages('africa', '/images/map_africa.gif');
			changeImages('europe', '/images/map_europe.gif');
			changeImages('asia', '/images/map_asia.gif');
			changeImages('australia', '/images/map_australia_red.gif');
			changeImages('cruise', '/images/map_cruise.gif');

		}else if(country =="7") {
			document.getElementById("menu1").style.display = "none";
			document.getElementById("menu2").style.display = "none";
			document.getElementById("menu3").style.display = "none";
			document.getElementById("menu4").style.display = "none";
			document.getElementById("menu5").style.display = "none";
			document.getElementById("menu6").style.display = "none";
			
			changeImages('northamerica', '/images/map_northamerica.gif');
			changeImages('southamerica', '/images/map_southamerica.gif');
			changeImages('africa', '/images/map_africa.gif');
			changeImages('europe', '/images/map_europe.gif');
			changeImages('asia', '/images/map_asia.gif');
			changeImages('australia', '/images/map_australia.gif');
			changeImages('cruise', '/images/map_cruise_red.gif');

		}
		}
		

function HearAboutUs_Change(){
	if (document.ContactForm.HearAboutUs.value == "Select"){
	document.getElementById("block1").style.display = "none"; }	
	
	if (document.ContactForm.HearAboutUs.value == "Advertisement"){
	document.getElementById("block1").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Previous Client"){
	document.getElementById("block1").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Search Engine"){
	document.getElementById("block1").style.display = "block";}	
	
	if (document.ContactForm.HearAboutUs.value == "Friend"){
	document.getElementById("block1").style.display = "block";}
	
	if (document.ContactForm.HearAboutUs.value == "Other..."){
	document.getElementById("block1").style.display = "block";}	
}
function countryUpdate(country, block) {
	if(country.value == "United States") {
		document.getElementById(""+block+"").style.visibility = "visible";
	}else{
		document.getElementById(""+block+"").style.visibility = "hidden";
	}
}

	
	function showThumb(img,holder) {
		if(img != "") {
		document.getElementById("thumb_holder"+holder+"").innerHTML = "<img src=\"/images/"+img+"\" alt=\"Happily Everafter\" />";
		document.getElementById("thumb_holder"+holder+"").style.display = "block";
		}else if(img == "0"){
		document.getElementById("thumb_holder"+holder+"").innerHTML = "&nbsp;";
		document.getElementById("thumb_holder"+holder+"").style.display = "none";
		}
	}
	
	function showDestThumb(img,desc) {
		if(img != "") {
			if(desc != "") {
				document.getElementById("thumb_holder").innerHTML = "<div class=\"imgdesc\">"+desc+"</div><img src=\""+img+"\" alt=\"Journeys Unlimited\" />";
			}else{
				document.getElementById("thumb_holder").innerHTML = "<img src=\""+img+"\" alt=\"Journeys Unlimited\" />";
			}
		document.getElementById("thumb_holder").style.display = "block";
		}else if(img == "0"){
		document.getElementById("thumb_holder").innerHTML = "&nbsp;";
		document.getElementById("thumb_holder").style.display = "none";
		}
	}

var listx = new Array();
function hidediv(pass) {
	document.getElementById("read1").innerHTML = "Read Entire Article";
	document.getElementById("read2").innerHTML = "Read More Information";
	document.getElementById("read3").innerHTML = "Read More Faq's";
	document.getElementById("read4").innerHTML = "Read About Cruise Costs";
	var divs = document.getElementsByTagName('div');
	for(i = 0; i < divs.length; i++) {
		if (divs[i].id == (pass)) {
			if (document.getElementById) // DOM3 = IE5, NS6
				divs[i].style.display = 'none';
			else {
				if (document.layers) {
					document.layers[divs[i]].display = 'none';
					document.layers[divs[i]].position = 'absolute';
				}
				else {
					document.all.hideShow.divs[i].visibility = 'none';
					document.all.hideShow.divs[i].position = 'absolute';
				}
			}
		}
	}
	
	listx[pass] = "hidden";
}
function showdiv(pass) {
	if (listx[pass] == "shown") hidediv(pass);
	else {
		document.getElementById("read1").innerHTML = "Close Article";
		document.getElementById("read2").innerHTML = "Close Information";
		document.getElementById("read3").innerHTML = "Close Faq's";
		document.getElementById("read4").innerHTML = "Close Cruise Costs";
		var divs = document.getElementsByTagName('div');
		for(i = 0; i < divs.length; i++) {
			if (divs[i].id == (pass)) {
				if (document.getElementById) {
					// IE 6+/NN6
					divs[i].style.display = 'block';
				}
				else {
					if (document.layers) {
						//netscape 5
						document.layers[divs[i]].display = 'block';
						document.layers[divs[i]].position = 'relative';
					}
					else {
						// IE 4 and 5 not 5+
						document.all.hideShow.divs[i].visibility = 'block';
						document.all.hideShow.divs[i].position = 'relative';
					}
				}
			}
		}
		listx[pass] = "shown";
	}
}

// This is used to embed Flash documents, because Internet Explorer sucks
function embedFlash(src, width, height) {
	document.write('<object type="application/x-shockwave-flash" data="/flash/'+src+'" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="/flash/'+src+'" />');
	document.write('</object>');
}