

var links = { news: "", about: "about", disco: "disco", contact: "contact", concerts: "concerts" };
var discs = { hp01: "hp1", hp02: "hp2", hp03: "hp3", hp04: "hp4" };
/*
jQuery(document).ready(function($) {
	
	// remove JS is needed
	$('#js_error').css('display', 'none');

	// underline current menu
	var url, chosen, result;
	url = location.href;
	chosen = new Array();
	chosen = url.split('wordpress/');
	result = chosen[1].substring(0, chosen[1].length - 1);
	result = (result == '') ? 'news' : result;

	// header links click + underline
	$.each(links, function(id, key){
		if (id == result) $('#'+id).css('text-decoration', 'underline').css('font-weight', 'bold');
		$("#"+id).click(function(){ 
							//goto(key);
						})
	})

	// tracks view
	$.each(discs, function(item, id){
		$('#'+item).click(function(){
							hideAllTracks(item);
							$('.'+id).css('display', 'block'); 
						})
	})

});
*/



function goto(url) {
	window.location = "http://www.yvanvolochine.com/wordpress/" + url;
}

function hideAllTracks(clicked) {
	jQuery.each(discs, function(item, id){
/*		jQuery('#'+item).css('border-color', '#000');
		if (item == clicked) jQuery('#'+item).css('border-color', '#111');
*/		jQuery('.'+id).css('display', 'none');
	})
}
