function phplive()
{
h=document.getElementsByTagName("head")[0];
a=Array();
default_img=Array();
default_link=Array();
extra_js=Array();
a[0]=Array("phpLiveDiv",1); // search box
a[1]=Array("englishPHP",4); // banner placement, <> index
a[2]=Array("spanishPHP",3); // banner placement spanish dept, <> index
a[3]=Array("homePHPLive",5); // banner placement, = index page
a[3]=Array("englishPHPweather",6); // banner placement, = index page

for(i=0;i<a.length;i++){
if(document.getElementById(a[i][0])){
s=document.createElement('script');
s.id='phpLiveScript';
s.type='text/javascript';
s.language='Javascript';
s.src='http://www.cabovillas.com/phplive/js/status_image.php?base_url=http://www.cabovillas.com/phplive&l=cabovillas_php&x=1&deptid=' + a[i][1];
h.appendChild(s);
if(a[i][2]) default_img[a[i][1]]=a[i][2];
if(a[i][3]) default_link[a[i][1]]=a[i][3];
if(a[i][4]) extra_js[a[i][1]]=a[i][4];
setTimeout("php_live_display_"+a[i][1]+"('"+a[i][0]+"')", 2000);
}
}
}
function openPDF(){var msg="We recommend a high-speed Internet connection of 100k or above to view this PDF. If you are on a 56k Modem we recommend against downloading this document.\n\nClick OK to download the Los Cabos Insider Guide PDF.\nClick Cancel to abort download.";if(confirm(msg)){var PDFwin=window.open("http://www.cabovillas.com/PDF/LC_InsiderGuide.pdf","pdfwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=900,height=700,left=0,top=0");}}