//*************************************************************************************
var the_timeout;
function moveClickDvL(cnt)
{
	//alert(cnt);
	cnt = parseInt(cnt);
	if(cnt > 2)
	{
		var the_style = getStyleObjectClick("content1");
		if (the_style) {
		
			var start = parseInt(the_style.left);
			
			var end = start - 124;
			//alert(end);
			if((end==-124) || (end > (-124*cnt)+1))
			{
				moveClickDivL(end, -124);
			}
			//moveClickDivL(end, -124);
		}
	}

}
function moveClickDvLService()
{
	var the_style = getStyleObjectClick("content1");
	if (the_style) {
	
		var start = parseInt(the_style.left);
		
		var end = start - 124;
		//alert(end);
		if((end==-124) || (end > (-124*1)+1))
		{
			moveClickDivL(end, -124);
		}
		//moveClickDivL(end, -124);
	}

}
function moveClickDivL(end, x)
{
  var the_style = getStyleObjectClick("content1");
  if (the_style)
  {
    var current_left = parseInt(the_style.left);
	//alert(current_left);
    var new_left = current_left - 10;
    // set the left property of the DIV, add px at the
    // end unless this is NN4
    //
    if (document.layers) 
    {
      the_style.left = new_left;
    }
    else 
    {  
      the_style.left = new_left + "px";
    }
    
    // if we haven't gone to far, call moveClickDiv() again in a bit
    if (new_left > end)
    {
	  the_timeout = setTimeout('moveClickDivL(' + end + ',' + x + ');',10);
    }
  }
}

function moveClickDvR()
{
	
	var the_style = getStyleObjectClick("content1");
	if (the_style) {
	
		var start = parseInt(the_style.left);
		//alert(start);
		var end = start + 124;
		//alert(start);
		if((start==0) || (start > 0))
		{
		}
		else
		{
			moveClickDivR(end, 124);
		}
	}

}

function moveClickDivR(end, x)
{
  var the_style = getStyleObjectClick("content1");
  if (the_style)
  {
    var current_left = parseInt(the_style.left);
	//alert(current_left);
    var new_left = current_left + 10;
    // set the left property of the DIV, add px at the
    // end unless this is NN4
    //
    if (document.layers) 
    {
      the_style.left = new_left;
    }
    else 
    {  
      the_style.left = new_left + "px";
    }
    
    // if we haven't gone to far, call moveClickDiv() again in a bit
    // 
	//alert(end);
    if (new_left < end)
    {
      //alert (the_style.left + "sd" + new_left);
	  the_timeout = setTimeout('moveClickDivR(' + end + ',' + x + ');',10);
    }
  }
}

function getStyleObjectClick(objectId) {
    // cross-browser function to get an object's style object given its
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObjectClick

//*************************************************************************************