//Drop Down Tabs Menu- Author: Dynamic Drive (http://www.dynamicdrive.com)
//Created: May 16th, 07'

var tabdropdown={
	disappeardelay: 200, //set delay in miliseconds before menu disappears onmouseout
	disablemenuclick: false, //when user clicks on a menu item with a drop down menu, disable menu item's link?
	enableiframeshim: 1, //1 or 0, for true or false

	//No need to edit beyond here////////////////////////
	dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, previousmenuitem:null,
	currentpageurl: window.location.href.replace("http://"+window.location.hostname, "").replace(/^\//, ""), //get current page url (minus hostname, ie: http://www.dynamicdrive.com/)

	getposOffset:function(what, offsettype){
		var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
		var parentEl=what.offsetParent;
			while (parentEl!=null){
				totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
				parentEl=parentEl.offsetParent;
			}
		return totaloffset;
	},

	showhide:function(obj, e, obj2){ //obj refers to drop down menu, obj2 refers to tab menu item mouse is currently over
		if (this.ie || this.firefox)
			this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
		if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){
			if (obj2.parentNode.className.indexOf("default")==-1) //if tab isn't a default selected one
				obj2.parentNode.className="selected"
			obj.visibility="visible"
			}
		else if (e.type=="click")
			obj.visibility="hidden"
	},

	iecompattest:function(){
		return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	},

	clearbrowseredge:function(obj, whichedge){
		var edgeoffset=0
		if (whichedge=="rightedge"){
			var windowedge=this.ie && !window.opera? this.standardbody.scrollLeft+this.standardbody.clientWidth-15 : window.pageXOffset+window.innerWidth-15
			this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
		if (windowedge-this.dropmenuobj.x < this.dropmenuobj.contentmeasure)  //move menu to the left?
			edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth
		}
		else{
			var topedge=this.ie && !window.opera? this.standardbody.scrollTop : window.pageYOffset
			var windowedge=this.ie && !window.opera? this.standardbody.scrollTop+this.standardbody.clientHeight-15 : window.pageYOffset+window.innerHeight-18
			this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
			if (windowedge-this.dropmenuobj.y < this.dropmenuobj.contentmeasure){ //move up?
				edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
				if ((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure) //up no good either?
					edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
			}
			this.dropmenuobj.firstlink.style.borderTopWidth=(edgeoffset==0)? 0 : "1px" //Add 1px top border to menu if dropping up
		}
		return edgeoffset
	},

	dropit:function(obj, e, dropmenuID){
		if (this.dropmenuobj!=null){ //hide previous menu
			this.dropmenuobj.style.visibility="hidden" //hide menu
			if (this.previousmenuitem!=null && this.previousmenuitem!=obj){
				if (this.previousmenuitem.parentNode.className.indexOf("default")==-1) //If the tab isn't a default selected one
					this.previousmenuitem.parentNode.className=""
			}
		}
		this.clearhidemenu()
		if (this.ie||this.firefox){
			obj.onmouseout=function(){tabdropdown.delayhidemenu(obj)}
			obj.onclick=function(){return !tabdropdown.disablemenuclick} //disable main menu item link onclick?
			this.dropmenuobj=document.getElementById(dropmenuID)
			this.dropmenuobj.onmouseover=function(){tabdropdown.clearhidemenu()}
			this.dropmenuobj.onmouseout=function(e){tabdropdown.dynamichide(e, obj)}
			this.dropmenuobj.onclick=function(){tabdropdown.delayhidemenu(obj)}
			this.showhide(this.dropmenuobj.style, e, obj)
			this.dropmenuobj.x=this.getposOffset(obj, "left")
			this.dropmenuobj.y=this.getposOffset(obj, "top")
			this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px"
			this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
			this.previousmenuitem=obj //remember main menu item mouse moved out from (and into current menu item)
			this.positionshim() //call iframe shim function
		}
	},

	contains_firefox:function(a, b) {
		while (b.parentNode)
		if ((b = b.parentNode) == a)
			return true;
		return false;
	},

	dynamichide:function(e, obj2){ //obj2 refers to tab menu item mouse is currently over
		var evtobj=window.event? window.event : e
		if (this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
			this.delayhidemenu(obj2)
		else if (this.firefox&&e.currentTarget!= evtobj.relatedTarget&& !this.contains_firefox(evtobj.currentTarget, evtobj.relatedTarget))
			this.delayhidemenu(obj2)
	},

	delayhidemenu:function(obj2){
		this.delayhide=setTimeout(function(){tabdropdown.dropmenuobj.style.visibility='hidden'; if (obj2.parentNode.className.indexOf('default')==-1) obj2.parentNode.className=''},this.disappeardelay) //hide menu
	},

	clearhidemenu:function(){
		if (this.delayhide!="undefined")
			clearTimeout(this.delayhide)
	},

	positionshim:function(){ //display iframe shim function
		if (this.enableiframeshim && typeof this.shimobject!="undefined"){
			if (this.dropmenuobj.style.visibility=="visible"){
				this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
				this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px"
				this.shimobject.style.left=this.dropmenuobj.style.left
				this.shimobject.style.top=this.dropmenuobj.style.top
			}
		this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")? "block" : "none"
		}
	},

	hideshim:function(){
		if (this.enableiframeshim && typeof this.shimobject!="undefined")
			this.shimobject.style.display='none'
	},

isSelected:function(menuurl){
	var menuurl=menuurl.replace("http://"+menuurl.hostname, "").replace(/^\//, "")
	return (tabdropdown.currentpageurl==menuurl)
},

	init:function(menuid, dselected){
		this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
		var menuitems=document.getElementById(menuid).getElementsByTagName("a")
		for (var i=0; i<menuitems.length; i++){
			if (menuitems[i].getAttribute("rel")){
				var relvalue=menuitems[i].getAttribute("rel")
				document.getElementById(relvalue).firstlink=document.getElementById(relvalue).getElementsByTagName("a")[0]
				menuitems[i].onmouseover=function(e){
					var event=typeof e!="undefined"? e : window.event
					tabdropdown.dropit(this, event, this.getAttribute("rel"))
				}
			}
			if (dselected=="auto" && typeof setalready=="undefined" && this.isSelected(menuitems[i].href)){
				menuitems[i].parentNode.className+=" selected default"
				var setalready=true
			}
			else if (parseInt(dselected)==i)
				menuitems[i].parentNode.className+=" selected default"
		}
	}

}








//document.write('<TABLE cellpadding="0" cellspacing="0" border="0" width="100%" class="menutable">');
//document.write('<tr><td align="left" nowrap>');

//document.write('<br><br><br><br><br><br><br>');

//document.write('&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://www.travellastminute.ca/images/italyheader.jpg"><br><br>');

document.write('<div id="glowmenu" class="glowingtabs">');

document.write('<ul>');

document.write('<li><a href="http://www.travellastminute.ca/tlm/caribbean.shtml" title="" rel="dropmenu1"><span>the Caribbean</span></a></li>');

document.write('<li><a href="http://www.travellastminute.ca/tlm/mexico.shtml" title="" rel="dropmenu2"><span>Mexico</span></a></li>');

document.write('<li><a href="http://www.travellastminute.ca/tlm/cuba.shtml" title="" rel="dropmenu3"><span>Cuba</span></a></li>');

document.write('<li><a href="http://www.travellastminute.ca/tlm/dominican-republic.shtml" title="" rel="dropmenu4"><span>Dominican Rep.</span></a></li>');

document.write('<li><a href="http://www.travellastminute.ca/tlm/jamaica.shtml" title="" rel="dropmenu5"><span>Jamaica</span></a></li>');

document.write('<li><a href="http://www.travellastminute.ca/tlm/central-america.shtml" title="" rel="dropmenu6"><span>Central America</span></a></li>');

document.write('<li><a href="http://www.travellastminute.ca/tlm/site-map.shtml" title="" rel="dropmenu7"><span>></span></a></li>');

document.write('</ul>');

document.write('</div>');

document.write('<br style="clear: left;" /');

document.write('<br class="IEonlybr" />');

document.write('<div id="dropmenu1" class="dropmenudiv_d" style="width: 120px;">');
document.write('<a href="http://www.travellastminute.ca/tlm/caribbean-antigua-barbuda.shtml"><FONT COLOR ="#FFFFFF">Antigua & Barbuda</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/caribbean-aruba.shtml"><FONT COLOR ="#FFFFFF">Aruba</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/caribbean-barbados.shtml"><FONT COLOR ="#FFFFFF">Barbados</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba.shtml"><FONT COLOR ="#FFFFFF">Cuba</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/caribbean-curacao.shtml"><FONT COLOR ="#FFFFFF">Curacao</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/dominican-republic.shtml"><FONT COLOR ="#FFFFFF">Dominican Rep.</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/jamaica.shtml"><FONT COLOR ="#FFFFFF">Jamaica</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/bahamas-nassau.shtml"><FONT COLOR ="#FFFFFF">Nassau, Bahamas</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/caribbean-st-lucia.shtml"><FONT COLOR ="#FFFFFF">St Lucia</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/caribbean-st-maarten.shtml"><FONT COLOR ="#FFFFFF">St Maarten</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/caribbean-turks-caicos.shtml"><FONT COLOR ="#FFFFFF">Turks & Caicos</FONT></a>');
document.write('</div>');

document.write('<div id="dropmenu2" class="dropmenudiv_d" style="width: 100px;">');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-acapulco.shtml"><FONT COLOR ="#FFFFFF">Acapulco</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-cancun.shtml"><FONT COLOR ="#FFFFFF">Cancun</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-cozumel.shtml"><FONT COLOR ="#FFFFFF">Cozumel</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-huatulco.shtml"><FONT COLOR ="#FFFFFF">Huatulco</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-ixtapa.shtml"><FONT COLOR ="#FFFFFF">Ixtapa</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-los-cabos.shtml"><FONT COLOR ="#FFFFFF">Los Cabos</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-manzanillo.shtml"><FONT COLOR ="#FFFFFF">Manzanillo</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-mayan-riviera.shtml"><FONT COLOR ="#FFFFFF">Mayan Riviera</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-mazatlan.shtml"><FONT COLOR ="#FFFFFF">Mazatlan</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/mexico-puerto-vallarta.shtml"><FONT COLOR ="#FFFFFF">Puerto Vallarta</FONT></a>');
document.write('</div>');

document.write('<div id="dropmenu3" class="dropmenudiv_d" style="width: 100px;">');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-cayo-coco.shtml"><FONT COLOR ="#FFFFFF">Cayo Coco</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-cayo-largo.shtml"><FONT COLOR ="#FFFFFF">Cayo Largo</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-cayo-santa-maria.shtml"><FONT COLOR ="#FFFFFF">Cayo Santa Maria</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-cienfuegos.shtml"><FONT COLOR ="#FFFFFF">Cienfuegos</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-havana.shtml"><FONT COLOR ="#FFFFFF">Havana</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-holguin.shtml"><FONT COLOR ="#FFFFFF">Holguin</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-manzanillo.shtml"><FONT COLOR ="#FFFFFF">Manzanillo</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-santa-lucia.shtml"><FONT COLOR ="#FFFFFF">Santa Lucia</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-santiago-de-cuba.shtml"><FONT COLOR ="#FFFFFF">Santiago de Cuba</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cuba-varadero.shtml"><FONT COLOR ="#FFFFFF">Varadero</FONT></a>');
document.write('</div>');

document.write('<div id="dropmenu4" class="dropmenudiv_d" style="width: 130px;">');
document.write('<a href="http://www.travellastminute.ca/tlm/dominican-republic-la-romana-bayahibe.shtml"><FONT COLOR ="#FFFFFF">La Romana/Bayahibe</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/dominican-republic-puerto-plata.shtml"><FONT COLOR ="#FFFFFF">Puerto Plata</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/dominican-republic-punta-cana.shtml"><FONT COLOR ="#FFFFFF">Punta Cana</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/dominican-republic-samana.shtml"><FONT COLOR ="#FFFFFF">Samana</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/dominican-republic-santo-domingo.shtml"><FONT COLOR ="#FFFFFF">Santo Domingo</FONT></a>');
document.write('</div>');

document.write('<div id="dropmenu5" class="dropmenudiv_d" style="width: 100px;">');
document.write('<a href="http://www.travellastminute.ca/tlm/jamaica-montego-bay.shtml"><FONT COLOR ="#FFFFFF">Montego Bay</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/jamaica-negril.shtml"><FONT COLOR ="#FFFFFF">Negril</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/jamaica-ocho-rios.shtml"><FONT COLOR ="#FFFFFF">Ocho Rios</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/jamaica-runaway-bay.shtml"><FONT COLOR ="#FFFFFF">Runaway Bay</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/jamaica-whitehouse.shtml"><FONT COLOR ="#FFFFFF">Whitehouse</FONT></a>');
document.write('</div>');

document.write('<div id="dropmenu6" class="dropmenudiv_d" style="width: 130px;">');
document.write('<a href="http://www.travellastminute.ca/tlm/central-america-belize.shtml"><FONT COLOR ="#FFFFFF">Belize</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/central-america-costa-rica.shtml"><FONT COLOR ="#FFFFFF">Costa Rica</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/central-america-el-salvador.shtml"><FONT COLOR ="#FFFFFF">El Salvador</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/central-america-honduras.shtml"><FONT COLOR ="#FFFFFF">Honduras</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/central-america-nicaragua.shtml"><FONT COLOR ="#FFFFFF">Nicaragua</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/central-america-panama.shtml"><FONT COLOR ="#FFFFFF">Panama</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/central-america-san-andres.shtml"><FONT COLOR ="#FFFFFF">San Andres</FONT></a>');
document.write('</div>');

document.write('<div id="dropmenu7" class="dropmenudiv_d" style="width: 100px;">');
document.write('<a href="http://www.adulttravel.ca"><FONT COLOR ="#FFFFFF">Adults Only</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/club-med.shtml"><FONT COLOR ="#FFFFFF">Club Med</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/cruise-specials.php"><FONT COLOR ="#FFFFFF">Cruise Specials</FONT></a>');
document.write('<a href="http://www.europe4less.ca"><FONT COLOR ="#FFFFFF">Europe Specials</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/rbc-insurance.shtml"><FONT COLOR ="#FFFFFF">RBC Insurance</FONT></a>');
document.write('<a href="http://www.riu.ca"><FONT COLOR ="#FFFFFF">RIU Resorts</FONT></a>');
document.write('<a href="http://www.travellastminute.ca/tlm/las-vegas-specials.shtml"><FONT COLOR ="#FFFFFF">Vegas Specials</FONT></a>');




document.write('</div>');

document.write('<br>');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;<span class="menuphonetag">For discounted prices on travel packages book online 24/7 or call us Toll Free:</span><span class="menuphonetagb">&nbsp;1.866.321.8747</span>');


document.write('<script type="text/javascript">');

document.write('tabdropdown.init("glowmenu", "auto")');

document.write('</script>');




document.write('</td></tr>');



document.write('<tr><td align="left" nowrap>');



// END MENU LINKS


//document.write('<a href="index.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, \'150px\')" onMouseout="delayhidemenu()">Europe');
//document.write('</a>');
//document.write('<a href="index.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, \'150px\')" onMouseout="delayhidemenu()">France');
//document.write('</a>');
//document.write('<a href="index.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, \'150px\')" onMouseout="delayhidemenu()">Italy');
//document.write('</a>');
//document.write('<a href="index.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, \'150px\')" onMouseout="delayhidemenu()">Greece');
//document.write('</a>');
//document.write('<a href="index.html" onClick="return clickreturnvalue()" onMouseover="dropdownmenu(this, event, menu1, \'150px\')" onMouseout="delayhidemenu()">Spain');
//document.write('</a>');


document.write('</td></tr></table>');



//  End -->