function stripeList() { 
 if(document.getElementsByTagName) {
	 _oddClass = "odd" ;
	 _evenClass = "even" ;
	 _lists = document.getElementsByTagName("UL") ;
	 for(i = 0 ; i < _lists.length ; i++) {
	var _switch = 0 ;
	for(j = 0 ; j < _lists[i].childNodes.length ; j++) {
	 node = _lists[i].childNodes[j] ;
	 if(node.nodeName == "LI") {
		if(_switch == 0) { _switch = 1 ; node.className = _evenClass ; } else { node.className = _oddClass ; _switch = 0 ; }
		node.onmouseover = function() { this.className += " over";}
		node.onmouseout = function() { this.className = this.className.replace(" over","");  }
	 }
	}
	 }
	 _switch = 0 ;
 }
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
	 var anchor = anchors[i];
	 if (anchor.getAttribute("href") &&
			 anchor.getAttribute("class") == "external")
		 anchor.target = "_blank";
 }
} 
	
window.onload = function() {
stripeList();
externalLinks();
}

	
$(document).ready(function(){ 
	$(".popup").click(function() { 
		url = $(this).attr("href");
		width = "800" ;
		height = "450" ;
		window.open(url,"www.koneensaatio.fi", "resizable, scrollbars, width =" + width + ", height =" + height);
		return false ;
		
	});
});