// -- FANTA JavaScript Library
// -- Created by F2, http://wwww.f2sys.net


// -- Global Functions
// -- document.write("Hello from the external.js file!<BR>");

// -- image rollover scripts

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

// -- image preload script

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		publications_over = newImage("http://www.fantaproject.org/images/nav/publications-over.gif");
		aboutus_over = newImage("http://www.fantaproject.org/images/nav/aboutus-over.gif");
		partners_over = newImage("http://www.fantaproject.org/images/nav/partners-over.gif");
		links_over = newImage("http://www.fantaproject.org/images/nav/links-over.gif");
		contactus_over = newImage("http://www.fantaproject.org/images/nav/contactus-over.gif");
		sitemap_over = newImage("http://www.fantaproject.org/images/nav/sitemap-over.gif");
		preloadFlag = true;
	}
}

// -- fix Netscape's resize bug - resize_script.js

function reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

// -- end fix Netscape's resize bug - resize_script.js


// -- get Date

// --   currentDate = new Date();	
// --   ourDay = currentDate.getDay();	
// --   if (ourDay == 0) { document.write("Sunday"); }	
// --   if (ourDay == 1) { document.write("Monday"); }	
// --   if (ourDay == 2) { document.write("Tuesday"); }	
// --   if (ourDay == 3) { document.write("Wednesday"); }	
// --   if (ourDay == 4) { document.write("Thursday"); }	
// --   if (ourDay == 5) { document.write("Friday"); }	
// --   if (ourDay == 6) { document.write("Saturday"); }	

// --  document.write(",&nbsp;");	
// --   if (ourMonth == 0) { document.write("January&nbsp;"); }	
// --   if (ourMonth == 1) { document.write("February&nbsp;"); }	
// --   if (ourMonth == 2) { document.write("March&nbsp;"); }	
// --   if (ourMonth == 3) { document.write("April&nbsp;"); }	
// --   if (ourMonth == 4) { document.write("May&nbsp;"); }	
// --   if (ourMonth == 5) { document.write("June&nbsp;"); }	
// --   if (ourMonth == 6) { document.write("July&nbsp;"); }	
// --   if (ourMonth == 7) { document.write("August&nbsp;"); }	
// --   if (ourMonth == 8) { document.write("September&nbsp;"); }	
// --   if (ourMonth == 9) { document.write("October&nbsp;"); }	
// --   if (ourMonth == 10) { document.write("November&nbsp;"); }	
// --   if (ourMonth == 11) { document.write("December&nbsp;"); }	
// --    document.write(currentDate.getDate());
// --    document.writeln(",&nbsp;");
// --    document.write(currentDate.getFullYear());
 
// -- end Date

// EOF