function show_div(id)
{
	var div;
	div = document.getElementById(id);
	if ( div.style.display == "none" ) div.style.display = "block";
		else div.style.display = "none";
}


function IEPngFix(pngimg, gifimg, width, height, repeat, scale)
{
	var code = '<img src="'+ gifimg +'" width="' + width + '" height="' + height + '" border="0" style="background:url('+pngimg+') '+repeat+' 0px 0px;"/>';
	if( navigator.userAgent.indexOf("Opera") > 1 ) document.write(code);
	else
		if( navigator.userAgent.indexOf("MSIE 6") > 1 ) document.write('<img src="'+gifimg+'" width="' + width + '" height="' + height + '" border="0" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=' + pngimg + ' , sizingMethod='+scale+' );"/>');
		else
			if(navigator.userAgent.indexOf("MSIE 5") != -1) document.write(code);
			else document.write(code);
}





$(document).ready(function(){
	$('body').pngFix( );

/*	$('.ccol a').each(function(){
		if($(this).attr("target")) $(this).fancybox();
	});*/

	$('.inner a').each(function(){
		if($(this).attr("target")) $(this).lightbox();
	});


	$(".mt .item").hover(
		function(){
			num = $(this).attr("num");
			if(num)
			{
				$("#mil_"+num).attr("src", "/i/mi_l.gif");
				$("#mir_"+num).attr("src", "/i/mi_r.gif");
				$(this).css({"background-color":"#ffffff"});
				$("a", this).css({"color":"#000000"});
			}
		},
		function(){
			num = $(this).attr("num");
			color = $("#style_color").attr("color");

			if(num)
			{
				$("#mil_"+num).attr("src", "/i/emp.gif");
				$("#mir_"+num).attr("src", "/i/emp.gif");
				$(this).css({"background-color":color});
				$("a", this).css({"color":"#ffffff"});
			}
		}
	);



	$('.link_words').each(function(){
		$(this).parent().hover(function(){
			$('#popup_container').css({'display' : 'none'})
			$(this).append($('#popup_container'));
			var text = $(this).find('.popup_info').html();
			$('#popup_container').empty(); 
			$('#popup_container').append(text);
			$('#popup_container').css({'display' : 'block'})
		}, function(){
			$('#popup_container').css({'display' : 'none'})
		})
	})


	$('.link_artists').each(function(){
		$(this).parent().hover(function(){
			$('#popup_container2').css({'display' : 'none'})
			$(this).append($('#popup_container2'));
			var text = $(this).find('.popup_info2').html();
			$('#popup_container2').empty(); 
			$('#popup_container2').append(text);
			$('#popup_container2').css({'display' : 'block'})
		}, function(){
			$('#popup_container2').css({'display' : 'none'})
		})
	})

});

