
Window.onDomReady(function(){
	blurAnchors();
    count();
	
	// swf Object code here
    //var JoJooJo = new SWFObject("logo.swf", "logo", "408", "232", "6", "#000000");
    //    JoJooJo.addParam("wmode", "transparent");
    //    JoJooJo.write("flashlogo");
	
	//Accordion Menu
	var theMenu = document.getElementsByClassName('menuTitle');
	var theMenuSubs = document.getElementsByClassName('menuSubs');
	var myEffect = new fx.Accordion(theMenu, theMenuSubs, {});
	
 var showtextup = readCookie('bigtext')
		if (showtextup) {
          textup();
		  Hide('textlarger');
		 }
 var showtextdown = readCookie('smalltext')
		if (showtextdown) {
          textdown();
		  Show('textlarger');
		 }

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
{
   for(var i=0; i<document.images.length; i++)
   {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText 
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}

	
});





// Name: Basic Hide Show
// --------------------------------------------------
function Hide(str) {
		x = document.getElementById(str);
		x.style.display = 'none';
		}
		
function Show(str) {
		x = document.getElementById(str);
		x.style.display = 'block';
		}
		


// Name: blur Anchors
// Description: Remove anchor outlines from all links in the document
// --------------------------------------------------
function blurAnchors(){
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}
}
/* helper function */
//function addLoadEvent(func){if(document.getElementById&&document.createTextNode){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}} 

//Name: Cookies yum yum
// --------------------------------------------------
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}



 function textup() {
var textup = new fx.Style('copy', 'font-size');
textup.custom(12, 20);
createCookie('bigtext','yeah',0);
eraseCookie('smalltext');
}

 function textdown() {
var textup = new fx.Style('copy', 'font-size');
textup.custom(20, 12);
createCookie('smalltext','yeah',0);
eraseCookie('bigtext');
}



// Name: webstats
// --------------------------------------------------
function count() {
var statsa='/statistics/count.asp';
var d=new Date();
var s=d.getSeconds();
var m=d.getMinutes();
var x=s*m;
f='' + escape(document.referrer);
if (navigator.appName=='Netscape'){b='NS';} 
if (navigator.appName=='Microsoft Internet Explorer'){b='MSIE';} 
if (navigator.appVersion.indexOf('MSIE 3')>0) {b='MSIE';}
u='' + escape(document.URL); w=screen.width; h=screen.height; 
v=navigator.appName; 
fs = window.screen.fontSmoothingEnabled;
if (v != 'Netscape') {c=screen.colorDepth;}
else {c=screen.pixelDepth;}
j=navigator.javaEnabled();
info='w=' + w + '&h=' + h + '&c=' + c + '&r=' + f + '&u='+ u + '&fs=' + fs + '&b=' + b + '&x=' + x;
//document.write('<img src="' + statsa + '?'+info+ '" width=0 height=0 border=0>');
IMGpreviewHTML = '<img src="' + statsa + '?'+info+ '" width=0 height=0 border=0>';
document.getElementById('IMGpreview').innerHTML = IMGpreviewHTML
}


