this.pngfix = function() {
	var ie55 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 5.5") != -1);
	var ie6 = (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) == 4 && navigator.appVersion.indexOf("MSIE 6.0") != -1);
	if (jQuery.browser.msie && (ie55 || ie6)) {		
		$("*").each(function(){
			var bgIMG = $(this).css('background-image');
			if(bgIMG.indexOf(".png")!=-1){
				var iebg = bgIMG.split('url("')[1].split('")')[0];
				$(this).css('background-image', 'none');
				$(this).get(0).runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + iebg + "',sizingMethod='crop')";
			};
		});
	};		
};

this.video = function(){
	this.showMovie = function(bitrate){
		$("body").append('<div id="videobg"></div>');
		html = '<object width="398" height="270">'
		html += ' <param name="movie" value="swf/eyeq' + bitrate + '.swf" />'
		html += ' <param name="allowFullScreen" value="true" />'
		html += ' <param name="allowscriptaccess" value="always" />'
		html += ' <embed src="swf/eyeq' + bitrate + '.swf"'
		html += ' type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="398" height="270">'
		html += ' </embed></object>';		
		$("body").append('<div id="videomov">'+ html +'</div>');
		$("#videomov").css("left",$("#video").offset().left).css("top",$("#video").offset().top);
		$("#videobg").css("height", $(document).height()).click(function(){
				$(this).remove();
				$("#videomov").remove();
			});
		};

	$("#video a").click(
		function(){
			$(this).attr("href","javascript:void(0)");
			showMovie($(this).attr("rel"));
		});		
	}

$(document).ready(function(){	
	video();				   
	pngfix();
});