$(document).ready(function() {
	$('.playbutton').stop().show("fast");
});

$(function() {
	
	$('.video_gall_block a img').mouseover(function() {
		var obj = $(this).parents('.video_gall_block').children('.playbutton').children('a').children('img').attr('src', '/wp-content/themes/helistream/images/playbutton-o.png');
	});
	$('.video_gall_block a img').mouseout(function() {
		var obj = $(this).parents('.video_gall_block').children('.playbutton').children('a').children('img').attr('src', '/wp-content/themes/helistream/images/playbutton.png');
	});
	
	$('a.iframe').each(
		function (i) {
			$(this).replaceWith('<a href="#"><iframe src="' + this.getAttribute("href") + '"  scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:420px; height:50px;" allowTransparency="true"></iframe></a>');
		}
	);
	
});
