// ################################################################################################# //
// Initialize variables
// ################################################################################################# //

var version = "2";
var rolls = "0";
var popupcount = 0;
var day="";
var month="";
var day="";
var time="";
var something="";
var year="";

var today = new Date();
month	= today.getMonth()+1;
day		= today.getDate();
time	= today.getTime();
year	= today.getYear();


// ################################################################################################# //
// Functions
// ################################################################################################# //

function makeday(dayclass,daydate,info){
	document.write('<TD class="'+dayclass+'" VALIGN="TOP" width=100><FONT class="calentry">'+daydate+'<TABLE WIDTH="100%" class="infoblock"><tr><td><font class="dateinfo">'+info+'</td></tr></table></TD>\n');
}

function maketitle(dayclass,title){
	document.write('<TD class="'+dayclass+'" VALIGN="TOP" align="center">'+title+'</TD>\n');
}

function makemenu(name,image,link) {
	if (version == "2")	{ imgwidth= 100; spacerw = 24;}
	if (version == "1")	{ imgwidth= 150; spacerw = 2;}

	document.write('<img src="images/menu/1x1blank.gif" width='+spacerw+'>');
	document.write("<a href='"+link+".html' onmouseover=\"document."+name+".src='images/menu/"+image+"_ov.jpg';\" onmouseout=\"document."+name+".src='images/menu/"+image+"_b.jpg';\">");// onmouseover='rollover('"+name+"','"+image+"')'
	document.write('<img src="images/menu/'+image+'_b.jpg" name="'+name+'" border=0 width="'+imgwidth+'">');
	document.write('</a><br>');
	document.write('<img src="images/menu/1x1blank.gif" height="1" width=7>');
	document.write('<div id="rolls_'+rolls+'" style="visibility: hidden; position: absolute; left: 20px; top: 170px;"><img src="images/menu/'+image+'_b.jpg" name="rol_'+name+'" border=0 width="'+imgwidth+'"></div>');
	document.write('<br>');
}

function rollover(name,image){ /* document.images.[name].src = image+"_ov.jpg"; */ }

function imgrollover(imgname, imgbase, imgover, link, target ){
	document.write('<a href="'+link+'"	onMouseOut="document.'+imgname+'.src=\'images/'+imgbase+'\';" onMouseOver="document.'+imgname+'.src=\'images/'+imgover+'\';"');
	if (target)	{ document.write(target);}
	document.write('><img src="images/'+imgbase+'" name="'+imgname+'" border="0"></a>');
}

function pagetop(){
	if (version == "2")	{ imgwidth= 128; }
	if (version == "1")	{ imgwidth= 174; }

	document.write('<div id="rollovers" class="popclass1">');
	document.write('<img src="images/event_b.gif"><img src="images/event_o.gif">');
	document.write('</div>');
	document.write('<table cellpadding=0 cellspacing=0 width="840" border=0');
	document.write('<tr><td background="" width="" colspan="2"><a href="index.html"><IMG SRC="images/menu/Mnu_top_'+version+'.jpg" BORDER="0" ALT=""></a></td></tr>');
	document.write('<tr><td width="'+imgwidth+'" height=624 valign=top align=left><table cellpadding=0 cellspacing=0 width='+imgwidth+' border=0><tr>');
	document.write('<td background="images/menu/mnu_mid_'+version+'.jpg">');
		
		makemenu("menu01","Mnu_Calendar","calendar."+monthpage[month]);
		makemenu("menu02","Mnu_Clubs","clubs");
		makemenu("menu03","Mnu_Bands","Bands");
		makemenu("menu04","Mnu_Style","retro");
		makemenu("menu05","Mnu_Shops","Shops");
		makemenu("menu06","Mnu_hair","hair");
		makemenu("menu07","Mnu_djs","djs");
		makemenu("menu08","Mnu_email","email");
		makemenu("menu09","Mnu_links","links");
	//	makemenu("menu10","Mnu_Radio","Radio");
	document.write('</td></tr><tr><td>');

	if (version == "2")	{ document.write('<img src="images/menu/1x1blank.gif" width=1>');}
	document.write('<img src="images/menu/mnu_btm_'+version+'.jpg"></td></tr></table>');
	document.write('		</td>');
	document.write('		<td width="720" valign=top>'); //<a href="index.html"><IMG SRC="images/menu/Mnu_top2.jpg" BORDER="0" ALT=""></a><br><img src="images/menu/Divider.jpg"><br>');
}

