<!--

if (!window.opera) {
	try {
	  document.execCommand("BackgroundImageCache", false, true);
	} catch(err) {}
}

$(function() {

		$('input.form_input').add('textarea.form_input').focus(function(){
			$(this).css({'border-color':'#7e92a1'});
		});

		$('input.form_input').add('textarea.form_input').blur(function(){
			$(this).css({'border-color':'#505968'});
		});

  $(".lightbox").fancybox({'imageScale': true, 'overlayOpacity' : 0.7});

  $(".lightbox2").fancybox({
  	'imageScale': true,
  	'hideOnContentClick': false,
  	'callbackOnShow': showplaya

  	});
});

function showplaya() {
  $("#song").flash({
  	swf:"/js/player.swf",
  	height:20,
  	width:255,
  	flashvars:'file=/userfiles/music/'+$("#song").attr('rel')+'&backcolor=#1e2534&frontcolor=#c4cadd',
  	bufferlength:30
  	});
}

function showplaya2() {
  $("#song").flash({
  	swf:"/js/player.swf",
  	height:20,
  	width:255,
  	flashvars:'file=/userfiles/audiovideo/'+$("#song").attr('rel')+'&backcolor=#1e2534&frontcolor=#c4cadd',
  	bufferlength:30
  	});
}

$(document).ready(
	function() {
		$("#logo").flash({
		 	swf:"/flash/logo.swf",
		 	params:{
				wmode: 'transparent',
				menu: 'false'
			},
			height:192,
		 	width:178
	 	});
		$('#media li').each(function(){
			$(this).find('a:first').click(function(){
				$(this).toggleClass('cur');
				$(this).next().toggleClass('open');
				return false;
			});
		});
	}
);

// -->
