function goToURL(url) {
	window.location = url;
}

function decision(message, url){
	if(confirm(message)) location.href = url;
}

/*****************************************************/

/* infoBar 1.0
   By: Alex Barberis
   Created on 3.11.2009 */

function showInfoBar(caption){
	$("#infoContent").html(caption);
    $(window).resize(info_position);
    $(window).scroll(info_position);
	info_position();
	$("#infoBar").slideDown(750); //i like sliding in more than fade in this case. i think it catches the users attention more effectively
	//$("#infoBar").fadeIn(800); //if you like this more remark the previous line

	var timeout = setTimeout(function() {
		$("#infoBar").fadeOut(750);
		//$("#infoBar").remove();
	}, 4000);

	//$("#infoBar").pause(2000)

}

function info_position() {
	var scrollPosition = $(window).scrollTop();
	$("#infoBar").css("top",scrollPosition +"px");
	$("#infoBar").css("left","0px");
	$("#infoBar").css("width",$(window).width());
}

/*****************************************************/
