

pic1= new Image(100,25); 
pic1.src="css/images/bubble.png";
pic2= new Image(100,25); 
pic2.src="css/images/bubble2.png"; 

function getBandwidth(bw) {
if (bw<800){
$('rbw').setHTML("Langsame Internetverbindung erkannt - Video auf geringere Qualit&auml;t geschalten"+" ("+bw+" kbit/s)");
}
else{
$('rbw').setHTML("Schnelle Internetverbindung erkannt - Video wird in h&ouml;chster Qualit&auml;t gezeigt"+" ("+bw+" kbit/s)");
}	
	};
	
	
Fx.Style.implement({
    toggle: function(min,max){
        return this.start((this.element.getStyle(this.property).toInt() == min) ? max : min);
    }						 
});		

Element.extend({
 
	/*
		Property: injectHTML
			injects the passed content either before or after this element
 
		Arguments:
			content - (string) a well formed html string (plain text will not work with this technique)
			where - (string) 'before' or 'after'
	*/
 
	injectHTML: function(content, where){
		new Element('div').setHTML(content).getChildren().inject(this, where);
		return this;
	}
 
});
	

window.addEvent('domready', function(){



$('playeroverlay_bgnd').setStyle('opacity', 0.6);
$$('#playeroverlay p').setStyle('opacity', 1);



//Slider	

$('arrow_left').addEvent('click', function(){


new SimpleSlide("videolinks",{type: "scroll", direction: "back", duration: 500});
		$$('.tool-tip').setStyle('margin-left', $E('.tool-tip').getStyle('margin-left').toInt()+799);
	});				
				
$('arrow_right').addEvent('click', function(){
new SimpleSlide("videolinks",{type: "scroll", direction: "forward", duration: 500});


		$$('.tool-tip').setStyle('margin-left', $E('.tool-tip').getStyle('margin-left').toInt()-799);
	});	
	





});



