// here's the 'ol sIFR
if(typeof sIFR == "function"){
sIFR.replaceElement(named({sSelector:"#content h1",  sFlashSrc:"carpenterICG.swf", sColor:"#7aa68e", sWmode:"transparent"}));
};


//  menu functions
function awesomemenu(div) {
	aClose('m1');
	aClose('m2');
	aClose('m3');
	aOpen(div);	
}

function aOpen(div) {
	if($(div).getStyle('height') == "0px"){
	var aboutmenu = new Fx.Height(div, {duration: 300});
	aboutmenu.custom(0,300);
	}
}

function aClose(div) {
	if($(div).getStyle('height') != "0px"){
	var aboutmenu = new Fx.Height(div, {duration: 100});
	aboutmenu.custom(300,0);
	}
}




//  onload="fixPNG(this)"
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}



function runSiteScripts() {
	

// here's the swfobject to make flash work
var so = new SWFObject("flashheader.swf", "flashanim1", "770", "190", "6", "ffffff");
so.addParam("wmode","transparent");
so.write("flashheader");



// Define the location of count.asp
// Using a path, you may use this code in any subfolder
var file='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="' + file + '?'+info+ '" width=0 height=0 border=0>');


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();};
}
}

}

