GPath = "/";
function redirectbourn()
{
    var answer = confirm("LD Bournemouth has moved. Do you wish to transfer to the new site?")
	if (answer){
		window.location = "http://www.allanandbath.co.uk/";
	}
}
function redirectwin()
{
    var answer = confirm("Winchester has moved to Leaders. Do you wish to transfer to the Leaders site?")
	if (answer){
		window.location = "http://www.leaders.co.uk/Property-In-Winchester";
	}
}
function SendSite(p){
	
	path=GPath + "send.aspx?p=" + p;
	
	gg = open( path, "Send",'width=450,height=415,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no' );
	gg.focus();
	return true;
}
function EditPage(c,p){
	path=GPath + "admin/edit.aspx?ctlid=" + c + "&pgid=" + p;
	gg = open( path, "EditPage",'width=850,height=600,status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=yes' );
	gg.focus();
}

function printpage() {
window.print(); 
return false; 
}

function img_sel(img_name,prop_num,img_num,alt) {
	document.images[img_name].src = GPath + "images/PropImgs/" + prop_num + "/" + img_num + "?maxwidth=383";
	document.images[img_name].alt = alt
	return false;
}

function CkAll(ckLst){
    var el = document.getElementById(ckLst + '_0');
    var cked = el.checked;
    for(var i=1; i<200; i++)
    {
        el = document.getElementById(ckLst + '_' + i);
        if(el == null)
            return false;
        else
            el.checked = cked;
          
    }
    return false;
}
/*function Select(ckLst, ckItm){
    var table = document.getElementById(ckLst);
    var ck = document.getElementById(ckItm);
    for (var n=0; n < table.length; n++) 
        if (table.elements[n].type=='checkbox')
            table.elements[n].checked=true; 
    return false; 
}*/
function CkAll1(ck){
    for (var n=0; n < document.forms[0].length; n++) 
    {
        if (document.forms[0].elements[n].type=='checkbox')
            document.forms[0].elements[n].checked=true; 
    }
    return false; 
 }


var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
 // don't touch this
// to add more images, just continue
// the pattern, adding to the array below


// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
