//set the total number of adverts below
var totAds = 15;
var AdNum;

function setfirstStyleSheet() {
// document.write(' debug on!!!!!');
document.write('<link rel="alternate stylesheet" type="text/css" href="./styles/xsmall.css" title="xsmall">');
document.write('<link rel="alternate stylesheet" type="text/css" href="./styles/small.css" title="small">');
document.write('<link rel="alternate stylesheet" type="text/css" href="./styles/large.css" title="large">');
document.write('<link rel="alternate stylesheet" type="text/css" href="./styles/xlarge.css" title="xlarge">');
var style, newstyle;
style = GetCookie("style");
  if (style != newstyle) {
document.write('<link rel="stylesheet" type="text/css" href="./styles/' + style + '.css">');
//  document.write(' "style:"' + style );
}
}

function slideWin(pgname) {
	window.open(pgname,'','fullscreen=yes, scrollbars=auto');	
}

function menubutton(foot,which,fflag,sub,picWidth,dispText){
	fontsize=110*picWidth/125;
	if (foot=="no"){
		wide='90';
		high='54';}
	else {
//		fontsize=80*picWidth/125;
		wide='60';
		high='36';}
	wide = picWidth;
	high = picWidth;
	offset = (picWidth / 2) ;
	document.write('<td valign="center">'); 
	if (sub=="yes")
		{dir=".."}
	else
		{dir="."}
	if (fflag=="yes")
		{
			document.write('<div style="position:relative; top:0px; left:0px; height:'+high+'; width:'+wide+'; "><img border=0 valign="center" src="'+dir+'/pictures/site/sun.gif" width='+wide+' height='+high+' alt="'+dispText+'">');
//			document.write('<div style="possition:absolute; top:'+high+'px; left:0px"><span class=pagetitle>' + which + '</span></div></div>');
			document.write('<div style="position:absolute; top:'+offset+'px; left:0px; text-align:center; height:'+high+'; width:'+wide+'; "><span class=menutitle><span style="color:#000000;font-size:'+fontsize+'%">' + dispText + '</span></span></div></div>');
		}
	else
		{
			document.write('<div style="position:relative; top:0px; left:0px; height:'+high+'; width:'+wide+'; "><a href="'+dir+'/'+which+'.htm"><img border=0 valign="center" src="'+dir+'/pictures/site/cloud.gif" width='+wide+' height='+high+' alt="'+dispText+'">');
			document.write('<div style="position:absolute; top:'+offset+'px; left:0px; text-align:center; height:'+high+'; width:'+wide+'; "><span class=menutitle><span style="color:#000000;font-size:'+fontsize+'%">' + dispText + '</span></span></div></a></div>');
//			document.write('<a href="'+dir+'/'+which+'.htm" title="menu"><img border=0 valign="center" src="'+dir+'/pictures/site/cloud.gif" width='+wide+' height='+high+' alt="'+which+'">');
//			document.write('<span class=pagetitle>' + which + '</span></a>');
		}
	document.write('</td>');
}

