<!--

//The functions below control OnMouseOver events. Left in for reference but unused.

function image_restore() {
  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 preload_images() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preload_images.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function find_object(n, d) {
  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=find_object(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swap_image() {
  var i,j=0,x,a=swap_image.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=find_object(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//This function silently disables the right click of a mouse to help prevent people 
//from copying content, as requested to help protect artists' work.  Easy to bypass though.

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

//The following function control links from the archive page.

function electric_window() {
awindow = window.open("http://electric-blue.co.uk/");
}

//The following function control links from the hag page.

function archive_window_2006() {
awindow = window.open("archive/2006/index.html");
}
function archive_window_2007() {
awindow = window.open("archive/2007/index.html");
}

//The following functions control links from the links page.

function amy_hield_window() {
awindow = window.open("http://amyhield.co.uk/");
}
function bronte_window() {
awindow = window.open("http://www.bronte-country.com/");
}
function fairydogmother_window() {
awindow = window.open("http://www.fairydogmother.co.uk/");
}
function hawvil_window() {
awindow = window.open("http://www.haworth-village.org.uk/");
}
function hebden_window() {
awindow = window.open("http://www.hebdenbridgeflamenco.org.uk/");
}
function maggie_window() {
awindow = window.open("http://www.maggieboyle.co.uk/");
} 
function pied_piper_window() {
awindow = window.open("http://www.pied-piper-pianos.co.uk/");
}
function simon_window() {
awindow = window.open("http://www.simonwarner.co.uk/");
}
function worth_window() {
awindow = window.open("http://www.kwvr.co.uk/");
}

//The following functions control links from the sponsors page.

function awards_window() {
awindow = window.open("http://www.awardsforall.org.uk/");
}
function bradford_window() {
awindow = window.open("http://www.bradford.gov.uk/");
}
function cnet_window() {
awindow = window.open("http://www.cnet.org.uk/");
}
function lnf_window() {
awindow = window.open("http://www.cffc.co.uk/grants/networkfund/");
}
function registry_window() {
awindow = window.open("http://www.theoldregistryhaworth.co.uk/");
}

//-->