
/*---------------------------------------------------*/


function mainmenu()
{
var doc='';
var f1='<BR>';
doc+='<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" WIDTH="100%" BGCOLOR="#ffcc33">';
doc+='<TR><TD ALIGN="left" CLASS="menubt11">';
doc+='<A HREF="../linktous.htm" TITLE="Banners-Buttons - If you think this is a good site, please consider linking us from your website.">Banners-Buttons</A>'+f1;
doc+='<A HREF="../cal2010.htm" TITLE="Calendar 2010">Calendar 2010</A>'+f1;
doc+='<A HREF="../cal2011.htm" TITLE="Calendar 2011">Calendar 2011</A>'+f1;
doc+='<A HREF="../linkmisc.htm" TITLE="Contest Links">Contest Links</A>'+f1;
doc+='<A HREF="../resultsa.htm" TITLE="Contest Results">Contest Results</A>'+f1;
doc+='<A HREF="../software.htm" TITLE="Contest Software">Contest Software</A>'+f1;
doc+='<A HREF="../download.htm" TITLE="Downloads">Downloads</A>'+f1;
doc+='<A HREF="../../edxccli.htm" TITLE="DXCC List">DXCC List</A>'+f1;
doc+='<A HREF="../../eiarur1.htm" TITLE="IARU Region 1 HF Band Plan">IARU R1 Band Pl.</A>'+f1;
doc+='<A HREF="../intcss2.htm" TITLE="Allocation of International Call Sign Series">Int. Call Sign Ser.</A>'+f1;
doc+='<A HREF="../log4u.htm" TITLE="Log4U - contest logging program for Swedish Contests"><img src="../graphics/flagse8.gif" width="11" height="8" border="0"> Log4U</A>'+f1;
doc+='<A HREF="../newsar08.htm" TITLE="News Archives">News Archives</A>'+f1;
doc+='<A HREF="../rufztop.htm" TITLE="RUFZ Top List">RUFZ Top List</A>'+f1;
doc+='<A HREF="../rulinda.htm" TITLE="Rules Index">Rules Index</A>'+f1;
doc+='<BR><BR>';
doc+='</TD></TR></TABLE>';
document.write(doc);
}


/*---------------------------------------------------*/


function submenu()
{
var doc='';
doc+='<A HREF="../index.htm"><IMG SRC="../graphics/ft1.gif" ALT="SM3CER Contest Service" WIDTH="103" HEIGHT="14" BORDER="0"></A><A HREF="javascript:history.back()"><IMG SRC="../graphics/ft2.gif" ALT="Previous page" WIDTH="103" HEIGHT="14" BORDER="0"></A><A HREF="../cal2010.htm"><IMG SRC="../graphics/ft3.gif" ALT="Calendar 2010" WIDTH="103" HEIGHT="14" BORDER="0"></A><A HREF="../cal2011.htm"><IMG SRC="../graphics/ft4.gif" ALT="Calendar 2011" WIDTH="102" HEIGHT="14" BORDER="0"></A><A HREF="../rulinda.htm"><IMG SRC="../graphics/ft5.gif" ALT="Rules Index" WIDTH="103" HEIGHT="14" BORDER="0"></A><A HREF="../resultsa.htm"><IMG SRC="../graphics/ft6.gif" ALT="Contest Results" WIDTH="103" HEIGHT="14" BORDER="0"></A><A HREF="../../index.html"><IMG SRC="../graphics/ft7.gif" ALT="SK3BG Web Site" WIDTH="103" HEIGHT="14" BORDER="0"></A>';
document.write(doc);
}


/*---------------------------------------------------*/


/*----------------------------------------------------
||Banner Ad Rotater v3.00                            ||
||Script by:  Anarchos                               ||
||URL: http://anarchos.xs.mw/                        ||
||E-mail: anarchos3@hotmail.com                      ||
||ICQ: 12007422                                      ||
||                                                   ||
||E-mail or ICQ me if you have any questions or need ||
||help setting up your banner ad rotator. Check out  ||
||my webpage every once in a while for updates to    ||
||this script.                                       ||
-----------------------------------------------------*/

function Banner(objName,refreshTime, width, height, altText, start, random){
	//Methods
		this.output = b_output //output the initial banner code
		this.Ad = b_Ad //add an ad to the ads array
		this.newAd = b_newAd //display the next ad
		this.randomAd = b_randomAd //make a random ad
		this.nextAd = b_nextAd //queue the next ad
		this.link = b_link //open the new url
		this.showStatus = b_showStatus //show the statusbar message
	//Properties
		if (!objName) this.objName = "myAd"; else this.objName = objName
		if (!refreshTime) this.refreshTime = 5000; else this.refreshTime = refreshTime*1000 //init refresh time
		if (!width) this.width = 460; else this.width = width;
		if (!height) this.height = 68; else this.height = height;
		if (random == null) this.random = 1; else this.random = random //cycle randomly
		this.altText = altText;
		this.ads = new Array() //init ads array
		if (start) this.currentAd = start-1; else start = null;
		this.mySize = 0 //init size
}

function b_Ad(src, href, target, mouseover) {
	var tempImage = new Image()
	tempImage.src = src
	this.ads[this.mySize] = new Object()
	this.ads[this.mySize].src = src
	if (!target) this.ads[this.mySize].target = "_self"; else this.ads[this.mySize].target = target;
	this.ads[this.mySize].href = href
	this.ads[this.mySize].mouseover = mouseover
	this.mySize++;
}

function b_link(){
	var ad = this.ads[this.currentAd];
	if (ad.target == "_self"){
		window.location.href = ad.href;
		}
	else if (ad.target == "_blank" || ad.target == "_new"){
		window.open(ad.href,this.objName + "Win","location,status,scrollbars,resizable,toolbar,location,directories,menubar");
	}
	else top.frames[ad.target].location.href = ad.href;
}

function b_showStatus(){
	var ad = this.ads[this.currentAd];
	if (ad.mouseover)
		window.status = ad.mouseover;
	else window.status = ad.href;
}

function b_randomAd(){
	var n
	do { n = Math.floor(Math.random() * (this.mySize)) } 
	while(n == this.currentAd)
	this.currentAd = n
}

function b_output(){
	tempCode = "";
	if (this.mySize > 1){
		if (this.currentAd == null) this.randomAd();
		if (this.currentAd >= this.mySize) this.currentAd = this.mySize - 1;
		tempCode = '<a href="javascript:'+this.objName+'.link()"';
		tempCode += ' onMouseOver="' + this.objName + '.showStatus(); return true"';
		tempCode += ' onMouseOut="status=\'\';return true">';
		tempCode += '<img src="' + this.ads[this.currentAd].src + '" width="' + this.width;
		tempCode += '" name="' + this.objName + 'Img" height="' + this.height + '" ';
		if (this.altText) tempCode += 'alt="'+this.altText + '" ';
		tempCode += 'border="0" ></a>';
		document.write(tempCode);
		this.nextAd();
	} else document.write("Error: two banners must be defined for the script to work.");
}

function b_newAd(){
    if (!this.random){	
		this.currentAd++;
		if (this.currentAd >= this.mySize)
		   this.currentAd = 0;
    }
	else {
	     this.randomAd();
		}
	this.nextAd();
}

function b_nextAd(){
	document.images[this.objName+ 'Img'].src = this.ads[this.currentAd].src;
	setTimeout(this.objName+'.newAd()',this.refreshTime)
}


/*---------------------------------------------------*/


var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");

var now = new Date();
now = new Date(); 
day = now.getDay();
year= now.getFullYear();


/*---------------------------------------------------*/



