// Overture Services, Inc//
var pm_tagname = "universalTag.txt";
var pm_tagversion = "1.4";
var pm_accountid = "BMSACU4UK9I8OM2B78CVG78KJ4";
var pm_scripthost = "srv.perf.overture.com";
var pm_customargs = "";
var pm_querystr = "?" + "ver=" + pm_tagversion + "&aid=" + pm_accountid + pm_customargs;
var pm_tag = "<SCR" + "IPT LANGUAGE='JavaScript' " + "SRC=//" + pm_scripthost + "/collweb/ScriptServlet" + pm_querystr + "></SCR" + "IPT>";
document.write(pm_tag);
//

// END JS FOR HEADER NAV IMAGES //

//
function popUp(imgURL,winName,options) { //v1.0
  window.open(imgURL,winName,options);
}
function clsWin(){

self.setTimeout('window.close()', 1000) 

}


//

//

function popUp(imgURL,winName,options) { //v1.0
  window.open(imgURL,winName,options);
}
function clsWin(){

self.setTimeout('window.close()', 1000) 

}

//


	function showPanofull(viewer,mapid){
	var win = window.open('http://delivery.vrxstudios.com/lamacchia/fullpopup_lm.asp?v=' + viewer + '&mapid=' + mapid,'VRXMapViewer','height=470,width=796,menubar=no,top=5,scrollbars=no,resizable=no,left=5');
	win.focus();
	}
  
  



