/*	DISGRUNTLED GOAT javascript functions library, v1.00
	(c) 2006 Harry Sheppard, All Rights Reserved */

function popup(URL,popName,Width,Height) {
	if (Width == "" || Width == null) Width = 700;
	if (Height == "" || Height == null) Height = 560;
	var features =
		',directories=0'+
		',location=0'   +
		',menubar=0'   +
		',scrollbars=1'+
		',status=0'   +
		',toolbar=0'   +
		',resizable=1' +
		',width=' + Width +
		',height=' + Height +
		',screenX=15' +
		',screenY=15' +
		',top=15'+
		',left=15';
	URL = URL.replace(/\s/,'%20');
	wind=window.open (URL, popName, features);
	wind.focus();
}




/* Most of this is bollocks and doesn't work yet :-)

function resizeWindow(popName,Width,Height) {
	if (Width == "" || Width == null) Width = 700;
	if (Height == "" || Height == null) Height = 550;
	this.width = Width;
	this.height = Height;
}

function swapImage(image,id_)
{
	document.master.src = image;
	id = id_;
	hide();
}

function hide()
{
   var index = 0;
   var unset = true;
   var largeLink = document.getElementById('largeLink');
   var noLargeLink = document.getElementById('noLargeLink');
   while(index < largeIds.length)
   {
       var entry = largeIds[index];
       if(entry.indexOf('[' + id + ']') > 0)
       {
        if (largeLink){
            largeLink.style.visibility = "visible";
        }
        if (noLargeLink)
        {
            noLargeLink.style.visibility = "hidden";
        }
        unset = false;
       }
        index= index + 1;
   }
   if(unset)
   {
        if (largeLink)
        {
            largeLink.style.visibility = "hidden";
        }
        if (noLargeLink)
        {
            noLargeLink.style.visibility = "visible";
        }
   }
}

*/