
var imageExpandInitialized=false;var emailAddress=new Array();emailAddress[0]="sendemail1,email,cynthia,bookloverstravel,com";emailAddress[1]="sendemail2,email,connie,bookloverstravel,com";emailAddress[2]="sendemail3,email,info,bookloverstravel,com";emailAddress[3]="sendemail4,email,news,bookloverstravel,com";function isDefined(property){return(typeof property!='undefined');}
function roundBottomCorners(){$("#maincontent").corner("bottom");}
function escramble(){var linkText;if((isDefined(document.getElementById))&&(isDefined(document.createElement)))
{try{for(var i=0;i<emailAddress.length;i++){var x=emailAddress[i].split(',');var element=document.getElementById(x[0]);var theLink="mailto:"+x[2]+"@"+x[3]+"."+x[4];emailLink=document.createElement("a");emailLink.href=theLink;var linkSpan=emailLink.appendChild(document.createElement("span"));linkText=x[1];if(x[1]=="email")
{linkText=x[2]+"@"+x[3]+"."+x[4];}
linkSpan.appendChild(document.createTextNode(linkText));element.parentNode.replaceChild(emailLink,element)}}
catch(err){}}}
function expandImage(imgLoc)
{var imageTitle=$(imgLoc>"img").attr("title");var largeImage=$(imgLoc).attr("rel");var bigWin=window.open("","bigWin","width=500, height=460, toolbar=no, status=no, menubar=no, resizable=no");bigWin.document.open();bigWin.document.write('<html><head><title>'+imageTitle+'</title>');bigWin.document.write('<link href="styles.css" rel="stylesheet" type="text/css"/><link href="styles-expand.css" rel="stylesheet" type="text/css"/></head>');bigWin.document.write("<body>");bigWin.document.write('<p><img  src="images/expanded/'+largeImage+'" alt="expanded image"/></p>');bigWin.document.write('<a href="#" onclick="window.close();return false;">click to close</a></body></html>');bigWin.focus();}
function loadMap(){if(GBrowserIsCompatible()){var map=new GMap2(document.getElementById("map"));var point=new GLatLng(53.20,-8.2);map.setCenter(point,6);point=new GLatLng(53.333,-6.249);map.addOverlay(createMarker(map,point,"Dublin"));point=new GLatLng(53.683,-6.467);map.addOverlay(createMarker(map,point,"Newgrange"));point=new GLatLng(53.5434808,-9.2860075);map.addOverlay(createMarker(map,point,"Cong"));point=new GLatLng(53.5616667,-9.8880556);map.addOverlay(createMarker(map,point,"Kylemore Abbey"));point=new GLatLng(53.10694444,-9.65555555);map.addOverlay(createMarker(map,point,"Inishmore (Aran Islands)"));point=new GLatLng(53.2833,-9.0167);map.addOverlay(createMarker(map,point,"Galway"));point=new GLatLng(53.1394,-8.9336);map.addOverlay(createMarker(map,point,"Kinvara"));point=new GLatLng(52.9714578,-9.4247540);map.addOverlay(createMarker(map,point,"Cliffs of Moher"));point=new GLatLng(51.70750,-8.53056);map.addOverlay(createMarker(map,point,"Kinsale"));point=new GLatLng(52.255731,-10.017206);map.addOverlay(createMarker(map,point,"Dingle Peninsula"));point=new GLatLng(52.0597,-9.4958);map.addOverlay(createMarker(map,point,"Killarney"));point=new GLatLng(52.65,-7.25);map.addOverlay(createMarker(map,point,"Kilkenny"));point=new GLatLng(53.035556,-6.269444);map.addOverlay(createMarker(map,point,"Glendalough"));point=new GLatLng(51.8572,-8.2992);map.addOverlay(createMarker(map,point,"Cobh"));point=new GLatLng(52.5,-7.883333);map.addOverlay(createMarker(map,point,"Cashel"));point=new GLatLng(53.185555,-6.180833);map.addOverlay(createMarker(map,point,"Powerscourt"));}}
function createMarker(map,point,message){var blueIcon=new GIcon(G_DEFAULT_ICON);blueIcon.image="http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png";markerOptions={icon:blueIcon,title:message};var marker=new GMarker(point,markerOptions);return marker;}
function setSearch()
{var f=document.getElementById('cse-search-box');if(!f){f=document.getElementById('searchbox_demo');}
if(f&&f.q){var q=f.q;var n=navigator;var l=location;var b=function(){if(q.value==''){q.style.background='#fff0d6 url(images/google-custom-search.jpg) left no-repeat';}};var f=function(){q.style.background='#fff0d6';q.style.border='none';};q.onfocus=f;q.onblur=b;if(!/[&?]q=[^&]/.test(l.search)){b();}}
$("#submit-btn").click(function(){$("form")[0].submit();return false;});}
function showTextLinks(){var noflash='<div>\n'
+'<p><a href="book-tours-Ireland.html">Ireland</a>: From the Celts to the Celtic Tiger May 8 - 23, 2009</p>\n'
+'<p><a href="book-tours-Maui.html">Maui</a>: The Magic Isle Sep 12- 29, 2009</p>\n'
+'<p><a href="book-tours-Maui.html">Italy</a>: The History and Mystery of Florence and Venice Fall 2009</p>\n'
+'</div>';document.write(noflash);}
function hoverSendButton(){$("#sendbutton").hover(function(){$("#sendbutton").attr({src:"images/send-email-button-on.jpg"});},function(){$("#sendbutton").attr({src:"images/send-email-button-off.jpg"});});}