function menu(foot,page){
		var screenWidth = escape(document.body.clientWidth);
		var numPix = 9;
		var widthPercent = 100 / numPix;
	if (foot=="no"){
		AdNum = GetAdNum();
		var picWidth = (screenWidth - 220) / numPix;
// setfirstStyleSheet() ;
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200">');
		document.write('<table width=200><tr><td width="135">');
		document.write('<span class=twtiny>');
		document.write('<b>TEXT SIZE: '+getStyle()+'</b>');
		document.write('</span></td><td width="30">');
		document.write('<a href="javascript:fontMinus();"><img border=0 hspace=0 vspace=0 width=15 height=15 src="./pictures/site/minus.gif"></a>');
		document.write('<a href="javascript:fontPlus();"><img border=0 hspace=0 vspace=0 width=15 height=15 src="./pictures/site/plus.gif"></a>');
//		document.write('<a href="javascript:fontMinus();"> - </a>');
//		document.write('</td><td width="5%"><span class=twtiny>');
//		document.write('<a href="javascript:fontPlus();"> + </a>');
		document.write('</td><td width="35"><span class=twtiny>');
		document.write('<a href="javascript:fontReset();">Reset</a>');
		document.write('</td></tr><tr><td colspan=3>');
		document.write('<span class=twtiny>');
		CursorMsg();
		document.write('</span>');
		document.write('</td></tr></table>');
		document.write('<span class=pagetitle><font color="#');
		if (page=="nye")document.write('ffcc00">New Year');
		if (page=="flyers")document.write('ffcc00">Flyers');
		if (page=="afterparty")document.write('ffcc00">12 hour afterparty');
		if (page=="menu")document.write('00ccff"> ');
		if (page=="party")document.write('00ccff">The party');
		if (page=="music")document.write('ffcc00">The music');
		if (page=="demos")document.write('ffcc00">The music');
		if (page=="CDpromo")document.write('ffcc00">The music');
		if (page=="djualda")document.write('ffcc00">Ualda');
		if (page=="ualdapics")document.write('ffcc00">Ualda');
		if (page=="sundaylaunch")document.write('ffcc00">Sundays');
		if (page=="masslaunch")document.write('ffcc00">Saturdays');
		if (page=="sundays")document.write('00ffcc">Sundays');
		if (page=="saturdays")document.write('00ffcc">Saturdays');
		if (page=="friday")document.write('00ffcc">Friday night');
		if (page=="18special")document.write('00ffcc">18 hour special');
		if (page=="sunday")document.write('ffcc00">Sundays');
		if (page=="djjari")document.write('ffcc00">Jari');
		if (page=="hujejohn")document.write('ffcc00">hUJe John');
		if (page=="mad-theo")document.write('ffcc00">Mad Theo');
		if (page=="pictures")document.write('ccff00">Pictures');
		if (page=="mailing-form")document.write('ff00cc">Mailing');
		if (page=="mailing")document.write('ff00cc">Mailing');
		if (page=="survey")document.write('ff00cc">Survey');
		if (page=="members")document.write('ff00cc">Members');
		if (page=="decor")document.write('00ccff">Decor');
		if (page=="listings")document.write('ccccff">Listings');
		if (page=="date")document.write('ccccff">Next Date');
		if (page=="directions")document.write('ccccff">Directions');
		if (page=="shopping")document.write('ccccff">Shopping');
		if (page=="links")document.write('ff00cc">Links');
		if (page=="contacts")document.write('ff00cc">Contacts');
		if (page=="bookings")document.write('ff00cc">Contacts');
		if (page=="press")document.write('ccff00">Press info');
		if (page=="privacy")document.write('ccccff">Privacy');
		document.write('</font></span></p></td>');
	}
	else {
		var picWidth = (screenWidth - 400) / numPix;
	}
	if (page=="mailing")
		{sub="yes"}
	else 
		{sub="no"}
	if (page=="party")
		{menubutton(foot,"party","yes",sub,picWidth,"Party")}
	else 
		{menubutton(foot,"party","no",sub,picWidth,"Party")}
	if (page=="music")
		{menubutton(foot,"music","yes",sub,picWidth,"Music")}
	else 
		{menubutton(foot,"music","no",sub,picWidth,"Music")}
	if (page=="pictures")
		{menubutton(foot,"pictures","yes",sub,picWidth,"Pictures")}
	else 
		{menubutton(foot,"pictures","no",sub,picWidth,"Pictures")}
	if (page=="members")
		{menubutton(foot,"members","yes",sub,picWidth,"Members")}
	else 
		{menubutton(foot,"members","no",sub,picWidth,"Members")}
 	if (page=="shopping")
 		{menubutton(foot,"shopping","yes",sub,picWidth,"Shop")}
 	else 
 		{menubutton(foot,"shopping","no",sub,picWidth,"Shop")}
	if (page=="flyers")
		{menubutton(foot,"flyers","yes",sub,picWidth,"Flyers")}
	else 
		{menubutton(foot,"flyers","no",sub,picWidth,"Flyers")}
	if (page=="listings")
		{menubutton(foot,"listings","yes",sub,picWidth,"Listings")}
	else 
		{menubutton(foot,"listings","no",sub,picWidth,"Listings")}
	if (page=="contacts")
		{menubutton(foot,"contacts","yes",sub,picWidth,"Contacts")}
	else 
		{menubutton(foot,"contacts","no",sub,picWidth,"Contacts")}
	menubutton(foot,"index","no",sub,picWidth,"Home");
	if (foot=="no"){
		document.write('</table>');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
		document.write('<tr><td colspan=3>');
		document.write('<a href="mailing-form.htm"><marquee><span class="cwsmall">Join the hUJe mailing list for party info and discount entry to Fridge - click here</span></marquee></a>');
		document.write('</td></tr>');
		document.write('<tr><td width="35%"><center>');
		flashBanner();
//		gifBanner();
		document.write('</center></td><td width="30%"><center>');
		AdvertsMsg();
		document.write('</center></td><td width="35%"><center>');
		if (showAdverts()!="off"){
 			bannerAd(AdNum);
		}
		document.write('</center></td></tr>');
		document.write('</table>');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>');
		document.write('<td valign="top">'); }
//		if (showAdverts()=="off"){
//			document.write('<td>'); }
//		else {
//			document.write('<td rowspan=2>'); }
//	}
}

