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("Villa Villas, the premier site for luxury villa 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;*/ if (navigator.appName == "Microsoft Internet Explorer"){ isNavigator = "n"; }else{ isNavigator = "y"; } //bookmark function bookmark() { if (navigator.appName == 'Microsoft Internet Explorer' && parseInt(navigator.appVersion) >= 4) { window.external.AddFavorite('http://www.villavillas.com/', 'Villa Villas Call +44 (0)1202 961300'); } } //top menu code function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0 ) { // If Internet Explorer, return version number if(parseInt (ua.substring (msie+5, ua.indexOf (".", msie ))) <=4) { display = "false"; } } if (display=="true") { var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; } obj.visibility=v; } } //reset variables when layer is hidden if (v=='hide') { var clipTop = 0; var clipWidth = 210; var clipBottom = 200; var topper = 0; var lyrheight = 0; var amount = 0; } } function popitup(id) { itis = window.open("http://www.skichalets.co.uk/ipix/360.php?id="+id,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=400"); itis.moveTo(100,100); itis.focus(); } function popituppt(id) { itis = window.open("http://www.skichalets.co.uk/pt/ptviewer.php?id="+id,"","toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=425"); itis.moveTo(100,100); itis.focus(); } function getObj(name) { if (document.getElementById) { this.obj = document.getElementById(name); this.style = document.getElementById(name).style; } else if (document.all) { this.obj = document.all[name]; this.style = document.all[name].style; } else if (document.layers) { this.obj = document.layers[name]; this.style = document.layers[name]; } } var DHTML = (document.getElementById || document.all || document.layers); function changebackground(id,type) { if(!DHTML) return; thelayer = new getObj(id); if (thelayer == false) return; if(type == 0) { thelayer.style.background = "#ffffff"; thelayer.style.color = "cc3333"; } else { thelayer.style.background = "#cc3333"; thelayer.style.color = "#ffffff"; } } function showlayer(layer,arg2,action) { //v3.0 //var ua = window.navigator.userAgent; //var msie = ua.indexOf ( "MSIE " ); //var display = "true"; // if ( msie > 0 ) { // If Internet Explorer, return version number // if(parseInt (ua.substring (msie+5, ua.indexOf (".", msie ))) <=3) { // display = "false"; // } // // } if (!DHTML) return; thelayer = new getObj(layer); if (thelayer == false) return; if(action == 'show') { thelayer.style.visibility = "visible"; } else { thelayer.style.visibility = "hidden"; } }