window.onload = function(){
	if ( document.getElementById && document.getElementsByTagName ) {
		var theLinks = document.getElementById('element_3129').getElementsByTagName('a');
		var count = 0;
		for ( var i = 0 ; i < theLinks.length ; i++ ) {
			if ( theLinks[i].className == 'youtube' ) {
				if ( count == 0 ) {
					document.getElementById('element_3139').innerHTML = '<object width="330" height="228"><param name="movie" value="http://www.youtube.com/v/'+theLinks[i].href.split('=').pop()+'&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></wmode><embed src="http://www.youtube.com/v/'+theLinks[i].href.split('=').pop()+'&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="330" height="228" wmode="transparent"></embed></object>';
				}
				theLinks[i].onclick = function(){
					document.getElementById('element_3139').innerHTML = '<object width="330" height="228"><param name="movie" value="http://www.youtube.com/v/'+this.href.split('=').pop()+'&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></wmode><embed src="http://www.youtube.com/v/'+this.href.split('=').pop()+'&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="330" height="228" wmode="transparent"></embed></object>';
					return false;
				};
				theLinks[i].onmouseover = function(){
					var theImage = this.getElementsByTagName('img');
					if ( theImage.length === 1 ) {
						theImage[0].src = theImage[0].src.replace(/.png/,'ov.png');
					}
				};
				theLinks[i].onmouseout = function(){
					var theImage = this.getElementsByTagName('img');
					if ( theImage.length === 1 ) {
						theImage[0].src = theImage[0].src.replace(/ov.png/,'.png');
					}
				};
				count++;
			}
		}
	}
};
