var slide = $.Class.create({

	node: null,
	ads: null,

	initialize: function( node, ads ) {

		this.node = node;
		this.ads = ads;

	},

	start: function () {

		var index = Math.floor(Math.random()*this.ads.length);

		this.load(index);

	},

	load: function ( index ) {

		var mthis = this;

		$(window).load(function () {

			setTimeout(function(){

				mthis.node.css('background-image','none');
				mthis.node.children('.loading').hide();
				mthis.ads[index].start(mthis.ads,index);

			},2000);

		});

	}

});
