
var d = document;
var art_active = false;
var art_click = false;
var foto_active = false;
var foto_click = false;
var e = '';

function showSection( flag, section ) {
	var sec_on = section + "_show";
	var sec_off = section + "_hide";
	var sec_id = section + "_id";

	if ( flag == 1 ) {
		d.getElementById( sec_on ).style.display = "none";
		d.getElementById( sec_off ).style.display = "";
		d.getElementById( sec_id ).style.display = "";
	} else if ( flag == 0 ) {
		d.getElementById( sec_on ).style.display = "";
		d.getElementById( sec_off ).style.display = "none";
		d.getElementById( sec_id ).style.display = "none";
	}
}

function SwapElement( element, action ) {
	if ( action == 'on' ) {
		d.getElementById( element + '_off' ).style.display = "none";
		d.getElementById( element + '_click' ).style.display = "none";
		d.getElementById( element + '_' + action ).style.display = "";
	} else if ( action == 'off' ) {
		d.getElementById( element + '_on' ).style.display = "none";
		d.getElementById( element + '_click' ).style.display = "none";
		d.getElementById( element + '_' + action ).style.display = "";
	} else if ( action == 'click' ) {
		d.getElementById( element + '_on' ).style.display = "none";
		d.getElementById( element + '_off' ).style.display = "none";
		d.getElementById( element + '_' + action ).style.display = "";
	}
}

function CommentRoutines( frm, pic_id ) {
	nd();
	xajax_GetCaptcha();
	Toggle(frm);

	d.fcomment.picture_id.value = pic_id;
	d.fcomment.visitor_name.focus();
}

function CreatePlayer( song, author, title ) {
	//alert(song);
	if ( song != '' ) {
		swfobject.embedSWF("/libs/mp3player/xspf_player_slim.swf?&song_url="+ song +"&song_title=" + author + " - " + title + "&player_title=MP3 player&autoplay=true&repeat_playlist=true&", "player", "230", "15", "7.0.0");
		//d.getElementById( 'music_info' ).innerHTML = author + ' - ' + title;
	}
}
