function linkthis() {
w = window.open("","mywindow","status=1,width=600,height=200,resizable=1,dependent=1,scrollbars=1");
w.document.write('<div style="background:#eee;color:#000;font:14px serif;"><code>&lt;a href=\"' + parent.location.href + '\"&gt;');
w.document.write('<br />');
w.document.write(document.title);
w.document.write('<br />');
w.document.write('&lt;/a&gt;</code></div>');
w.document.write('<br />');
w.document.write('<div style="font:12px sans-serif;">Copy and Paste the code above to create a link to this page');
w.document.write('<br />');
w.document.write('<A href="javascript: self.close()">Close this window</A></div>');
}

function bookthis() {
var ver = navigator.appName;
var num = parseInt(navigator.appVersion);
if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
document.write('<a href="javascript:window.external.AddFavorite(document.location.href,document.title);" >Bookmark Us</a>');
}else{document.write('(Ctrl+D to Bookmark)')} 
}

function startList() {
if (document.all&&document.getElementById) {navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {node = navRoot.childNodes[i];
if (node.nodeName=="LI") {node.onmouseover=function() {this.className+=" over";}
node.onmouseout=function() {this.className=this.className.replace(" over", "");}}}}
}

function setDateDrops(theForm) {
if (typeof theForm != 'undefined'){
now = new Date();
theday = now.getDate();
themonth = now.getMonth();
theyear = now.getFullYear();
if (theday > 31) {
themonth = themonth+1;
theday = 1;
}
if (themonth > 12) {
theyear = theyear+1;
themonth = 1;
}
theForm.day.selectedIndex = theday;
theForm.month.selectedIndex = themonth;
var found = 0;
for(i=1;i<theForm.year.options.length;i++) {
if (theForm.year.options[i].value == theyear) {
found = i;
break;
}
}
theForm.year.selectedIndex = found;
}}

function setDateDrops2() {
var currentDate = new Date(); var currentYear = 1900 + currentDate.getYear();
var dailyMS = 24*60*60*1000;
var arrivalDate = new Date(currentDate.getTime());
var departureDate = new Date(currentDate.getTime() + 1*dailyMS);
var arrivalYear = 1900+arrivalDate.getYear(); var arrivalMonth = 1+arrivalDate.getMonth(); var arrivalDay = arrivalDate.getDate();
var departureYear = 1900+departureDate.getYear(); var departureMonth = 1+departureDate.getMonth(); var departureDay = departureDate.getDate();
var a=document.frm;
if ((a.checkin_monthday.selectedIndex == 0) && (a.checkin_month.selectedIndex == 0) && (a.checkin_year.selectedIndex == 0) &&
        (a.checkout_monthday.selectedIndex == 0) && (a.checkout_month.selectedIndex == 0) && (a.checkout_year.selectedIndex == 0)){
a.checkin_monthday.options[arrivalDay-1].selected = true;
a.checkin_month.options[arrivalMonth-1].selected = true;
a.checkin_year.options[arrivalYear-currentYear].selected = true;
a.checkout_monthday.options[departureDay-1].selected = true;
a.checkout_month.options[departureMonth-1].selected = true;
a.checkout_year.options[departureYear-currentYear].selected = true;
}
}
function show(n){
var id="r"+n;
if(document.all) eval("document.all." +id+ ".style.display = 'block'");
if (document.layers) document.layers[id].display = 'block';
if (document.getElementById &&!document.all) {
hza = document.getElementById(id);
hza.style.display = 'block';
}
}
function hide(n){
var id="r"+n;
if(document.all) eval("document.all." +id+ ".style.display = 'none'");
if (document.layers) document.layers[id].display = 'none';
if (document.getElementById &&!document.all) {
hza = document.getElementById(id);
hza.style.display = 'none';
}
}
function startrotator(count) {
if(count>1){
rotateX=1;
rotateN=count;
rotate();
}
}
function rotate(){
hide(rotateX);
rotateX = rotateX + 1;
if (rotateX > rotateN) rotateX = 1;
show(rotateX);
timer = setTimeout("rotate()", 5000);
}

