File: //old_home_backup/beckettfoundation.org.uk/public_html/scripts/bif.js
function openPopup(url,nme,w,h,s,r,t,root)
{
window.name = "ah";
var s1 = r1 = t1 = 'no';
if (s) s1 = s;
if (r) r1 = r;
if (t) t1 = t;
if (root) window.parent.name = root;
window.open(url,nme,'height='+h+',width='+w+',scrollbars='+s1+',resizable='+r1+',toolbar='+t1);
}
function preLoad()
{
//alert("THS in PRELOAD");
if(document.images)
{
//alert("THS in PRELOAD IF IMAGES");
var suffices = new Array();
// Supported rollover image types
suffices[0] = '0.gif';
suffices[1] = '0.jpg';
suffices[2] = '0.png';
for(i = 0; i < document.images.length; i++)
{
// Set suffix start point and the suffix
var suffixStart = -1;
var suffix;
for(j = 0; j < suffices.length && suffixStart < 0; j++)
{
suffixStart = document.images[i].src.lastIndexOf(suffices[j]);
suffix = document.images[i].src.substring(suffixStart+1, suffixStart+5);
}
if(suffixStart >= 0)
{
// It's a rollover
var initial = new Image();
// Record initial image
initial.src = document.images[i].src;
document.images[i].initial = initial;
// Load & record highlight image
var highlight = new Image();
highlight.src = document.images[i].src.substring(0, suffixStart) + '1' + suffix;
document.images[i].highlight = highlight;
}
}
}
}
function MM_findObj(n, d) { //v4.01
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<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}