/*header("Content-type: text/html");
?>
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
return false;
}else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert("Doggypaddle, the premier site for luxury water sport holidays!");
return false;
}
return true;
}
document.onmousedown=right;
document.onmouseup=right;
if (document.layers){
window.captureEvents(Event.MOUSEDOWN);
}
if (document.layers){
window.captureEvents(Event.MOUSEUP);
}
window.onmousedown=right;
window.onmouseup=right;*/
var DHTML = (document.getElementById || document.all || document.layers);
var imgarrowon = new Image();
var imgarrowoff = new Image();
imgarrowon.src = "/images/topmenu_arrow_on.gif";
imgarrowoff.src = "/images/topmenu_arrow_off.gif";
function toggleMenu(currMenu) {
if(document.getElementById) {
thisMenu = document.getElementById(currMenu).style
if(thisMenu.display == "block") {
thisMenu.display = "none"
} else {
thisMenu.display = "block"
}
return false
} else {
return true
}
}
function showlayer(layer,arg2,action) {
if (!DHTML) return;
thelayer = new getObj(layer);
if (thelayer == false) return;
if(action == 'show') {
thelayer.style.visibility = "visible";
} else {
thelayer.style.visibility = "hidden";
}
if(arg2 != "") {
theimage = new getObj(arg2);
if (theimage == false) return;
if(action == 'show') {
theimage.src = imgarrowon.src;
} else {
theimage.src = imgarrowoff.src;
}
}
}
function getObj(name){
if (document.getElementById) {
if(document.getElementById(name)) {
return document.getElementById(name);
} else {
return false;
}
} else if (document.all) {
if(document.all[name]) {
return document.all[name];
} else {
return false;
}
} else if (document.layers) {
return findlayer(document.layers, name);
}
}
function changebackground(id,link,type)
{
if(!DHTML) return;
thebg = new getObj(id);
thetext = new getObj(link);
if (thelayer == false) return;
if(type == 0) {
thebg.style.background = "#E1F0FE";
thetext.style.color = "#000000"
} else {
thebg.style.background = "#514C8C";
thetext.style.color = "#ffffff";
}
}
function imageborder(imagename, type)
{
if (!DHTML) return;
theimage = new getObj(imagename);
if (theimage == false) return;
if(type == 0) {
theimage.style.borderColor = "#514c8c";
} else {
theimage.style.borderColor = "#99ccff";
}
}
function listhover(itemid,type) {
if(!DHTML) return;
theitem = new getObj(itemid);
if(theitem == false) return;
if(type == "0") {
theitem.style.backgroundColor= "#99ccff";
} else {
theitem.style.backgroundColor = "#E1F0FE";
}
}
function y2k(number) { return (number < 1000) ? number + 1900 : number; }
function isdate() {
// checks if date passed is valid
day = document.search.today.options[document.search.today.selectedIndex].value;
month = document.search.tomonth.options[document.search.tomonth.selectedIndex].value;
year = document.search.toyear.options[document.search.toyear.selectedIndex].value;
//alert(day + "/" + month + "/" + year);
if(day != "*"){
var today = new Date();
year = ((!year) ? y2k(today.getYear()):year);
month = ((!month) ? today.getMonth():month-1);
if (!day) {
return false;
}
var test = new Date(year,month,day);
if ((y2k(test.getYear()) == year) && (month == test.getMonth()) && (day == test.getDate())) {
return true;
} else {
alert("Please select a valid departure date!");
return false;
}
}
}
function changeText(text,itemid) {
if(!DHTML) return;
theitem = new getObj(itemid);
if(theitem == false) return;
theitem.innerHTML = text;
}
function bookmark() {
if (navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) >= 4) {
window.external.AddFavorite('http://www.doggypaddle.com/', 'DoggyPaddle - Call +44 (0)1202 961300');
}
}