
// POP-UP WINDOW

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// NEW POP-UP WINDOW

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=320');");
}

// PRINT PAGE

function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}


// --------GOOGLE MAP----------

//Inst from www.google.com/apis/maps/documentation

//<![CDATA[
function load() { if (GBrowserIsCompatible()) {
   var map = new GMap2(document.getElementById("map"));

//grid ref (from multimap) in brackets 
   var center = new GLatLng(54.56313,-1.89242);

//Set magnification
   map.setCenter(center, 11);

//Place a marker in the center of the map 
   var marker = new GMarker(center);
   map.addOverlay(marker);

//Add Controls - with scaling zoom
   map.addControl(new GLargeMapControl());
   map.addControl(new GMapTypeControl());

    } } //]]> 
    

// ----------SLIDESHOW--------------

// AA

// Set Speed (milliseconds)
var AASpeed = 4000;
// Duration of crossfade (seconds)
var AAcrossFadeDuration = 9;
// Specify the image files
var AAPic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

AAPic[0] = 'images/slide_ext_cott.jpg'
AAPic[1] = 'images/slide_view_b.jpg'
AAPic[2] = 'images/slide_lounge.jpg'
AAPic[3] = 'images/slide_kitch.jpg'
AAPic[4] = 'images/slide_garden1.jpg'
AAPic[5] = 'images/slide_bed_doub.jpg'


// do not edit anything below this line
var AAt;
var AAj = 0;
var AAp = AAPic.length;
var AApreLoad = new Array();
for (AAi = 0; AAi < AAp; AAi++) {
AApreLoad[AAi] = new Image();
AApreLoad[AAi].src = AAPic[AAi];
}
function runAA() {
if (document.all) {
document.images.AA.style.filter="blendTrans(duration=2)";
document.images.AA.style.filter="blendTrans(duration=AAcrossFadeDuration)";
document.images.AA.filters.blendTrans.Apply();
}
document.images.AA.src = AApreLoad[AAj].src;
if (document.all) {
document.images.AA.filters.blendTrans.Play();
}
AAj = AAj + 1;
if (AAj > (AAp - 1)) AAj = 0 ;
AAt = setTimeout('runAA()', AASpeed);
}