



//This script is Copywrited BHprogramming (c) 2004

//for more information please contact: info@bhprog.co.uk

































var deg2rad=(2*Math.PI)/360;
var steprad = (2*Math.PI) / (nlink.length -1);

function setup_map(angle) {
	for (q=1;q<toplimit;q++) {
		document.getElementById('float'+q).style.left = (300 + Math.round(Math.sin(angle+(steprad*q)) * 250) - (document.getElementById('float'+q).clientWidth /2 ) ) + "px";
		document.getElementById('float'+q).style.top = (170 + Math.round(Math.cos(angle+(steprad*q)) * 110) - (document.getElementById('float'+q).clientHeight /2 ) ) + "px";
		document.getElementById('float'+q).style.zIndex = Math.round(Math.cos(angle+(steprad*q)) * 100)
	}
}

function draw_map(nolink,title) {
	if (document.all) {
		document.write('<DIV STYLE="position:relative; width:600px; height:380px">');
		document.write('');
		for (q=1;q<toplimit;q++) {
			x = 250 + Math.round(Math.sin(angle+(steprad*q)) * 250);
			y = 120 + Math.round(Math.cos(angle+(steprad*q)) * 110);
			document.write('<DIV STYLE="position:absolute; top:'+y+'px; left:'+x+'px" ID="float'+q+'">');

			document.write('<TABLE BORDER="1" CELLPADDING="0" CELLSPACING="0"> <TR> <TD>');
			document.write('<A HREF="'+nlink[q]+'" ONMOUSEOVER="settitle(\''+ntitle[q]+'\');" ONMOUSEOUT="resettitle();">');
			document.write('<IMG SRC="'+nimage[q]+'" ALT="'+ntitle[q]+'" BORDER=0>');
			document.write('</A></TD> </TR> </TABLE>');

			//document.write('<IMG SRC="images/'+ns[q]+'/'+ns[q]+'_t1.jpg">');
			document.write('</DIV>');
		}
		document.write('<DIV STYLE="position:absolute; top:140px; left:0px; width:600px" ID="float'+q+'">');
		document.write('<H1 ID="hheader" CLASS="page title" ALIGN=CENTER>'+title+'</H1>'); 
		document.write('</DIV>');
		document.write('<DIV STYLE="position:absolute; top:330px; left:550px;" ID="float'+q+'">');
		document.write('<P ALIGN=CENTER><A HREF="javascript:void(0)" TITLE="Reverse" ONMOUSEOVER="setstep(-0.1);" ONMOUSEOUT="resetstep();">&lt;</A> ');
		document.write('<A HREF="javascript:void(0);" TITLE="Stop" ONMOUSEOVER="setstep(0);">x</A> '); 
		document.write('<A HREF="javascript:void(0)" TITLE="Fast" ONMOUSEOVER="setstep(0.15);" ONMOUSEOUT="resetstep();">&gt;</A></P>'); 
		document.write('</DIV>');

		document.write('</DIV>');
		document.write('<P><SMALL><SMALL>Click on a picture to view in more detail. Point to a picture to see its title.</SMALL></SMALL></P>');
	} else {
		if (location.replace) {
			location.replace(nolink);
		} else {
			location.href = nolink;
		}
	}
}

function draw_table(nolink,title) {
	document.write('<TABLE><TR>');
	for (q=1;q<toplimit;q++) {
		document.write('<TD VALIGN="MIDDLE" ALIGN="CENTER" WIDTH="150" HEIGHT="150">');
		document.write('<TABLE BORDER="1" CELLPADDING="0" CELLSPACING="0"> <TR> <TD>');
		document.write('<A HREF="'+nlink[q]+'" ONMOUSEOVER="settitle(\''+ntitle[q]+'\');" ONMOUSEOUT="resettitle();">');
		document.write('<IMG SRC="'+nimage[q]+'" ALT="'+ntitle[q]+'" BORDER=0>');
		document.write('</A></TD> </TR> </TABLE>');
		document.write('</TD>');
		if (q%4 == 0) {
			document.write('</TR><TR>');
		}
	}

	document.write('</TR></TABLE>');

}

function draw_links() {
	document.write('<UL>');
	for (q=1;q<toplimit;q++) {
		document.write('<LI><A HREF="'+nlink[q]+'" TITLE="'+ntitle[q]+'">'+ntitle[q]+'</A></LI>');
	}
	document.write('</UL>');
}



var tim;
var angle = Math.PI * 1.5 ;
var nstep = 0.01;

function setstep(a) {
	nstep = a;
}

function resetstep() {
	nstep = 0.01;
}

function go() {
	setup_map(angle);
	angle = angle + nstep;
	if (angle > (2*Math.PI)) {
		angle = angle - (2*Math.PI);
	} else if (angle < 0) {
		angle = angle + (2*Math.PI);
	}
}

function start_timer() {
	angle = Math.PI * 1.5;
	tim = setInterval("go()",100);
}

