function pngmake() {
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (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
      }
   }
}
}



function doSite() {
// swf Object code here
var JoJooJo = new SWFObject("top.swf", "logo", "770", "238", "6");
    JoJooJo.addParam("wmode", "transparent");
    JoJooJo.write("header");
	sIFR.replaceElement(named({sSelector:"#copy h1", sFlashSrc:"h1.swf", sColor:"#881326", sLinkColor:"#1D182E", sHoverColor:"#1D182E", sWmode:"transparent"}))
    sIFR.replaceElement(named({sSelector:"#copy h2", sFlashSrc:"h1.swf", sColor:"#00320D", sLinkColor:"#1D182E", sHoverColor:"#1D182E", sWmode:"transparent"}))
// Accordion Menu
	var theMenu = document.getElementsByClassName('menuTitle');
	var theMenuSubs = document.getElementsByClassName('menuSubs');
	var myEffect = new fx.Accordion(theMenu, theMenuSubs, {});
blurAnchors();
count();

}





// 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: accordion Menus
// --------------------------------------------------
function accordion(el) {
    if (Element.hasClassName(el.parentNode.id+'-body','visible')){
        //do not need to perform an actions
        return;
    }
    var eldown = el.parentNode.id+'-body';
    var apanels = document.getElementsByClassName('panel_body',el.parentNode.parentNode);
    for (var i=0;i<apanels.length;i++){
        if (Element.hasClassName(apanels[i].parentNode.id+'-body','visible'))
            var elup = apanels[i].parentNode.id+'-body';
    }
    new Effect.Parallel([ new Effect.BlindUp(elup), new Effect.BlindDown(eldown) ], {duration: 0.5});
    Element.removeClassName(elup,'visible');
    Element.addClassName(eldown,'visible');
}

function accordion_init(id) {
    var apanels = document.getElementsByClassName('panel_body',id);
    for (var i=0;i<apanels.length;i++){
        apanels[i].style.display = 'none';
    }
    var velems = document.getElementsByClassName('visible');
    for (var i=0;i<velems.length;i++){
        $(velems[i]).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);
}


// 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
}<!-- 

 -->