function pageend(){
		document.write('<br><br><br><br></td><tr>');
		document.write('	</tr>');
		document.write('<table>');
}

function bandlist(title,info,link){
	document.write('<hr class="hrline">');
	document.write('<table><tr><td width=200>');
	if (link){
		document.write('<a href="http://'+link+'">');
	}
	document.write('<font class="title">'+title+'</a></td>');
	document.write('<td width=300 valign=top>'+info+'</td></tr>');
	document.write('</table>');
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function monthlink(themonth){
	document.write('<select name="menu1" size="1" onChange="MM_jumpMenu(\'parent\',this,0)" class="selectmonth">');
	for (mon=1; mon<13 ;mon++ )	{
		document.write('<option value="calendar.'+monthpage[mon]+'.html"');
		if (themonth == monthpage[mon]){
			document.write(' selected');
		}
		document.write('>'+calmonth[mon]+'</option> ');
	}
	document.write('</select>');
}


function dateentry(text,link,datetype,dateinfo) {
	document.write('<a onclick="document.getElementById(\''+"popup_"+popupcount+'\').style.visibility = \'visible\';" style="cursor: hand;"  onMouseOut="document.info_'+popupcount+'.src=\'images/'+datetype+'_b.gif\';" onMouseOver="document.info_'+popupcount+'.src=\'images/'+datetype+'_o.gif\';" ><img src="images/'+datetype+'_b.gif" align="absmiddle" name="info_'+popupcount+'"><FONT class="calentry">'+text.substr(0,12)+'...</FONT></a><br>');
	popup("popup_"+popupcount,text,'popclass1',"<center><A HREF=\"http://"+link+"\" target=\"_new\" >"+text+"</A></center><hr>"+dateinfo,"calentry");
	popupcount++;
}

function dateentrylocal(text,link,datetype,dateinfo) {
	document.write('<a onclick="document.getElementById(\''+"popup_"+popupcount+'\').style.visibility = \'visible\';" style="cursor: hand;"  onMouseOut="document.info_'+popupcount+'.src=\'images/'+datetype+'_b.gif\';" onMouseOver="document.info_'+popupcount+'.src=\'images/'+datetype+'_o.gif\';" ><img src="images/'+datetype+'_b.gif" align="absmiddle" name="info_'+popupcount+'"> '+text.substr(0,12)+'...</FONT></a><hr>');
	popup("popup_"+popupcount,text,'popclass1',"<center><A HREF=\"http://"+link+"\">"+text+"</A></center><br>"+dateinfo,"calentry");
	popupcount++;
}

function startday(dayclass,daydate){
	document.write('<TD class="'+dayclass+'" VALIGN="TOP" width=100><FONT class="calday">'+daydate+'<TABLE WIDTH="100%" class="infoblock"><tr><td><font class="dateinfo">');
}


function endday(){
	document.write("</td></tr></table></TD>");
}


function popup(pop_name,pop_title,pop_class,pop_content,pop_fontclass){
	document.write('<div id="'+pop_name+'" class="popclass1">');
	document.write('<table width=700 height=500 cellpadding=0 cellspacing=0><tr><td align=center valign=middle><table bgcolor=white width=200 height=200 class="border1" cellpadding=0 cellspacing=0>');
	document.write('<tr><Td height=15 class="border1" align=center width="100%" bgcolor=darkblue><font class="popuptitle">'+pop_title+'</font></td><td class="border1" width=10   bgcolor=darkblue><a onclick="document.getElementById(\''+pop_name+'\').style.visibility = \'hidden\';" style="cursor: hand;"	onMouseOut="document.close_'+pop_name+'.src=\'images/buttons/close_b.gif\';" onMouseOver="document.close_'+pop_name+'.src=\'images/buttons/close_o.gif\';"><img src="images/buttons/close_b.gif" name="close_'+pop_name+'" border="0"></a></td></tr>');
	document.write('<tr><td valign=top class="border1" colspan=2><font class="popup_text">'+pop_content+'</font></td></tr>');
	document.write('</table></td></tr></table>');
	document.write('</div>');
}


