var flashClicked=false;
var ypos=0;
function swapClick() {
	if (!flashClicked) { flashClicked=true; }
	flashIn
}
function flashOut() {$("flashcontent").style.height = '65px'; }
function flashIn() { $("flashcontent").style.height = '175px'; }
function flashMove(event) {
	if (!document.all) {
		ypos = event.clientY ;
		if (ypos>206 && !flashClicked) { flashOut() }
	}
}
   function overflowOn() {
	$("flashcontent").style.overflow = 'visible';
}
   function overflowOff() {
	$("flashcontent").style.overflow = 'hidden';
}
function flashMenu() {
	try {
		if (!document.all) {

			$("flashcontent").onclick = swapClick
			$("flashcontent").onblur = flashOut
			$("flashcontent").onmouseout = flashOut
			$("flashcontent").onmouseover = flashIn

		}

		else {
        	$("flashcontent").onmouseover = overflowOn
			$("flashcontent").onmouseout = overflowOff
		}

		if (document.getElementsByClassName) {
			var buttons = document.getElementsByClassName("faux_btn");
			/*			for (i=0; i < buttons.length; i++) {
				var div = document.createElement("span");
				div.className = "faux_btn_r";
				buttons[i].appendChild(div);
			}*/

            for (i=0; i < buttons.length; i++) {
				buttons[i].innerHTML = '<span class="faux_btn_l"></span><span class="faux_btn_i">' + buttons[i].innerHTML + '</span><span class="faux_btn_r"></span>';
			}
		}
	}

	catch(e) {}
}

function report(type, id, user_id) {
	var really = confirm("Report this as offensive content to STA Travel Blog staff?");

	if (really) {
		params = 'user_id=' + user_id + '&type=' + type + '&id=' + id;
		new Ajax.Updater('report_'+id, '/journal/includes/report.php', {postBody:params});
	}
}

function switchSite(elem) {
	window.location = $(elem).value;
	return false;
}