function flashBanner(){
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
		document.write(' WIDTH="468" HEIGHT="60" id="hUJe-banner" ALIGN="">');
		document.write(' <PARAM NAME=movie VALUE="hUJe-banner.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000>');
		document.write(' <EMBED src="hUJe-banner.swf" quality=high bgcolor=#000000  WIDTH="468" HEIGHT="60" NAME="hUJe-banner" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
		document.write('</OBJECT>');
}

function gifBanner(){
		document.write('<IMG SRC="./pictures/site/webflyer-animation.gif" WIDTH="400" HEIGHT="50">');
}

function menuXtra(){
//		document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>');
//		document.write('<td width=25></td>');
//		document.write('<TD width=124><A href="http://www.huje.co.uk/pictures/sm_julian.jpg" target=_blank><IMG height=166 alt="find Julian" hspace=0 src="http://www.huje.co.uk/pictures/sm_julian.jpg" width=124 border=0></A></TD>');
//		document.write('<td width=25></td>');
//		document.write("<td class='high'><span class='smaller'><h2>Help Ualda get her shoes back!</h2>");
//		document.write("<b>Have you seen this very little guy - who disappeared and stopped answering the phone since borrowing Ualda's orange/yellow smiley shoes<br><br>");
//		document.write("Reward for info leading to return of shoes: a year's free entry to hUJe events<br><br>");
//		document.write("Call the hUJe info line if you spot him: 07834 809 883</b></span></td>");
//		document.write('</tr></table>');
}


function footer(page){
// close off the table for main page content and do skyscraper ads if nec
	if (showAdverts()!="off"){
		document.write('</td><td width=120 valign="top"><table><tr><td>'); 
		skyscraperAd(AdNum);
		document.write('</td></tr><tr><td>'); 
		skyscraperAd(AdNum+1);
		document.write('</td></tr></table>'); 
}
	document.write('</td></tr></table>'); 
	document.write('<img border=0 hspace=0 vspace=0 width=1 height=1 src="http://cgi.www.huje.co.uk/cgi-bin/www.huje.co.uk/write-add.pl">');
	// check if there's a "?" in the URL and if there is call the script to process it
		var theURL = unescape(window.location.href);
		var Qpos = theURL.indexOf("?");
		if (Qpos != -1) {
			var passparam = theURL.substring(Qpos+"?".length,theURL.length);
		//	document.write('<h1>here i am</h1>');
			document.write('<img border=0 hspace=0 vspace=0 width=1 height=1 src="http://cgi.www.huje.co.uk/cgi-bin/www.huje.co.uk/page-ref.pl?'+passparam+'">');
		} 
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" align="right"><td>');
	document.write("<p class=ctiny>This page last updated "+ document.lastModified+ "</p>");
	document.write('</td></table>');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
	document.write('<tr><td width=125 align="right" class=footer>');
	document.write('<a href="http://www.netapplications.com/privacy.asp?affid=4291"><font size=1>');
	document.write('We use HitsLink tracking - check here for their privacy policy</a></td>');
	document.write('<td width=5></td><td valign="bottom" width=88><script language="JavaScript">traffic()</script></td><td width=5></td>');
	menu("yes",page);
	document.write('<td valign="bottom" width="20%" height=62 align="right">');
	document.write('<center><p class=tiny>Site contents copyright &copy John Ferguson 2000-2007 unless marked otherwise<br><a href="http://www.huje.co.uk/privacy.htm">Site privacy policy</a><br>');
	CursorMsg();
	document.write('</center></td></tr></table>');
	menuXtra();
}

function GetAdNum () {
// derived from part of http://javascript.internet.com/miscellaneous/random-click-image.html
// Original: by Nicholas Lupien (smylex@aol.com)

	var rand1 = 0;
	var useRand = 0;
	do {
		var randnum = Math.random();
		rand1 = Math.round((totAds) * randnum);
	} while (rand1 == useRand);
	useRand = rand1;
	return useRand;
}

function bannerAd (passedAd) {
	var uri;
// set up banner ads in array below:
	bannerAds = new Array;
// eBay
	bannerAds[1] = '<a href="http://www.kqzyfj.com/click-1985904-5048470?sid=banner" target="_blank"><img src="http://www.afcyhf.com/image-1985904-5048470" width="468" height="60" alt="Click Here to shop at eBay.co.uk" border="0"/></a>';
// ann summers - new rabbit; november hot one
	uri = 'http://impgb.tradedoubler.com/imp/img/16150614/1214948?' + new String (Math.random()).substring (2, 11);
	bannerAds[2] = '<a href="http://clkuk.tradedoubler.com/click?p=37382&a=1214948&g=16150614" target="_blank"><img src="'+uri+'" border=0></a>';
// hostel bookers - where to next
	uri = 'http://impgb.tradedoubler.com/imp/img/16154462/1214948?' + new String (Math.random()).substring (2, 11);
	bannerAds[3] = '<a href="http://clkuk.tradedoubler.com/click?p=34444&a=1214948&g=16154462" target="_blank"><img src="'+uri+'" border=0></a>';
// alienware - double charged
	bannerAds[4] = '<a href="http://www.dpbolvw.net/click-1985904-10431938?sid=banner" target="_blank"><img src="http://www.ftjcfx.com/image-1985904-10431938" width="468" height="60" alt="null" border="0"/></a>';
// spreadshirt - design your own...
	bannerAds[5] = '<a href="http://www.jdoqocy.com/click-1985904-10387116?sid=banner" target="_blank"><img src="http://www.afcyhf.com/image-1985904-10387116" width="468" height="60" alt="Spreadshirt Designer" border="0"/></a>';
// uswitch
	bannerAds[6] = '<a href="http://www.jdoqocy.com/click-1985904-10279985?sid=banner" target="_blank"><img src="http://www.awltovhc.com/image-1985904-10279985" width="468" height="60" alt="uSwitch.com" border="0"/></a>';
// skype
	uri = 'http://impgb.tradedoubler.com/imp/iframe/16346418/1214948?' + new String (Math.random()).substring (2, 11);
	bannerAds[7] = '<iframe name="skypebanner" src="'+uri +'" width="468" height="60" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
// you can get me
	uri = 'http://impgb.tradedoubler.com/imp/iframe/766103/1214948?' + new String (Math.random()).substring (2, 11);
	bannerAds[8] = '<iframe name="ugetmebanner" src="'+uri +'" width="468" height="60" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
// mean and green
	bannerAds[9] = '<a href="http://www.awin1.com/cread.php?s=51597&v=1230&q=39805&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=51597&v=1230&q=39805&r=62235" border="0"></a>';
// photobox
	bannerAds[10] = '<a href="http://www.awin1.com/cread.php?s=59259&v=1137&q=47284&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=59259&v=1137&q=47284&r=62235" border="0"></a>';
// affiliate window
	bannerAds[11] = '<a href="http://www.awin1.com/cread.php?s=39106&v=3&q=10&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=39106&v=3&q=10&r=62235" border="0"></a>';
// shot dead in the head
	bannerAds[12] = '<a href="http://www.awin1.com/cread.php?s=59106&v=1345&q=46608&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=59106&v=1345&q=46608&r=62235" border="0"></a>';
// iTunes
	uri = 'http://impgb.tradedoubler.com/imp/iframe/16240660/1214948?' + new String (Math.random()).substring (2, 11);
	bannerAds[13] = '<iframe name="iTunesbanner" src="'+uri +'" width="468" height="60" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
// tough trax
	bannerAds[14] = '<a href="http://www.toughtrax.com/" target="_blank"><img border="0" src="http://www.huje.co.uk/pictures/site/toughtraxbanner.jpg" height="60px" width="468px" alt="Scum Records...."></img></a>';
// net applications
	bannerAds[0] = '<a href="http://www.netapplications.com?affid=4291" target="_blank"><img border="0" src="http://www.netapplications.com/siteimages/NAB-468x60-8k.gif" height="60px" width="468px" alt="Traffic Stats, Site Monitoring, Search Engine Submission...."></img></a>';
// 	document.write('<p>'+passedAd+'</p>');
 	document.write(bannerAds[passedAd-1]);
// 	document.write('<p>hello world</p>');

}

function skyscraperAd (passedAd) {
// cater for end of array
	if (passedAd>totAds){
		passedAd = passedAd - totAds;
	}
	var uri;
// set up skyscraper ads in array below:
	skyscraperAds = new Array;
// eBay
	skyscraperAds[0] = '<a href="http://www.dpbolvw.net/click-1985904-9939738?sid=skyscraper" target="_blank"><img src="http://www.lduhtrp.net/image-1985904-9939738" width="120" height="600" alt="Click Here to shop at eBay.co.uk" border="0"/></a>';
// ann summers - boudoir chic
	uri = 'http://impgb.tradedoubler.com/imp/img/16150952/1214948?' + new String (Math.random()).substring (2, 11);
	skyscraperAds[1] = '<a href="http://clkuk.tradedoubler.com/click?p=37382&a=1214948&g=16150952" target="_blank"><img src="'+uri+'" border=0></a>';
// hostelbookers - prices in various cities
	uri = 'http://impgb.tradedoubler.com/imp/iframe/16322544/1214948?' + new String (Math.random()).substring (2, 11);
	skyscraperAds[2] = '<iframe name="hbsky" src="'+uri +'" width="120" height="600" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
// alienware - area 51
	skyscraperAds[3] = '<a href="http://www.anrdoezrs.net/click-1985904-10416034?sid=skyscraper" target="_blank"><img src="http://www.afcyhf.com/image-1985904-10416034" width="160" height="600" alt="null" border="0"/></a>';
// spreadshirt
	skyscraperAds[4] = '<a href="http://www.dpbolvw.net/click-1985904-10373690?sid=skyscraper" target="_blank"><img src="http://www.awltovhc.com/image-1985904-10373690" width="120" height="600" alt="Spreadshirt Designer" border="0"/></a>';
// uswitch
	skyscraperAds[5] = '<a href="http://www.dpbolvw.net/click-1985904-10297626?sid=skyscraper" target="_blank"><img src="http://www.awltovhc.com/image-1985904-10297626" width="120" height="600" alt="uswitch skyscraper" border="0"/></a>';
// skype
	uri = 'http://impgb.tradedoubler.com/imp/iframe/16303930/1214948?' + new String (Math.random()).substring (2, 11);
	skyscraperAds[6] = '<iframe src="'+uri +'" width="120" height="600" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
// you can get me
	uri = 'http://impgb.tradedoubler.com/imp/img/11616701/1214948?' + new String (Math.random()).substring (2, 11);
	skyscraperAds[7] = '<a href="http://clkuk.tradedoubler.com/click?p=19991&a=1214948&g=11616701" target="_blank"><img src="'+uri+'" border=0></a>';
// mean and green
	skyscraperAds[8] = '<a href="http://www.awin1.com/cread.php?s=51601&v=1230&q=39808&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=51601&v=1230&q=39808&r=62235" border="0"></a>';
// photobox
	skyscraperAds[9] = '<a href="http://www.awin1.com/cread.php?s=39179&v=1137&q=27858&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=39179&v=1137&q=27858&r=62235" border="0"></a>';
// affiliate window
	skyscraperAds[10] = '<a href="http://www.awin1.com/cread.php?s=39137&v=3&q=11&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=39137&v=3&q=11&r=62235" border="0"></a>';
// shot dead in the head
	skyscraperAds[11] = '<a href="http://www.awin1.com/cread.php?s=59118&v=1345&q=47155&r=62235" target="_blank"><img src="http://www.awin1.com/cshow.php?s=59118&v=1345&q=47155&r=62235" border="0"></a>';
// iTunes
	uri = 'http://impgb.tradedoubler.com/imp/img/15515615/1214948?' + new String (Math.random()).substring (2, 11);
	skyscraperAds[12] = '<a href="http://clkuk.tradedoubler.com/click?p=19991&a=1214948&g=15515615" target="_blank"><img src="'+uri+'" border=0></a>';
// hostelbookers - prices in various cities
	uri = 'http://impgb.tradedoubler.com/imp/iframe/16322544/1214948?' + new String (Math.random()).substring (2, 11);
	skyscraperAds[13] = '<iframe name="hbsky" src="'+uri +'" width="120" height="600" frameborder="0" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>';
// net applications
	skyscraperAds[14] = '<a href="http://www.netapplications.com?affid=4291" target="_blank"><img border="0" src="http://www.netapplications.com/siteimages/NAB-120x60-8k.gif" height="60px" width="120px" alt="Traffic Stats, Site Monitoring, Search Engine Submission...."></img></a>';

 	document.write(skyscraperAds[passedAd-1]);
// 	document.write('<p>hello world</p>');

}

function cookieStatus () {
	var exp = new Date(); 
	exp.setTime(exp.getTime() + (1*24*60*60*1000));
	SetCookie ('test', exp, exp);
	cookieDate = GetCookie('test');
	hereDate = exp;
	document.write("<span style='color: #ffffff'>Cookies are '");
	if (hereDate == cookieDate ) {	document.write('ALLOWED');}
	else {				document.write('NOT ALLOWED');}
	document.write("'.</span>");
}

function showAdverts () {
  var adverts = GetCookie("adverts");
  if (adverts == null) {
    adverts = 'on';
  }
    return adverts;
}

function toggleAdverts() {
	if (showAdverts()!="off"){
		var expDays = 30;
		var exp = new Date(); 
		exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
		SetCookie('adverts','off',exp);
	}
	else {
		DeleteCookie('adverts');
	}
	//refresh page
	setTimeout("history.go()",1);
} 

function AdvertsMsg() {
	document.write('<a href="JavaScript:toggleAdverts()"><span style="color: #ffffff; font-size: 85%">Turn adverts ');
	if (showAdverts()!="off"){
		document.write('off');
	}
	else {
		document.write('on');
	}
	document.write('</span></a>');
} 

function CursorMsg() {
	document.write('<a href="JavaScript:setCursor()"><span style="color: #ffffff">Turn ');
	var prefCursor = GetCookie('spinCursor');
	if (prefCursor == null) {
		document.write('off');
	}
	else {
		document.write('on');
	}
	document.write(' whirling writing</span></a>');
} 

function traffic() {
	<!--
<!-- www.toolshack.com web tools statistics hit counter code -->
document.write('<a href="http://www.toolshack.com">')
		var data,p;document.cookie='__support_check=1';nhp='http';
		if((location.href.substr(0,6)=='https:') || 
		  (location.href.substr(0,6)=='HTTPS:'))nhp='https'; 
data='&an='+escape(navigator.appName)+ '&ck='+document.cookie.length+
'&rf='+escape(document.referrer)+ '&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+ '&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+ '&pg='+escape(location.pathname);
if(navigator.appVersion.substring(0,1)>'3') {data=data+'&cd='+
screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&je='+ navigator.javaEnabled()};
document.write('<a href="http://www.hitslink.com/?affid=4291">');
 document.write('<img border=0 hspace=0 '+
 'vspace=0 width=88 height=62 src="'+nhp+'://counter.hitslink.com/'+
 'statistics.asp?v=0&s=12&acct=hithuje'+data+'"></a>');
document.write('</a>');
<!-- End www.toolshack.com statistics web tools hit counter code -->
	// -->
}
function traffichide() {
	<!--
<!-- www.toolshack.com web tools statistics hit counter code -->
document.write('<a href="http://www.toolshack.com">')
		var data,p;document.cookie='__support_check=1';nhp='http';
		if((location.href.substr(0,6)=='https:') || 
		  (location.href.substr(0,6)=='HTTPS:'))nhp='https'; 
data='&an='+escape(navigator.appName)+ '&ck='+document.cookie.length+
'&rf='+escape(document.referrer)+ '&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+ '&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+ '&pg='+escape(location.pathname);
if(navigator.appVersion.substring(0,1)>'3') {data=data+'&cd='+
screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&je='+ navigator.javaEnabled()};
document.write('<a href="http://www.hitslink.com/?affid=4291">');
document.write('<img border=0 hspace=0 '+
 'vspace=0 width=1 height=1 src="'+nhp+'://counter.hitslink.com/'+
 'statistics.asp?v=0&s=12&acct=hithuje'+data+'"></a>');
document.write('</a>');
<!-- End www.toolshack.com statistics web tools hit counter code -->
	// -->
}
function surveytraffic(pageno) {
	<!--
<!-- www.toolshack.com web tools statistics hit counter code -->
document.write('<a href="http://www.toolshack.com">')
		var data,p;document.cookie='__support_check=1';nhp='http';
		if((location.href.substr(0,6)=='https:') || 
		  (location.href.substr(0,6)=='HTTPS:'))nhp='https'; 
data='&an='+escape(navigator.appName)+ '&ck='+document.cookie.length+
'&rf='+escape(document.referrer)+ '&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+ '&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+ '&pg='+escape(location.pathname)+pageno;
if(navigator.appVersion.substring(0,1)>'3') {data=data+'&cd='+
screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&je='+ navigator.javaEnabled()};
document.write('<a href="http://counter.hitslink.com/'+
'redirector.asp?acct=hithuje">');
document.write('<img border=0 hspace=0 '+
 'vspace=0 width=1 height=1 src="'+nhp+'://counter.hitslink.com/'+
 'statistics.asp?v=0&s=12&acct=hithuje'+data+'"></a>');
document.write('</a>');
<!-- End www.toolshack.com statistics web tools hit counter code -->
	// -->
}
function mailaddress(username,showtext,appdomain) {
<!-- // put email addresses in using a script to avoid spiders collecting for spam -->
	if (username=="jari"){
		document.write('<a href="mailto:djjari@hotmail.com">djjari@hotmail.com</a>');
	}
	else {
		if (username=="stelvio"){
			document.write('<a href="mailto:stelvio@clubtek.co.uk">stelvio@clubtek.co.uk</a>');
		}
		else {
			if (username=="ualda"){
				document.write('<a href="mailto:ualda@hotmail.com">ualda@hotmail.com</a>');
			}
			else {
				data='<a href="mailto:'+ username+ '@huje.co.uk">'+ showtext;
					if (appdomain=='Y') {
						data= data+ '@huje.co.uk';
					}
				data= data+ '</a> '; 
				document.write(data);
			}
		}
	}
}
function TSrow() {
	<!-- // create a row with images that zoom to fit screen width
		document.write('<tr>');
		var screenWidth = escape(document.body.clientWidth);
		var rowWidth = screenWidth - 120;
		var numPix = 8;
		var widthPercent = 100 / numPix;
		var picWidth = (rowWidth - numPix * 5) / numPix;
		var picHeight = picWidth * 87 / 150;
		TSpic("its-going-to-be-huje",picWidth,picHeight,widthPercent,"its-going-to-be-huje");
		TSpic("mine-are-huje",picWidth,picHeight,widthPercent,"mine-are-huje");
		TSpic("mine-is-huje",picWidth,picHeight,widthPercent,"mine-is-huje");
		TSpic("this-DJ-will-be-huje",picWidth,picHeight,widthPercent,"this-DJ-will-be-huje");
		TSpic("huje-member",picWidth,picHeight,widthPercent,"huje-member");
		TSpic("this-singer-will-be-huje",picWidth,picHeight,widthPercent,"this-singer-will-be-huje");
		TSpic("id-rather-be-at-huje",picWidth,picHeight,widthPercent,"id-rather-be-at-huje");
		TSpic("huje",picWidth,picHeight,widthPercent,"huje");
		document.write('</tr>');
	//-->
}
function CDtable() {
	<!-- // create a table with images that zoom to fit screen width
		StartRow();
		var screenWidth = escape(document.body.clientWidth);
		var rowWidth = screenWidth - 120;
		var numPix = 8;
		var widthPercent = 100 / numPix;
		var picWidth = (rowWidth - numPix * 5) / numPix;
		CDpic("CD-movies-01",picWidth,widthPercent,"Mix CD: hUJe John &amp; Ualda go to the cinema");
		CDpic("CD-family-03",picWidth,widthPercent,"Mix CD: hUJe family vol 3");
		CDpic("CD-family-02",picWidth,widthPercent,"Mix CD: hUJe family vol 2");
		CDpic("CD-Jari-05",picWidth,widthPercent,"Mix CD: Jari vol 5");
		CDpic("CD-family-01",picWidth,widthPercent,"Mix CD: hUJe family vol 1");
		CDpic("CD-bum2bum-01",picWidth,widthPercent,"Mix CD: bum2bum vol 1");
		CDpic("CD-Jari-04",picWidth,widthPercent,"Mix CD: Jari vol 4");
		CDpic("CD-Ualda-02",picWidth,widthPercent,"Mix CD: Ualda vol 2");
		EndRow();
		CDCartRow(); 
	//-->
}
function UaldaCDs() {
	<!-- // create a table with images that zoom to fit screen width
		DJCDblurb();
		StartRow();
		var tableWidth = escape(document.body.clientWidth) - 359;
		var numPix = 6;
		var widthPercent = 100 / numPix;
		var picWidth = (tableWidth - numPix * 5) / numPix;
		CDpic("CD-movies-01",picWidth,widthPercent,"Mix CD: hUJe John &amp; Ualda go to the cinema");
		CDpic("CD-family-03",picWidth,widthPercent,"Mix CD: hUJe family vol 3");
		CDpic("CD-family-02",picWidth,widthPercent,"Mix CD: hUJe family vol 2");
		CDpic("CD-family-01",picWidth,widthPercent,"Mix CD: hUJe family vol 1");
		CDpic("CD-bum2bum-01",picWidth,widthPercent,"Mix CD: hUJe bum2bum vol 1");
		CDpic("CD-Ualda-02",picWidth,widthPercent,"Mix CD: Ualda vol 2");
		EndRow();
		CDCartRow();
	//-->
}
function JohnCDs() {
	<!-- // create a table with images that zoom to fit screen width
		DJCDblurb();
		StartRow();
		var tableWidth = escape(document.body.clientWidth) - 325;
		var numPix = 5;
		var widthPercent = 100 / numPix;
		var picWidth = (tableWidth - numPix * 5) / numPix;
		CDpic("CD-movies-01",picWidth,widthPercent,"Mix CD: hUJe John &amp; Ualda go to the cinema");
		CDpic("CD-family-03",picWidth,widthPercent,"Mix CD: hUJe family vol 3");
		CDpic("CD-family-02",picWidth,widthPercent,"Mix CD: hUJe family vol 2");
		CDpic("CD-family-01",picWidth,widthPercent,"Mix CD: hUJe family vol 1");
		CDpic("CD-bum2bum-01",picWidth,widthPercent,"Mix CD: hUJe bum2bum vol 1");
		EndRow();
		CDCartRow();
	//-->
}
function JariCDs() {
	<!-- // create a table with images that zoom to fit screen width
		DJCDblurb();
		StartRow();
		var tableWidth = escape(document.body.clientWidth) - 325;
		var numPix = 5;
		var widthPercent = 100 / numPix;
		var picWidth = (tableWidth - numPix * 5) / numPix;
		CDpic("CD-family-03",picWidth,widthPercent,"Mix CD: hUJe family vol 3");
		CDpic("CD-family-02",picWidth,widthPercent,"Mix CD: hUJe family vol 2");
		CDpic("CD-Jari-05",picWidth,widthPercent,"Mix CD: Jari vol 5");
		CDpic("CD-family-01",picWidth,widthPercent,"Mix CD: hUJe family vol 1");
		CDpic("CD-Jari-04",picWidth,widthPercent,"Mix CD: Jari vol 4");
		EndRow();
		CDCartRow();
	//-->
}
function CDpic(CDname,CDside,TDwidth,CDalt) {
	<!-- // params: name (file/page), dimension, percent, comment
			document.write('<td  width="' + TDwidth + '%" align="center">');
			document.write('<a href="' + CDname + '.htm">');
			document.write('<img src="./pictures/huje/' + CDname + '.jpg" width=' + CDside + ' height=');
			document.write(CDside + ' alt="' + CDalt + '" border="0">');
			document.write('</a>');
			PayPalAddCart(CDalt,CDname);
			document.write('</td>');
	//-->
}
function TSpic(TSname,TSwide,TShigh,TDwidth,TSalt) {
	<!-- // params: name (file/page), 2 dimensions, percent, comment... 
		document.write('<td  width="' + TDwidth + '%" align="center">');
		document.write('<a href="http://www.awin1.com/awclick.php?awinmid=1137&awinaffid=62235&p=http://www.photoboxgallery.com/hUJe" target="_blank">');
		document.write('<img src="./pictures/huje/' + TSname + '.jpg" width=' + TSwide + ' height=');
		document.write(TShigh + ' alt="' + TSalt + '" border="0">');
		document.write('</a></td>');
	//-->
}
function StartRow() {
	<!-- // write out beginning of table
			document.write('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
			document.write('<tr>');
	//-->
}
function EndRow() {
	<!-- // write out end of table
			document.write('</tr>');
			document.write('</table>');
	//-->
}
function sep1() {
	<!-- // write out separator for one pic row
			document.write('<td valign="top" align="left" width="50%">');
			document.write('</td>');
	//-->
}
function sep2() {
	<!-- // write out separator for two pic row
			document.write('<td valign="top" align="left" width="33%">');
			document.write('</td>');
	//-->
}
function sep3() {
	<!-- // write out separator for two pic row
			document.write('<td valign="top" align="left" width="25%">');
			document.write('</td>');
	//-->
}
function sep4() {
	<!-- // write out separator for two pic row
			document.write('<td valign="top" align="left" width="20%">');
			document.write('</td>');
	//-->
}
function pic(path,name1,width1,height1,comment1,alt1,big1) {
	<!-- // write out cell for picture with all its bits
			var picdata='<img src="'+path+name1+'.jpg" width='+width1+' height='+height1+' alt="'+alt1+'" border="0">';
			document.write('<td valign="top" align="center" width="'+width1+'">');
			document.write('<br><br>');
			document.write('<p class="ltiny">'+comment1+'</p>');
			if (big1=='N') {
				document.write(picdata);
			}
			else { // put in reference to big picture
				document.write('<a href="'+path+'big_'+name1+'.jpg" target="pic'+big1+'">');
				document.write(picdata);
				document.write('</a>');
			}
			document.write('</td>');
	//-->
}
function picUC(path,name1,width1,height1,comment1,alt1,big1) {
	<!-- // write out cell for picture with all its bits
			var picdata='<img src="'+path+name1+'.JPG" width='+width1+' height='+height1+' alt="'+alt1+'" border="0">';
			document.write('<td valign="top" align="center" width="'+width1+'">');
			document.write('<br><br>');
			document.write('<p class="ltiny">'+comment1+'</p>');
			if (big1=='N') {
				document.write(picdata);
			}
			else { // put in reference to big picture
				document.write('<a href="'+path+'big_'+name1+'.jpg" target="pic'+big1+'">');
				document.write(picdata);
				document.write('</a>');
			}
			document.write('</td>');
	//-->
}
function PicRow4(path,name1,width1,height1,comment1,alt1,big1,
			name2,width2,height2,comment2,alt2,big2,
			name3,width3,height3,comment3,alt3,big3,
			name4,width4,height4,comment4,alt4,big4) {
	<!-- // write table for row of two pictures with associated blurb
	StartRow();
	sep4();
	pic(path,name1,width1,height1,comment1,alt1,big1);
	sep4();
	pic(path,name2,width2,height2,comment2,alt2,big2);
	sep4();
	pic(path,name3,width3,height3,comment3,alt3,big3);
	sep4();
	pic(path,name4,width4,height4,comment4,alt4,big4);
	sep4();
	EndRow();
	//-->
}
function PicRow3(path,name1,width1,height1,comment1,alt1,big1,
			name2,width2,height2,comment2,alt2,big2,
			name3,width3,height3,comment3,alt3,big3) {
	<!-- // write table for row of two pictures with associated blurb
	StartRow();
	sep3();
	pic(path,name1,width1,height1,comment1,alt1,big1);
	sep3();
	pic(path,name2,width2,height2,comment2,alt2,big2);
	sep3();
	pic(path,name3,width3,height3,comment3,alt3,big3);
	sep3();
	EndRow();
	//-->
}
function PicRow2(path,name1,width1,height1,comment1,alt1,big1,
			name2,width2,height2,comment2,alt2,big2) {
	<!-- // write table for row of two pictures with associated blurb
	StartRow();
	sep2();
	pic(path,name1,width1,height1,comment1,alt1,big1);
	sep2();
	pic(path,name2,width2,height2,comment2,alt2,big2);
	sep2();
	EndRow();
	//-->
}
function PicRow1(path,name1,width1,height1,comment1,alt1,big1) {
	<!-- // write table for row of one picture with associated blurb
	StartRow();
	sep1();
	pic(path,name1,width1,height1,comment1,alt1,big1);
	sep1();
	EndRow();
	//-->
}
function PicRowUC1(path,name1,width1,height1,comment1,alt1,big1) {
	<!-- // write table for row of one picture with associated blurb
	StartRow();
	sep1();
	picUC(path,name1,width1,height1,comment1,alt1,big1);
	sep1();
	EndRow();
	//-->
}
function TextBit(comment1) {
	<!-- // write out cell for text with all its bits
			document.write('<td valign="top" align="center" width=100%">');
			document.write('<br><br>');
			document.write('<p>'+comment1+'</p>');
			document.write('</td>');
	//-->
}
function TextRow(comment1) {
	<!-- // write table for row of centred text
	StartRow();
	TextBit(comment1);
	EndRow();
	//-->
}

<!-- The following scripts and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

function getCookieVal (offset) {  
	var endstr = document.cookie.indexOf (";", offset);  
	if (endstr == -1)    
		endstr = document.cookie.length;  
	return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {  
	var arg = name + "=";  
	var alen = arg.length;  
	var clen = document.cookie.length;  
	var i = 0;  
	while (i < clen) {    
		var j = i + alen;    
		if (document.cookie.substring(i, j) == arg)      
			return getCookieVal (j);    
		i = document.cookie.indexOf(" ", i) + 1;    
		if (i == 0) break;   
	}  
	return null;
}

function SetCookie (name, value) {  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) {  
	var exp = new Date();  
	exp.setTime (exp.getTime() - 1);  
	var cval = GetCookie (name);  
	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function setCursor () {
	var prefCursor = GetCookie('spinCursor');
	if (prefCursor == null) {
		var expDays = 30;
		var exp = new Date(); 
		exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
		SetCookie ('spinCursor', 'Dont', exp);
	}
	else {
		DeleteCookie ('spinCursor');
	}
	//refresh page
	setTimeout("history.go()",1);
}

function setSurveyCookie (CookieVal) {
	var prevCookie = GetCookie('survey');
	if (prevCookie != null) {
		DeleteCookie ('survey');
	}
	var expDays = 210;
	var exp = new Date(); 
	exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
	SetCookie ('survey', CookieVal, exp);
}

function openWin (page) {
// open the passed page in a separate window
var windowprops = "width=300,height=100,location=no,toolbar=yes,menubar=no,scrollbars=no,resizable=no";
	window.open(page, "", windowprops);
}

function surveylink() {
// sets a link to the correct survey form depending on cookie
//script to check value of survey cookie and set link to correct page

var surveyCookie = GetCookie('survey');
var page = "no";

//document.write ("<p class='answer'>Cookie: #" + surveyCookie + "#</p>");

if ( (surveyCookie == "yes") || (surveyCookie == "started") ) { page = "surveybegan-form"; }

else { 	if (surveyCookie == "later") { page = "surveylater-form"; }

else {	if (surveyCookie == "finished") { page = "surveyfinished-form"; }

else {	page = "surveyrequest-form";

}}}

//document.write ("<p class='answer'>Cookie: #" + surveyCookie + "#</p>");
//document.write ("<p class='answer'>Page: " + page + "</p>");

document.write("<a href='" + page + ".htm' target='survey'>");
}

function fontReset () {
  var style, newstyle;
  style = GetCookie("style");
  newstyle = '';
  if (style != newstyle) {
    setStyle(newstyle);
	
  }
}

function getStyle () {
  var style;
  style = GetCookie("style");
  if (style == null) {
    style = 'normal';
  }
    return style;
}

/* copied from  javascript.js http://www.spamcop.net/images/script.js
*/
function fontPlus() {
  var style, newstyle;
  style = GetCookie("style");
  if (style == 'large') {
    newstyle = 'xlarge';
  } else if (style == 'xlarge') {
    newstyle = "xlarge";
  } else if (style == 'small') {
    newstyle = '';
  } else if (style == '') {
    newstyle = 'large';
  } else if (style == 'xsmall') {
    newstyle = 'small';
  } else {
    newstyle = 'large';
  }
  if (style != newstyle) {
    setStyle(newstyle);
  }
}

/* copied from  javascript.js http://www.spamcop.net/images/script.js
*/
function fontMinus() {
  var style, newstyle;
  style = GetCookie("style");
  if (style == 'large') {
    newstyle = '';
  } else if (style == 'xlarge') {
    newstyle = "large";
  } else if (style == 'small') {
    newstyle = 'xsmall';
  } else if (style == 'xsmall') {
    newstyle = 'xsmall';
  } else {
    newstyle = 'small';
  }
  if (style != newstyle) {
    setStyle(newstyle);
  }
}

/* copied from  javascript.js http://www.spamcop.net/images/script.js
*/
function setStyle(title) {
  setActiveStyleSheet(title);
  SetCookie("style", title);
  //refresh page
  setTimeout("history.go()",1);
}

/* copied from  styleswitcher.js http://www.alistapart.com/articles/alternate/
*/
function setActiveStyleSheet(title) {
  if(! document.getElementsByTagName) return;
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}


function PayPalCDs(ItemName,ItemNumber) {
/* writes tabulated blurb for paypal buttons on CD page */
  document.write ('<tr><td><p><center>You can ask us for a copy of this CD when you see us around or ');
  document.write ('we can send them to you in the post if you pay online ');
  document.write ("for the postage (to our business account: Your Montage). You don't need a Paypal account. ");
  document.write ("We have to charge 1p for the CD as Paypal won't accept zero payment.</center></p></td></tr>");

  document.write ('<tr><td>');

/*  document.write ('<table border="0" cellpadding="0" cellspacing="0" width="100%">');
  document.write ('<tr valign="top"><td width="47%"><p><center>If you just want this CD, use the button below to go straight to the checkout:');

  document.write ('<form action="https://www.paypal.com/cgi-bin/webscr" method="post">');
  document.write ('<input type="hidden" name="cmd" value="_xclick">');
  document.write ('<input type="hidden" name="business" value="CDpayment@yourmontage.co.uk">');
  document.write ('<input type="hidden" name="undefined_quantity" value="1">');
  document.write ('<input type="hidden" name="item_name" value="' + ItemName + '">');
  document.write ('<input type="hidden" name="item_number" value="' + ItemNumber + '">');
  document.write ('<input type="hidden" name="amount" value="0.01">');
  document.write ('<input type="hidden" name="no_shipping" value="2">');
  document.write ('<input type="hidden" name="currency_code" value="GBP">');
  document.write ('<input type="hidden" name="lc" value="GB">');
  document.write ('<input type="hidden" name="bn" value="PP-BuyNowBF">');
  document.write ('<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but6.gif" border="0" name="submit" alt="Make payments with PayPal - it' + "'" + 's fast, free and secure!">');
  document.write ('<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"></form>');

  document.write ('</center></p></td><td width="6%"></td><td width="47%">'); */
  document.write ('<p><center>For the best value for postage, add all the CDs you want to your cart first ');
  document.write ('then pay together.');

  PayPalAddCart(ItemName,ItemNumber);

  PayPalViewCart();

  document.write ('</center></p></td></tr></table>');
  document.write ('</td></tr>'); 

}

function PayPalAddCart(ItemName,ItemNumber) {

  document.write ('<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">');
  document.write ('<input type="image" src="https://www.paypal.com//en_GB/i/btn/sc-but-01.gif" border="0" name="submit" alt="Make payments with PayPal - it' + "'" + 's fast, free and secure!">');
  document.write ('<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">');
  document.write ('<input type="hidden" name="add" value="1">');
  document.write ('<input type="hidden" name="cmd" value="_cart">');
  document.write ('<input type="hidden" name="business" value="CDpayment@yourmontage.co.uk">');
  document.write ('<input type="hidden" name="item_name" value="' + ItemName + '">');
  document.write ('<input type="hidden" name="item_number" value="' + ItemNumber + '">');
  document.write ('<input type="hidden" name="amount" value="0.01">');
  document.write ('<input type="hidden" name="no_shipping" value="2">');
  document.write ('<input type="hidden" name="currency_code" value="GBP">');
  document.write ('<input type="hidden" name="lc" value="GB">');
  document.write ('<input type="hidden" name="bn" value="PP-ShopCartBF"></form>');

}

function PayPalViewCart() {

  document.write ('<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">');
  document.write ('<input type="hidden" name="cmd" value="_cart">');
  document.write ('<input type="hidden" name="business" value="CDpayment@yourmontage.co.uk">');
  document.write ('<input type="image" src="https://www.paypal.com/en_GB/i/btn/view_cart.gif" border="0" name="submit" alt="Make payments with PayPal - it' + "'" + 's fast, free and secure!">');
  document.write ('<input type="hidden" name="display" value="1"></form>');

}

function CDCartRow() {

  StartRow();
  document.write ('<table width="100%"><tr valign="top"><td>');
  PayPalViewCart();
  document.write ('</td><td width="10"></td><td>');
  document.write ("<center><p>For the best savings on postage, add all the CDs you want to the cart before paying.");
  document.write ('</td></tr></table');
  EndRow();


}

function DJCDblurb() {

  document.write ('<p><span class="heavy">These promo CDs are available. To get hold of them, '); 
  document.write ('get one in person at a booking (checkout the <a href="./listings.htm">Listings</a>) ');
  document.write ('or or we can send them to you in the post if you pay online for the postage (to our business  ');
  document.write ("account: Your Montage). You don't need a Paypal account. We have to charge 1p for the CD as  ");
  document.write ("Paypal won't accept zero payment.</span></p> ");
  document.write ('<p><a href="demos.htm">Click here for Streaming Real Audio demo mixes</a></p> ');

}

setfirstStyleSheet() ;