// BEGIN JS FOR QUICK LINK HELP POPUP //
function quickHelp(url) {
sealWin=window.open(url,"help",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=550,height=386');
}

// BEGIN JS FOR TOP NAV ROLLOVER IMAGES //

image1 = new Image();
image1.src = "/images/nav_home1.gif";

image2 = new Image();
image2.src = "/images/nav_deals1.gif";

image2 = new Image();
image2.src = "/images/nav_dest1.gif";

image2 = new Image();
image2.src = "/images/nav_acts1.gif";

image2 = new Image();
image2.src = "/images/nav_tips1.gif";

image2 = new Image();
image2.src = "/images/nav_care1.gif";

image2 = new Image();
image2.src = "/images/nav_myswav1.gif";

// End -->

// END JS FOR TOP NAV ROLLOVER IMAGES //

//Begin popup window for videovirtual tours
function popUpVideo(URL,WIDTH, HEIGHT) {
	var day = new Date();
	var id = day.getTime();
	window.open(URL,id,'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + WIDTH + ',height=' + HEIGHT + ',left = 100,top = 100');
}
//End popup window for videovirtual tours
// 03/31/06 - JAL Start
//PrintPage - function that will open a new window for printing for pages with pre-defined printFriendly div tags
function PrintPage(address, style)
{ 
   var winOptions = "toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       winOptions += "scrollbars=yes,width=800,height=600,left=100,top=25"; 

   divHtml = new String(document.getElementById('printFriendly').innerHTML);
   divHtml = "<img src=\"" + address + "images/logo_SWAV.gif\" border=\"0\" /><br />" + divHtml;
   //divHtml = "<script type='text/javascript' src='http://www.southwestvacations.com/includes/iwnscripts.js'></script>" + divHtml;
   var printWindow=window.open("","",winOptions); 
	   printWindow.document.open();	
	   printWindow.document.write('<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n');  
	   printWindow.document.write('<html>\n');  
	   printWindow.document.write('<head>\n'); 
	   printWindow.document.write('<title>Southwest Vacations - Print Friendly Page</title>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('includes/IWNstyle.css"/>\n');	 
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/reset-fonts-grids.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/base.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/layout.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/nav.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/fonts.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/restool.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/printpage.css"/>\n');
	   printWindow.document.write('</head>\n');
	   printWindow.document.write('<body onLoad="ReplaceLinks()">\n');
	   printWindow.document.write('<div id=\"printPage\">');
	   printWindow.document.write(divHtml);
	   printWindow.document.write('</div>');
	   printWindow.document.write('</body></html>');
	   printWindow.document.write('<script language=javascript>');
	   printWindow.document.write('function ReplaceLinks(){');
	   printWindow.document.write('for(var i = 0; i < document.links.length; i++)');
	   printWindow.document.write('{');
	   printWindow.document.write('document.links[i].href = "javascript: void(0)";');
	   printWindow.document.write('}');	   
	   printWindow.document.write('}</script>');
	   printWindow.document.close();
	   printWindow.focus();  
}
// 03/31/06 - JAL END

// 04/05/06 - JAL Start
//PrintPageShowAll - function that will open a new window for printing for the HotelProfilesPage and will also write a 
//					 ShowAll function to the page to show the neccessary profile sections
function PrintPageShowAll(address, style)
{ 
   var winOptions = "toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       winOptions += "scrollbars=yes,width=800,height=600,left=100,top=25"; 

   divHtml = new String(document.getElementById('printFriendly').innerHTML);
      
   var printWindow=window.open("","",winOptions); 
	   printWindow.document.open();	   	   
	   rintWindow.document.write('<html>\n');  
	   printWindow.document.write('<head>\n'); 
	   printWindow.document.write('<title>Southwest Vacations - Print Friendly Page</title>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('includes/IWNstyle.css"/>\n');	 
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/reset-fonts-grids.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/base.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/layout.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/nav.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/fonts.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/restool.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/printpage.css"/>\n');
	   printWindow.document.write('</head>\n');
	   printWindow.document.write('<body onLoad="ReplaceLinks()">\n')
	   printWindow.document.write(divHtml);
	   printWindow.document.write('</body></html>');
	   printWindow.document.write('<script language=javascript>');
	   printWindow.document.write('function ReplaceLinks(){');
	   printWindow.document.write('for(var i = 0; i < document.links.length; i++)');
	   printWindow.document.write('{');
	   printWindow.document.write('document.links[i].href = "javascript: void(0)";');
	   printWindow.document.write('}');
	   printWindow.document.write('ShowAll("Overview","Rooms","DiningEntertainment","Recreation","Photos","AddedValues");');
	   printWindow.document.write('}');
	   printWindow.document.write('function ShowAll(showFirst, showSecond, showThird, showFourth, showFifth, showSixth)');
       printWindow.document.write('{ if(!document.getElementById) {');
	   printWindow.document.write('return; }');
	   printWindow.document.write('var l_show1 = document.getElementById(showFirst).style.display = "block";');
	   printWindow.document.write('var	l_hide2 = document.getElementById(showSecond).style.display = "block";');
	   printWindow.document.write('var l_hide3 = document.getElementById(showThird).style.display = "block";');
       printWindow.document.write('var l_hide4 = document.getElementById(showFourth).style.display = "block";');
	   printWindow.document.write('var l_hide5 = document.getElementById(showFifth).style.display = "none";');
	   printWindow.document.write('var l_hide6 = document.getElementById(showSixth).style.display = "block";');
	   printWindow.document.write('return( true );}');
	   printWindow.document.write('</script>');
	   printWindow.document.close();
	   printWindow.focus();  
}
// 04/05/06 - JAL End

// 8/15/07 APM - Start - New function for print friendly version of new hotel profiles page
function HP_PrintPage(address, style)
{ 
   var winOptions = "toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       winOptions += "scrollbars=yes,width=800,height=600,left=100,top=25"; 

   divHtml = new String(document.getElementById('printFriendly').innerHTML);
   divHtml = "<img src=\"" + address + "images/logo_SWAV.gif\" border=\"0\" /><br />" + divHtml;
   

	//Fix for IE:  the Flash object's parameters don't get grabbed off the main page 
	//by .innerHTML, so we need to reconstruct the complete Flash object by hand
	if (navigator.appName == "Microsoft Internet Explorer") {
		reconstructedFlashObj = new String("");
		
		//Get all ActiveX objects
		var objects = document.getElementsByTagName('object');
		for (var i = 0; i < objects.length; i++){			
			var thisObject = objects[i];	
			
			//If it's the hotel profile photo viewer...
			if (thisObject.data.toLowerCase().search("flash/photoviewer.swf") != -1) {
				var thisHTML = thisObject.outerHTML;
				
				//Build up the list of params
				var params = "";
				for (var j = 0; j < thisObject.childNodes.length; j++) {
					var param = thisObject.childNodes[j];
					if (param.tagName == "PARAM"){
						params += param.outerHTML;		       
					}
				}	
					
				//Get the tag and attributes part of the outer html of the object
				var tag = thisHTML.split(">")[0] + ">";	
						
				//Reconstruct the object: the tag with attributes, the params and the original innerHTML
				reconstructedFlashObj = tag + params + thisObject.innerHTML + " </OBJECT>";
				
				break;		
				
				//Code is added to the new window below to insert the reconstructedFlashObj into the correct div	
			}
		}
	}
  
   var printWindow=window.open("","",winOptions); 
		printWindow.document.open();	   	   
		printWindow.document.write('<html>\n');
		printWindow.document.write('<head>\n<title>Southwest Vacations - Print Friendly Page</title>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('includes/IWNstyle.css"/>\n');	 
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/reset-fonts-grids.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/base.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/layout.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/nav.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/fonts.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/restool.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/printpage.css"/>\n');
	   printWindow.document.write('<link rel="stylesheet" type="text/css" href="');
	   printWindow.document.write(address);
	   printWindow.document.write('css/hotelprofile.css"/>\n');
	    printWindow.document.write('</head>\n<body onLoad="ReplaceLinks();HideBookTab();">');
		
		printWindow.document.write('<script language="javascript">function OAS_AD(pos) {}</script>');
		
		printWindow.document.write('<script language="javascript">function FlashWrapper() {}</script>');
		printWindow.document.write('<script language="javascript">FlashWrapper.prototype.initFlashWrapper = function() {}</script>');
		
		printWindow.document.write(divHtml);
		printWindow.document.write('\n</body></html>');

		printWindow.document.write('<script language="javascript">');
			printWindow.document.write('function ReplaceLinks(){');
				printWindow.document.write('var a = document.getElementsByTagName("A");');
				printWindow.document.write('for (var i = 0; i < a.length; i++) {');
					printWindow.document.write('a[i].setAttribute("href","javascript: void(0)");');
				printWindow.document.write('}');
			printWindow.document.write('}');
			
			printWindow.document.write('function HideBookTab(){');
				printWindow.document.write('var bookTab = document.getElementById("BookTab");');
				printWindow.document.write('if (bookTab.className == "HP_BookTab_Inactive") {');
					printWindow.document.write('bookTab.style.visibility = "hidden";');
				printWindow.document.write('}');
			printWindow.document.write('}');
			
			if (navigator.appName == "Microsoft Internet Explorer") {
				printWindow.document.write('document.getElementById(\'HP_PhotosFlash\').innerHTML = unescape(\'' + escape(reconstructedFlashObj) + '\');');
			}
		printWindow.document.write('</script>');
		
		printWindow.document.close();
		printWindow.focus();  
}
// 8/15/07 APM - End