//*******************************
//* buyflights_side.js scripts 
//* Author: Cliff Taylor, (c)2002 AnnWebCom.co.uk
//* Flightline Travel Management PLC  

//*** START ***

function popPage(page)
 {
  pop1 = window.open(page,'pop1','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=550,height=400');
  pop1.focus();
 }

function popt(page)
	{
	window.open(page,'tellafriend_window','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,width=550,height=400');
	}

function itinwindow()
	{
	window.open('http://itin.amadeus.net/','itin_window','toolbar=yes,location=no,directories=no,status=yes,menubar=yes,resizable=yes,copyhistory=no,scrollbars=yes,width=790,height=400');
	}
	
function naviPage(the_page)
{
	if (the_page == "") // if there's no target
	{
	return true;
	}
	parent.buyflights_main.location = the_page;
}
	
// start of menu marker script

var onClicked = 'but0';
var onHeat = 'but0';

function clicked(clk){
	eval("window.document." + clk + "img.src='images/arrow.gif'");
	if (clk != onClicked)
		{
		eval("window.document." + onClicked + "img.src='images/blank_arrow.gif'");
		}
	onClicked = clk;
	}

function hot(name){
//alert(name+onHeat+onClicked);
	if (name != onClicked)
		{
		cold (onHeat);
		eval("window.document." + name + "img.src='images/arrow.gif'");
		onHeat = name;
		}
	return true;
}

function cold(name){
	if (name == onClicked)
		{
		return true;
		}
	eval("window.document." + onHeat + "img.src='images/blank_arrow.gif'");
}
	
// end of menu marker script

// start of rollover script
function over_effect(e,state){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
source4.style.borderStyle=state;
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
source4.style.borderStyle=state;
}
}
}
// end of rollover script

//*** FINISH ***
