// Test if the browser is DOM capable
if (document.getElementById && document.getElementsByTagName)
{
	addLoadEvent(striped);
}

// Loads functions on body.onload
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

function striped() {
	//alert('OK');
	//alert('I JS = '+striped_id);
	//alert('I JS = '+striped_nth);
	//alert('I JS = '+striped_class);
	//alert('#' + striped_id + ' li:nth-child(' + striped_nth + ')');
	
	var striped_id_class = '#' + striped_id + ' li:nth-child(' + striped_nth + ')';
	$$(striped_id_class).each(function(item){item.addClassName(striped_class)});
}

