/**
 * Myfab
 *
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * 
 * display or undisplay the video block
 * 
 */
function displayVideo(){ 
	 Effect.Appear('block-video', { duration:1, from:0.0, to:0.9 });
	 var video = document.getElementById("block-video");
	 video.style.visibility = 'visible';

}

function undisplayVideo(){
	Effect.Fade('block-video', { duration:0.5, from:0.9, to:0.0 });
}


function displayBlock(idName){ 
	     Effect.Appear(idName, { duration:1, from:0.0, to:0.9 });
	     var video = document.getElementById(idName);
	     video.style.visibility = 'visible';

}

function undisplayBlock(idName){
	    Effect.Fade(idName, { duration:0.5, from:0.9, to:0.0 });
}

function myfabClearInputText() {
	    document.getElementById('search-notify-email').value = '';
	    return true;
}

function myfabCheckInputValue() {
	    input_value = document.getElementById('search-notify-email').value;
	    if(!trimAll(input_value)) {
	    	document.getElementById('search-notify-email').value = "E-mail Address";
	    }
}

function trimAll(sString)
{
	  while (sString.substring(0,1) == ' ')
	  {
	  sString = sString.substring(1, sString.length);
	  }
	  while (sString.substring(sString.length-1, sString.length) == ' ')
	  {
	  sString = sString.substring(0,sString.length-1);
	  }
	  return sString;
}

function checkMyfabUkLoginKeyDown(event) {
	    if(event.value == '13') {
	    	  notifyForm.save();
	    }
}
