// JavaScript Document

function menuStatic(el) {
	var element = $(el);
 	element.style.left = "805px";
	new Effect.Opacity(element, { duration:.001, transition:Effect.Transitions.linear, from:0, to:1});
	
	
}

function  menuIn(obj) { // function initiates page specfici animation for the 2ndary menu overriding the global float function
	var el = $(obj);  // defines the div of the menu for the slide
	var element = $(el); // defines the div of the menu for the non-slide placement
		 
	if (navigator.appName == 'Microsoft Internet Explorer') {
		  {
  		  var ua = navigator.userAgent;
  		  var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
  			  if (re.exec(ua) != null)
    		  rv = parseFloat( RegExp.$1 );
			//  alert(rv);
		//	alert("v6");
		var ver = rv;
		
 	//	 alert(ver);
   		 if ( ver <= 6.0 ) {
   		 //  return false;   // disables the fade for ie 6.0 only
 		element.style.left = "805px";
	new Effect.Opacity(element, { duration:.001, transition:Effect.Transitions.linear, from:0, to:1});
	
		 } else { // let ie 7 perform the fade/slide
		
	new Effect.Parallel(
    [ new Effect.Move(el,  {sync: true, x: -40, y:0, mode: 'relative',transition:Effect.Transitions.linear }), 
     new Effect.Opacity(el, {sync: true, transition:Effect.Transitions.linear, to: 1, from: 0 } ) ],
    { duration: .35, delay:.3});

		}		
	}
	 
	 } else {	 // let all other  broswsers perform the fade/slide

	var el = $(obj);
				
	new Effect.Parallel(
    [ new Effect.Move(el,  {sync: true, x: -40, y:0, mode: 'relative',transition:Effect.Transitions.linear }), 
     new Effect.Opacity(el, {sync: true, transition:Effect.Transitions.linear, to: 1, from: 0 } ) ],
    { duration: .35, delay:.3});

}	
	
}
