function changeImage(img_name,img_src) {
document[img_name].src=img_src;
}

function ChangeStyle(eid)
{
	document.cat3.all.style.fontSize = "14pt";
  //document.getElementById(eid).style.fontSize = "14pt";
  document.getElementById(eid).style.fontWeight = "bold";
  //document.getElementById("MyTag").style.color = "red";
}


function opacity() {
    //speed for each frame
    var millisec=7000;
	var speed = Math.round(millisec / 100);
    var timer = 0;
	var id='fadeImg';
    //determine the direction for the blending, if start and end are the same nothing happens
        for(i = 100; i >= 0; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
}

//fix site top margin:
function fixTopMargin(id) {
	var h = screen.height;
	var w = document.getElementById(id);
	if (w) {
		if (h > 768 && h < 900) {
			w.style.marginTop = "0px";
		} else if (h >900 && h < 1000) {
			w.style.marginTop = "50px";
		} else if (h >= 1024) {
			w.style.marginTop = "90px";
		}
	}
}
try {  document.execCommand('BackgroundImageCache', false, true);} catch(e) {}
