var linking = [
["Application Form","http://www.lategetaway.com/bookingform.htm","blank","Ad"],
["Example Links","http://www.lategetaway.com/link.htm","top","Ad"],
["Login","http://www.lategetaway.com/admin/","top","Ad"],
["Rates","http://www.lategetaway.com/advertise.htm","top","Ad"],
["Terms&nbsp;&amp;&nbsp;Conditions","http://www.lategetaway.com/terms.htm","blank","Ad"],
["A&nbsp;List&nbsp;of&nbsp;Properties","http://www.lategetaway.com/findcottage.php","top","Cot"],
["Available&nbsp;Next&nbsp;Week","cottages.php","top","Cot"],
["B&nbsp;&amp;&nbsp;B&nbsp;/&nbsp;Hotels","http://www.lategetaway.com/bandb","top","Cot"],
["Properties&nbsp;for&nbsp;Sale","http://www.lategetaway.com/holiday-homes-for-sale/","top","Cot"],
["Search&nbsp;by&nbsp;Date","http://www.lategetaway.com/calendar.php","top","Cot"],
["America","http://www.lategetaway.com/usa/","top","Cot"],
//["Austria","http://www.lategetaway.com/austria/","top","Cot"],
//["Australia","http://www.lategetaway.com/australia/","top","Cot"],
//["Barbados","http://www.lategetaway.com/barbados/","top","Cot"],
["Belgium","http://www.lategetaway.com/belgium/","top","Cot"],
["Bulgaria","http://www.lategetaway.com/bulgaria/","top","Cot"],
//["Cyprus","http://www.lategetaway.com/cyprus/","top","Cot"],
//["Dubai","http://www.lategetaway.com/dubai/","top","Cot"],
["France","http://www.lategetaway.com/france/","top","Cot"],
//["Greece","http://www.lategetaway.com/greece/","top","Cot"],
["Ireland","http://www.lategetaway.com/eire/","top","Cot"],
["Italy","http://www.lategetaway.com/italy/","top","Cot"],
//["Mauritius","http://www.lategetaway.com/mauritius/","top","Cot"],
//["Netherlands","http://www.lategetaway.com/netherlands/","top","Cot"],
//["New&nbsp;Zealand","http://www.lategetaway.com/new_zealand/","top","Cot"],
["Portugal","http://www.lategetaway.com/portugal/","top","Cot"],
["Puerto Rico","http://www.lategetaway.com/puerto_rico/","top","Cot"],
//["South&nbsp;Africa","http://www.lategetaway.com/southafrica/","top","Cot"],
["Spain","http://www.lategetaway.com/spain/","top","Cot"],
//["Sri&nbsp;Lanka","http://www.lategetaway.com/sri_lanka/","top","Cot"],
//["Thailand","http://www.lategetaway.com/thailand/","top","Cot"],
["Trinidad","http://www.lategetaway.com/trinidad/","top","Cot"],
["Turkey","http://www.lategetaway.com/turkey/","top","Cot"],
["United&nbsp;Kingdom","http://www.lategetaway.com/uk/","top","Cot"],
//["Main&nbsp;Home","http://www.lategetaway.com/","top","Home"],
[]];


//Menus on main web pages
function fullmenu(elmnt)
{
var size=100;
if (elmnt=='Ad') size=140;
document.write("<table style='position:absolute; visibility:hidden' id='"+elmnt+"' border='0' cellspacing='1' cellpadding='0' width='"+size+"' bgcolor='#ffffff' class='bord'>");
for (var i = 0; i < linking.length; i++)
{
if (elmnt == linking[i][3])
document.write("<tr><td class='bordsub'><a href='"+linking[i][1]+"' target='_"+linking[i][2]+"' onmouseover='window.status=&quot;"+linking[i][0]+"&quot;; return true' onmouseout='window.status=&quot; &quot;; return true'>&nbsp;"+linking[i][0]+"&nbsp;</a></td></tr>");
}
document.write("</table>");
}

//Shows menus
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}

//Hides menus
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}

//function for to change colour on mouseover
function subMenu(obj,x) 
{
	obj.backgroundColor = (x);
}

//function to change background colour
function addMenu(place, col){
	document.getElementById(place).style.background = col;
}

// email function without showing email address
var user;
var domain;
var suffix;
var linktext;
function fullemail(user, domain, suffix, linktext){
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + linktext + '</a>');
} 

function jemail(user, domain, suffix){
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}

//Shows Login
function Log(elmnt)
{
document.getElementById(elmnt).style.display="inline";
}

// function to show areas on the map
function Logout(elmnt)
{
document.getElementById(elmnt).style.display="none";
}
function Setit(str)
{
var setDat = document.getElementById('mapDetails');
if (str != "") {str = "&nbsp;Click for cottages in<br />&nbsp;"+str+".";}
else {str ="&nbsp;Click on the area you<br />&nbsp;are interested in.";}
setDat.innerHTML = str; 
}

//Tickatape style 
function ticka(str)
{
pos=0
maxlength=0
message = str
maxlength=str.length+1
writemsg()
}

//Write tickatape
function writemsg()
{
var adv=document.getElementById('drop')
if (pos<maxlength)
{
txt=message.substring(pos,0)
adv.innerHTML = txt
pos++ 
timer=setTimeout("writemsg()",50)
}
}

//change size for screen resolution
function sizeit()
{
if (screen.width < 1000)
{
document.getElementById('extra').style.display="none";
document.getElementById('content').style.width="740px";
}
}


//change size for screen resolution
function sizeitindx()
{
if (screen.width < 1000)
{
document.getElementById('extra').style.display="none";
}
}

//change size for screen resolution
function sizemain()
{
var page =  window.location.href;
var words = location.search;
var set = window.location.href.length;
var setup = words.length;
var diff = 0
diff = set-setup;
var test = page.substring(0,diff);
if (screen.width < 1000)
{
document.getElementById('extra').style.display="none";
document.getElementById('content').style.width="740px";
}
}

//Show / hide details
function togglesp(elmnt)
{
if (document.getElementById(elmnt).style.display == "block") 
{document.getElementById(elmnt).style.display="none";}
else
{document.getElementById(elmnt).style.display="block";}
}
