/* ======================================================================

Dom Ready Function

=======================================================================*/
var slippy5
window.addEvent('domready', function(){
	if($('moreCopy5')){
		var more = buildMoreButton5().injectBefore($('moreCopy5'));
		slippy5 = new Fx.Slide('moreCopy5').hide();
	}

});

function buildMoreButton5 () {
    var ltxt = "More videos >>";
    if(location.href == "http://test.telme.com/mideast/videos.html") {
        ltxt = "More videos >>";
    }
	var mb = new Element('a', {
		'href': '#',
		'class': 'myClass',
		'html': ltxt,
		'styles': {
			'display': 'block',
			'text-align': 'left',
			'outline': 'none',
			'font-size': '11px'
		},
		'events': {
			'click': function(e){
				e.stop();
				slippy5.toggle();
				if(this.get('text')=='<< hide these videos'){	this.set('html', this.lt);	}
				else {	this.set('html', '<< hide these videos');	}
			}
		}
	});
	mb.lt = ltxt;
	return mb;
}

