var oas = 'http://ads.mgnetwork.com/RealMedia/ads/';
var RN = new String (Math.random());
var RNS = RN.substring (2,11);

function DisplayOasAd (position) {
	var oaspage = sitepage + '/1' + RNS + '@' + position;
	if (_version < 11) {
		document.write ('<a href="' + oas + 'click_nx.ads/' + oaspage + '" target="_top"><img src="' + oas + 'adstream_nx.ads/' + oaspage + '" border="0"></a>');
	}
	else {
		document.write ('<script language="JavaScript1.1" src="' + oas + 'adstream_jx.ads/' + oaspage + '"><\/script>');
	}
}

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_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];}
}

function addIEFavorite() {
	if (window.external) {
		external.AddFavorite(location.href, 'WJBF.com')
	}
	else {
		alert("Oops, your browser doesn't support this feature.\n" +
		"If you are using Netscape Navigator, click Bookmarks\n" +
		"and then Add Bookmark to add this site to your favorites.");
	}
}

	var today = new Date();
	var minute = today.getMinutes();

function writeDate() {
	var now = new Date();
	var currentDate = now.getDate();
	var currentMonth = now.getMonth();
	var viewMonth;
		if(currentMonth == 0) {viewMonth = "January";}
		if(currentMonth == 1) {viewMonth = "Feb.";}
		if(currentMonth == 2) {viewMonth = "March";}
		if(currentMonth == 3) {viewMonth = "April";}
		if(currentMonth == 4) {viewMonth = "May";}
		if(currentMonth == 5) {viewMonth = "June";}
		if(currentMonth == 6) {viewMonth = "July";}
		if(currentMonth == 7) {viewMonth = "August";}
		if(currentMonth == 8) {viewMonth = "Sept.";}
		if(currentMonth == 9) {viewMonth = "Oct.";}
		if(currentMonth == 10){viewMonth = "Nov.";}
		if(currentMonth == 11){viewMonth = "Dec.";}
	document.write(viewMonth + " ");
	document.write(" " + currentDate + ", ");
	var currentYear = now.getYear();
	   if(currentYear == 105) { currentYear = "2005";}
	   if(currentYear == 106) { currentYear = "2006";}
	document.write(currentYear);
}

function createWindow(pageURL,wWidth,hHeight) {
	window.open(pageURL, "secondWindow", "toolbar=no,scrollbars=yes,directories=no, status=no,menubar=no,resizable=no,width=" + wWidth + ",height=" + hHeight)
}