(function() {
	YAHOO.namespace('wens');
	var loader = new YAHOO.util.YUILoader({
		base: 'js/build/',//where do they live?

		require: ['element', 'tabview', 'connection', 'carousel', 'animation'], // what components?

		//		rollup: true,

		onSuccess: function() {
			YAHOO.util.Event.onContentReady('', function() {
				YAHOO.util.Event.addListener('collection-prev', ' click', function(e) {
					var attributes = {
						opacity: { to: 0 }
					}
					anim = new YAHOO.util.Motion(Dom.get('show-item-0'), attributes,.5, YAHOO.util.Easing.easeOut);
					anim.animate();
				});
			});
			window.setTimeout(function() {
				YAHOO.util.Get.script('js/layover.js');
			}, 0);
		},

		// should a failure occur, the onFailure function will be executed
		onFailure: function(o) {
			alert("error: " + YAHOO.lang.dump(o));
		}

	});

	// Calculate the dependency and insert the required scripts and css resources
	// into the document
	loader.insert();

})();

function loadLikeMore(el) {
//	alert(YAHOO.util.Dom.getElementsByClassName('follow', 'a', el.parentNode.parentNode).length)
	var cont = YAHOO.util.Dom.getAncestorByClassName(el, 'holder');
	document.location = YAHOO.util.Dom.getElementsByClassName('follow', 'a', cont)[0].href;
}
