HomeKeywords = {
	init : function() {
		var divs = document.getElementById("keywords").getElementsByTagName("div");
		for(var i=0; i<divs.length; i++) {
			if(divs[i].className == "keyword") {
				divs[i].onmouseover = function() {
					this.parentNode.className += "keyword-hover";
				};
				divs[i].onmouseout = function() {
					this.parentNode.className = this.parentNode.className.replace(/keyword-hover/g, "");
				};
			}
		}
	}
};

YAHOO.util.Event.onAvailable("read-more-link", available = function() { 
	YAHOO.util.Event.addListener("read-more-link", "click", grow = function(e) {
		YAHOO.util.Event.preventDefault(e);
		var introduction = YAHOO.util.Dom.get("automate-pci-sox");
		var height = YAHOO.util.Dom.getStyle(introduction, "height");
		var height = parseInt(height);
		if (height >= 147 && height <= 152) { 
			var animation = new YAHOO.util.Anim(introduction, {height: {by: 175}}, 1, YAHOO.util.Easing.easeOut);
			animation.animate();
		} else {
			var animation = new YAHOO.util.Anim(introduction, {height: {to: 149}}, 1, YAHOO.util.Easing.easeOut);
			animation.animate();
		}
	})
});

/*****

Image Cross Fade Redux
Version 1.0
Last revision: 02.15.2006
steve@slayeroffice.com

Please leave this notice intact. 

Rewrite of old code found here: http://slayeroffice.com/code/imageCrossFade/index.html


*****/


window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);

var d=document, list = new Array(), zInterval = null, current=0, pause=false;

function so_init() {
	if(!d.getElementById || !d.createElement)return;
		
	list = d.getElementById("log-logic-news-nav").getElementsByTagName("li");
	for(i=1;i<list.length;i++) list[i].xOpacity = 0;
	list[0].style.display = "block";
	list[0].xOpacity = .99;
	
	setTimeout(so_xfade,3000);
}

function so_xfade() {
	cOpacity = list[current].xOpacity;
	nIndex = list[current+1]?current+1:0;
	nOpacity = list[nIndex].xOpacity;
	
	cOpacity-=.05; 
	nOpacity+=.05;
	
	list[nIndex].style.display = "block";
	list[current].xOpacity = cOpacity;
	list[nIndex].xOpacity = nOpacity;
	
	setOpacity(list[current]); 
	setOpacity(list[nIndex]);
	
	if(cOpacity<=0) {
		list[current].style.display = "none";
		current = nIndex;
		setTimeout(so_xfade,3000);
	} else {
		setTimeout(so_xfade,50);
	}
	
	function setOpacity(obj) {
		if(obj.xOpacity>.99) {
			obj.xOpacity = .99;
			return;
		}
		obj.style.opacity = obj.xOpacity;
		obj.style.MozOpacity = obj.xOpacity;
		obj.style.filter = "alpha(opacity=" + (obj.xOpacity*100) + ")";
	}
	
}