//-----------------------------------------------------------------------
//- Created by the Agama Web Menus - generator  ver 2.15
//- Copyright MP Software (c)2008
//- Can I use this script? See http://www.agama-menu.com
//-----------------------------------------------------------------------

cyclan03_mg_ID1.Visibility='visible';
document.write('<div style="position:absolute; z-index:1000;" align="left">');
document.write(cyclan03_mg_ID1.ToStr()); //Print the menu to the document
document.write('</div>');

function cyclan03_mg_ID1GetClientAreaWidth() {
   if(typeof(window.innerWidth ) == 'number') {
    //Non-IE
    return(window.innerWidth) 
   } else if( document.body && (document.body.clientWidth)) {

		if(document.compatMode && document.compatMode != "BackCompat")
		{
			return(document.documentElement.clientWidth);
		}
			else
		{
			return(document.body.clientWidth);
		}
  }
  return(0);
}

function cyclan03_mg_ID1ScrollTop()
{
  var iebody=(document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body;
  return(document.all? iebody.scrollTop : pageYOffset);
}


function cyclan03_mg_ID1MoveTopEdge(y){
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
	if (cyclan03_mg_ID1.style.top){ 
		yMenuFrom=parseInt (cyclan03_mg_ID1.style.top, 10);
		yMenuTo=cyclan03_mg_ID1ScrollTop()+ y;
		timeoutNextCheck = 50;
		if (yMenuFrom != yMenuTo){
			yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);//Specify the floating Speed high=0,slow=500. etc
			if (yMenuTo < yMenuFrom){
				yOffset = -yOffset;
			}
			cyclan03_mg_ID1.style.top = parseInt (cyclan03_mg_ID1.style.top, 10) + yOffset+ 'px';
			timeoutNextCheck = 0; //Specifies the speed of reaction .
			cyclan03_mg_ID1.style.display='none';
			cyclan03_mg_ID1.style.display='block';
	  }
  	setTimeout ("cyclan03_mg_ID1MoveTopEdge("+y+")", timeoutNextCheck);
	}
}
 
function cyclan03_mg_ID1MoveLeftEdge(x, Align){
	var xMenuFrom, xMenuTo, xOffset, timeoutNextCheck ;
	if (cyclan03_mg_ID1.style.left) {
		if ((Align==2)&&(cyclan03_mg_ID1.style.position=='absolute'))
		{
			xMenuFrom=parseInt (cyclan03_mg_ID1.style.left, 10);
			xMenuTo=((navigator.appName == "Netscape") ? window.pageXOffset : document.body.scrollLeft) + x +
			  cyclan03_mg_ID1GetClientAreaWidth() - parseInt(cyclan03_mg_ID1.style.width,10) ;   //Specify the distance of the  Floating Object from top - align right.
		}
			else
		{
			xMenuFrom=parseInt (cyclan03_mg_ID1.style.left, 10);
			xMenuTo=((navigator.appName == "Netscape") ? window.pageXOffset : document.body.scrollLeft) + x;  //Specify the distance of the  Floating Object from top - align left.
		}

		timeoutNextCheck = 50; 
		if (xMenuFrom != xMenuTo){
			xOffset = Math.ceil(Math.abs(xMenuTo - xMenuFrom) / 20);//Specify the floating Speed high=0,slow=500. etc
			if (xMenuTo < xMenuFrom){
				xOffset = -xOffset;
			}
			cyclan03_mg_ID1.style.left = parseInt (cyclan03_mg_ID1.style.left, 10) + xOffset +'px';
			timeoutNextCheck = 0; //Specifies the speed of reaction .
			cyclan03_mg_ID1.style.display='none';
			cyclan03_mg_ID1.style.display='block';
		}
		setTimeout ("cyclan03_mg_ID1MoveLeftEdge("+x+", "+Align+")", timeoutNextCheck);
	}
}

 
var cyclan03_mg_ID1 = document.getElementById('cyclan03_mg_ID1');
if (cyclan03_mg_ID1){			
	if ( ('left'=='right') && (cyclan03_mg_ID1.style.position=='absolute')){
		cyclan03_mg_ID1Align=2;
		cyclan03_mg_ID1.style.left= parseInt(cyclan03_mg_ID1GetClientAreaWidth()) + parseInt(0) - parseInt(cyclan03_mg_ID1.offsetWidth) +'px';
	}	
		else
	{					
		cyclan03_mg_ID1Align=0;
	}

/*DRIFTVERTICAL*/  cyclan03_mg_ID1MoveTopEdge(10);
/*DRIFTHORIZONTAL*/  cyclan03_mg_ID1MoveLeftEdge(0 , cyclan03_mg_ID1Align);
}


