/* Following Function is used to pass the customer selected tour package to BackOffice

var dirctory=""  Subdirectory Name , you need to change when you are going to use this in a different directory

pageName  -  it will be Package detail page name


*/

var dirctory="centralamerica" ;

function bookTour( pageName )
{
      location.href= "https://secure2.travelwizard.com/vacation-planner-form.cfm?Directory="+dirctory+"&PageName="+pageName;      
}
  

 function viewVideo( brID)
{
videoWindow = window.open("http://www.iceportal.com/ice/WTVPortal/Pages/BrochureView/BrochureView.aspx?did=2178&brochureid="+brID+"&lang=en&video=1&pic=1&info=1&general=1&rr=1",'vidio','width=700,height=450');
videoWindow.focus();
}

function show_photo(page){
winstyle="height=400,width=440,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes";
win = window.open("http://www.travelwizard.com/"+page,"PG",winstyle);
win.focus()
}

function signup()
{
   signupWindow = window.open("https://backoffice.travelwizard.com/main/NewsLetterSignUp.html","signup","width=580,height=460");
   signupWindow.focus();
}


function twVideo(id) {
day = new Date();

videoPop=window.open("http://travelwizard.permissiontv.com/?showid="+id,"","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480");
videoPop.focus();

}

function openvideowin(videoFile,videoName){
	var videowin=dhtmlmodal.open("videowindow", "iframe", videoFile,videoName, "width=457px,height=395px,center=1,resize=0,scrolling=0", "recal")

	videowin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
		return window.confirm("Close Window?")
	}
}