/* 

Atlantic BT scripts

*/

function showHideDiv() {
//simply just a name changed MM script
  var i,p,v,obj,args=showHideDiv.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}

function navmouseover(el) {
	el.style.backgroundColor = "#e0e4ea"
}

function navmouseout(el) {
	el.style.backgroundColor = ""
}

function showInfo(el) {
	el.style.display = "block"
}



/* code by Chris Heilmann, evolt.org/trackback/60273 */
function hidem()
{
			for (var i=0;i<getElementsByClassName(document,'info_block').length;i++)
			{
				getElementsByClassName(document,'info_block')[i].style.display='none';
			}
}
/* end Chris' code */

/* code by Marius Kreis, www.nulldevice.org */
function gitteran(spalte, zeile, verz)
	{
	  //document.images[verz].src="bilder/pfeilvonoben.gif";
	  document.images["spalte" + spalte].src="bilder/pixelorange.gif";
	  document.images["zeile" + zeile].src="bilder/pixelorange.gif";
	}
	
function gitteraus(spalte, zeile, verz)
	{
	  //document.images[verz].src="bilder/pixeltransparent.gif";
	  document.images["spalte" + spalte].src="bilder/pixeltransparent.gif";
	  document.images["zeile" + zeile].src="bilder/pixeltransparent.gif";
	}
/* end nulldevice code */

/* Written by Jonathan Snook, http://www.snook.ca/  */
function getElementsByClassName(node, classname)
{
    var a = [];
    var re = new RegExp('\\b' + classname + '\\b');
    var els = node.getElementsByTagName("*");
    for(var i=0,j=els.length; i<j; i++)
        if(re.test(els[i].className))a.push(els[i]);
    return a;
}
/* End Snooks Code */

<!-- Copyright 2002 Bontrager Connection, LLC

function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "January";
   months[1]  = "February";
   months[2]  = "March";
   months[3]  = "April";
   months[4]  = "May";
   months[5]  = "June";
   months[6]  = "July";
   months[7]  = "August";
   months[8]  = "September";
   months[9]  = "October";
   months[10] = "November";
   months[11] = "December";
   var now         = new Date();
   var nday = now.getDay();
    if (nday==0)
  	nday="Sun";
	if (nday==1)
  	nday="Mon";
	if (nday==2)
  	nday="Tue";
	if (nday==3)
  	nday="Wed";
	if (nday==4)
  	nday="Thu";
	if (nday==5)
  	nday="Fri";
	if (nday==6)
  	nday="Sat";
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = nday + ", " + monthname +
                    ' ' +
                    monthday +
                    ', ' +
                    year;
   return dateString;
} // function getCalendarDate()

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "AM";
   if (hour   > 11) { ap = "PM";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour +
                    ':' +
                    minute +
                    ':' +
                    second +
                    " " +
                    ap;
   return timeString;
}


/* Date Script */
function write_date()
{
	var curdate = new Date();
	dstring = curdate.toGMTString();
	document.write(dstring);
}


function write_date2()
{
var thetime=new Date();

var nday=thetime.getDay();
var nmonth=thetime.getMonth();
var ntoday=thetime.getDate();
var nyear=thetime.getYear();
var ntime=thetime.getTime();
var AorP=" ";

if (nday==0)
  nday="Sun";
if (nday==1)
  nday="Mon";
if (nday==2)
  nday="Tue";
if (nday==3)
  nday="Wed";
if (nday==4)
  nday="Thu";
if (nday==5)
  nday="Fri";
if (nday==6)
  nday="Sat";

if (nmonth==0)
  nmonth="Jan";
if (nmonth==1)
  nmonth="Feb";
if (nmonth==2)
  nmonth="Mar";
if (nmonth==3)
  nmonth="Apr";
if (nmonth==4)
  nmonth="May";
if (nday==5)
  nmonth="Jun";
if (nmonth==6)
  nmonth="Jul";
if (nmonth==7)
  nmonth="Aug";
if (nmonth==8)
  nmonth="Sept";
if (nmonth==9)
  nmonth="Oct";
if (nmonth==10)
  nmonth="Nov";
if (nmonth==11)
  nmonth="Dec";

if (nyear<=99)
  nyear= "19"+nyear;

if ((nyear>99) && (nyear<2000))
 nyear+=1900;

document.write(""+nday+" "+nmonth+" "+ntoday+" "+nyear+" "+ntime+" EDT");

}
/* End Date */



// Email.js version 5
var tld_ = new Array()
tld_[0] = "com";
tld_[1] = "org";
tld_[2] = "net";
tld_[3] = "ws";
tld_[4] = "info";
tld_[10] = "co.uk";
tld_[11] = "org.uk";
tld_[12] = "gov.uk";
tld_[13] = "ac.uk";
var topDom_ = 13;
var m_ = "mailto:";
var a_ = "@";
var d_ = ".";

function mail(name, dom, tl, params)
{
	var s = e(name,dom,tl);
	document.write('<a href="'+m_+s+params+'" onclick="window.location=\'/terms-of-use.asp\';">'+s+'</a>');
}
function mail2(name, dom, tl, params, display)
{
	document.write('<a href="'+m_+e(name,dom,tl)+params+'">'+display+'</a>');
}
function e(name, dom, tl)
{
	var s = name+a_;
	if (tl!=-2)
	{
		s+= dom;
		if (tl>=0)
			s+= d_+tld_[tl];
	}
	else
		s+= swapper(dom);
	return s;
}
function swapper(d)
{
	var s = "";
	for (var i=0; i<d.length; i+=2)
		if (i+1==d.length)
			s+= d.charAt(i)
		else
			s+= d.charAt(i+1)+d.charAt(i);
	return s.replace(/\?/g,'.');
}


function printThis() {
	if (window.print) {
		window.print()
	}
	else
	{
		alert('To print his page press Ctrl-P on your keyboard \nor choose print from your browser or device after clicking OK');
	}
}