// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}
function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

function openwindow(file) {
    window.open("video.html?videoFile=" + file, "mywindow", "menubar=1, resizable=0, scrollbars=no, width=520, height=440");
}

// Effect.ScrollAndPulse = function(id_of_element) {
//   // alert(id_of_element);
//   Element.scrollTo(id_of_element);
//   new Effect.Pulsate(id_of_element,{from:0.7, pulses:3}) ;
// }