/*
	-> thumb links
	just gives cross-browser opacity to thumbnail links
	
	coded in january 2007 by pinit.
	http://me.pinit.it

	(feel free to use but please keep this comment!)
*/

var thumblnk = {
	fire : function(){
		var ua = window.navigator.userAgent;
		var msie = ua.indexOf ( "MSIE " );
		var mytags = document.getElementsByTagName("a");
		for (i=0; i<mytags.length; i++) {
		if (mytags[i].className.indexOf("tvid") != -1) {
				var lnk = mytags[i];		
				if (msie > 0) { // append damn proprietary ie attribute!
					lnk.onmouseover= function(){this.parentNode.nextSibling.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=75)";};
					lnk.onmouseout = function(){this.parentNode.nextSibling.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity=100)";};
				} else { // append valid css3 attribute for standard-compliant browsers
					lnk.onmouseover = function(){this.parentNode.parentNode.style.opacity='.75555';};
					lnk.onmouseout = function(){this.parentNode.parentNode.style.opacity='1';};
				}
			}
		}
	}
}