// Start of Andy's code

    /* Variables for rotating objects */
    var over = false; // start/stop the rotation
    var direction = 'cw';
    var rotateTimer;
    var pos;
    var r = 65;           		// radius
    var xoff = 90;        		// x offset
    var yoff = 112;       		// y offset
    var pi = Math.PI;     		// get pi
    var inc = pi / 180;   		// degrees per rotation cycle
    var objects;          		// objects to be rotated
    var pos;              		// position for objects
    var stopped = false;  		// set permanent stopped
    var fast = false;			// speed variable
    var hideWidth = 130;		// the angle in which the objects become hid

    /* Show an object */
    function showObject(object) {
        object.visibility = VISIBLE;
        over = true;
    }

    /* Hide an object */
    function hideObject(object) {
        object.visibility = HIDDEN;
        over = false;
        if (direction == 'cw' && !stopped) {
            rotateObjects(false);
        }
    }

    /* Rotate selected objects */

	/*
	Removed this function as it is not needed on the new homepage

    function rotateObjects() {
    	if (!over) {
            for (var i = 0; i < pos.length; i++) {
                pos[i] += inc;
                objects[i].left = (r * Math.cos(pos[i])) + xoff
                objects[i].top = (r * Math.sin(pos[i])) + yoff;

				if (isNS && objects[i].left >  hideWidth) {
					objects[i].visibility = VISIBLE;
				} else if (isNS)  {
					objects[i].visibility = HIDDEN;
				}

				if (!isNS) {
				  var xVal = objects[i].left.substring(0,(objects[i].left.length-2));
				  if (xVal > hideWidth) {
					objects[i].visibility = VISIBLE;
				  } else {
					objects[i].visibility = HIDDEN;
				  }
				}
            }
			clearTimeout(rotateTimer);
			if (fast) {
				rotateTimer = setTimeout("rotateObjects()", 20);
			} else {
				rotateTimer = setTimeout("rotateObjects()", 70);
			}
    	}
    }

	*/

     /* Initialize selected objects for rotation */

	/*
	function initObjects() {
		 Here is the array of HTML elements that will be rotated, from fly1 to fly(X)
		   Just put the shortcut variables to the HTML elements in this little array
		   and they will be rotated automatically 


		objects = new Array(fly1, fly2, fly3, fly4, fly5, fly6, fly7, fly8, fly9, fly10, fly11, fly12, fly13, fly14, fly15, fly16, fly17, fly18, fly19, fly20);
		pos = new Array();
		pos[0] = 0;
			for (var i = 1; i < objects.length; i++) {
				pos[i] = parseFloat(pos[i - 1] + ((2 * pi) / objects.length));
			}
		rotateObjects();
	}

    function stopRotate() {
        over = true;
        stopped = true;
    }

    function startRotate() {
        over = false;
        stopped = false;
        rotateObjects();
    }

    function changeSpeed(set) {
        fast = set;
        clearTimeout(rotateTimer);
        rotateObjects();
    }

*/

// End of Andy's code

// Lee's code to open a page on launch

	function MM_openBrWindow(theURL,winName,features) 
	{ //v2.0
		window.open(theURL,winName,features);
	}
// End Of Lee's code

    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_preloadImages() { //v3.0
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.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 MM_findObj(n, d) { //v3.0
        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); return x;
    }

    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];}
    }

// 22/03/01	Usage launch_window('page_to_display', width, height, 'attributes string'); return false;

function launch_window(dest, newWidth, newHeight, attr, target) 
{
	if( ! target )
		target = "_blank";
	win=window.open(dest, target, "width="+newWidth+",height="+newHeight+","+"status=no,menubar=no,resizable=no,alwaysraised=yes,"+attr);
	// Set the window position just off the right edge of the screen
	position=newWidth+40;
	win.moveTo(screen.width-position,screen.height/2-newHeight/2);
}

function openurl(htmlurl) 
{
    var popup = window.open(htmlurl,"player",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=468,height=440');
}

var bookmarkurl=document.location
var bookmarktitle=document.title

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

