// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
load_image = function(){
	new Effect.Appear('mainimage');				 
};
/*
load_menu = function(){
	slide_menu('menu');
	new Effect.Appear('main_image');				 
};
destroy_menu = function(element){
	new Effect.DropOut(element);
};

slide_menu = function(element){
	startList();
	$(element).style.left = "1100px";
    $(element).style.top = "0px";
    $(element).style.display = "block";
	setTimeout("move_menu('menu')", 100);
};

move_menu = function(element){
	new Effect.Parallel(
    	[ new Effect.MoveBy(element, 0, -850, { sync: true }), 
      	  new Effect.Opacity(element, { sync: true, to: 1.0, from: 0.0 } ) 
      	],
    	{ duration: 2.0 }
  	);
};
*/

slide_banner = function(){
	new Effect.toggle('imagearea','blind');
	new Effect.toggle('uparrow','appear');
    new Effect.toggle('downarrow','appear');
};
/*
change_section = function(){
	new Effect.DropOut('menu');
	setTimeout('submit_form()', 1000);
};

submit_form = function(){
	$('section_form').submit();
};
*/
appear_banner = function(){
	new Effect.Appear('mainimage')
};
/*
startList = function() {
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
			
			if (document.all && document.getElementById) {
				node.onmouseover=function() {
					this.className+=" over";
	  			};
	  			node.onmouseout=function() {
	  				this.className=this.className.replace(" over", "");
	   			};
	   		}	
			
			for (n=0; n<node.childNodes.length; n++) {
				if (node.childNodes[n].nodeName=="UL") {
					textLen = node.firstChild.nodeValue.length;
					marg = (100/textLen)*4.1;
					if (marg < 25){
						marg = marg - 9;
					}	
					marg = Math.round(marg) + "px";
					node.childNodes[n].style.left = marg;
				}
			}	
   		}
  	}
};
*/
//window.onload=load_menu;
window.onload=load_image;