function chooseoption()
  {
    ans=confirm("Brochure download may take some time dependent on your internet connection. If you do not want to wait, please click on 'Cancel' to Request a Brochure in the post");
	if(ans)
     start_down('friars_pride_brochure.pdf')
	else
	 window.location.href='requestbrochure.php';
  }

// Set slideShowSpeed (milliseconds)
var slideShowSpeed_top = 13000;

// Duration of crossfade (seconds)
var crossFadeDuration_top = 300;

// Specify the image files



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() {//alert("in")

var SrcStr = preLoad[j].src;
var srcArr = SrcStr.split(".");
var datetime = new Date();
//alert(document.getElementById("bannerlink").href);
document.getElementById("topbannerlink").href = LinkPic1[j];
//alert(document.getElementById("topbannerlink").href);

if(srcArr[srcArr.length - 1] == "swf" || srcArr[srcArr.length - 1] == "SWF")
{
	
	//document.images.TopSlideShow.style.display="none";	
	//document.getElementById("wrapper").style.display="";

	document.getElementById("wrapper").innerHTML='<embed id="TopSlideShow_swf" src="'+preLoad[j].src+'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="475" height="93" scale="exactfit" wmode="transparent"></embed>';	
	
	/*var Flash = document.getElementById("TopSlideShowSWF");
	Flash.style.display="block";
	Flash.src = preLoad[j].src;*/

}
else
{
	//document.embeds['TopSlideShow_swf'].style.display="none";
	
	//document.getElementById("wrapper").style.display="none";	
	document.getElementById("wrapper").innerHTML='<img name="TopSlideShowIMG" id="TopSlideShowImg" src="'+preLoad[j].src+'"  border="0">';
	//document.images.TopSlideShowIMG.style.display="block";	
	
	if (document.all) {
	document.images.TopSlideShowIMG.style.filter="blendTrans (duration=2)";
	document.images.TopSlideShowIMG.style.filter="blendTrans (duration=crossFadeDuration_top)";
	
	document.images.TopSlideShowIMG.filters.blendTrans.Apply ();
	}
	document.images.TopSlideShowIMG.src = preLoad[j].src;
	if (document.all) {
	document.images.TopSlideShowIMG.filters.blendTrans.Play();
	}
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed_top);
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

// End -->


// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;

// Duration of crossfade (seconds)
var crossFadeDuration = 300;

// Specify the image files

var t;
var jj = 0;
var pp = Pic2.length;
var preLoadBottom = new Array();
for (ii = 0; ii < pp; ii++) {
preLoadBottom[ii] = new Image();
preLoadBottom[ii].src = Pic2[ii];
}
function runBottomSlideShow() {//alert("in")

var SrcStr = preLoadBottom[jj].src;
var srcArr = SrcStr.split(".");
var datetime = new Date();
document.getElementById("bottombannerlink").href = LinkPic2[j];
if(srcArr[srcArr.length - 1] == "swf" || srcArr[srcArr.length - 1] == "SWF")
{
	document.getElementById("wrapper_bottom").innerHTML='<embed id="BottomSlideShow_swf" src="'+preLoadBottom[jj].src+'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="379" height="186" scale="exactfit" wmode="transparent"></embed>';	
	
}
else
{
	//document.getElementById("wrapper_bottom").style.display="none";	
	//document.getElementById("wrapper_bottom").innerHTML="";
	//document.images.BottomSlideShow.style.display="";	
	
	document.getElementById("wrapper_bottom").innerHTML='<img name="BottomSlideShowIMG" id="BottomSlideShowImg" src="'+preLoadBottom[jj].src+'" border="0">';
	
	if (document.all) {
	document.images.BottomSlideShowIMG.style.filter="blendTrans (duration=2)";
	document.images.BottomSlideShowIMG.style.filter="blendTrans (duration=crossFadeDuration)";
	
	document.images.BottomSlideShowIMG.filters.blendTrans.Apply ();
	}
	document.images.BottomSlideShowIMG.src = preLoadBottom[jj].src;
	if (document.all) {
	document.images.BottomSlideShowIMG.filters.blendTrans.Play();
	}
}
jj = jj + 1;
if (jj > (pp - 1)) jj = 0;
tt = setTimeout('runBottomSlideShow()', slideShowSpeed);
}
// End -->

