


		var pod = function(div)
		{

			this.inst = new YAHOO.util.Element(div);

			this.rollover = new YAHOO.util.Element(this.inst.getElementsByClassName('roll-over', 'div')[0]);
			this.link = this.inst.getElementsByTagName('a')[0];

			this.hit = new YAHOO.util.Element(this.inst.getElementsByClassName('hit', 'div')[0]);
			this.hit.parent = this;

			this.hit.on('mouseover', function(){

				this.parent.rollover.setStyle('margin-top', '0px');

			});

			this.hit.on('mouseout', function(){

				this.anim = new YAHOO.util.Anim(this.parent.rollover, {
						marginTop: {
							to: 100
						}
					}, 1, YAHOO.util.Easing.easeOut);

					this.anim.duration = 0.5;

					this.anim.animate();

			});

			var mc = this.inst;

			this.hit.on('click', function(){

				
				var a = new YAHOO.util.Element(mc.get('element').getElementsByTagName('a')[0]);
				
//				alert("!");

				window.location = a.get('href');
				
				//alert(a.get('href'));
					

			});


		}


		YAHOO.util.Event.onDOMReady(function(){

			var app =  new YAHOO.util.Element('app');
			var pods = app.getElementsByClassName('pod', 'div');

			for(var i = 0; i < pods.length; i++)
			{

				new pod(pods[i]);

			}

		});
