function addLinks(){
	catalogs = $ES('.ItemCatalog','Main');
	var offset = -90;
	var increment = 135;
	pageLinks.each(function(href,i){
		if(catalogs[i] != undefined){
			var y = offset + increment;
			var el = new Element('a',{
				href:href
			});
			el.setStyles({
				'position':'absolute',
				'left':'20px',
				'top':y+'px',
				'width':'160px',
				'height':'120px'
			}).addClass('ImageRep').removeProperty('id').injectTop(catalogs[i]);
			offset += increment;
		}
	});
}

window.addEvent('domready',addLinks);


// set the values of this array to the URLs you wish to add as links in the correct order
var pageLinks = $A([
	'http://www.metacafe.com/music/pop/','http://www.metacafe.com/music/rock/','http://www.metacafe.com/music/rnb/','http://www.metacafe.com/music/hiphop/','http://www.metacafe.com/music/latin/',
]);