updateLyteboxItems = function() {	
	var anchors = document.getElementsByTagName('a');
	for (var i = 0; i < anchors.length; i++) {
		var anchor = anchors[i];
		var relAttribute = String(anchor.getAttribute('rel'));
		if (anchor.getAttribute('href')) {
			if (relAttribute.toLowerCase().match('lyteframe')) {
				anchor.onclick = function () { window.open(this.href,'lyteframe','menubar=no,width=850,height=620,scrollbars=yes'); return false; }
			}
		}
	}
};

if (window.addEventListener) {
	window.addEventListener("load",initLytebox,false);
} else if (window.attachEvent) {
	window.attachEvent("onload",initLytebox);
} else {
	window.onload = function() {initLytebox();}
}
function initLytebox() { updateLyteboxItems(); }
