target_y1 = 20;
if(screen.availWidth==1280){
		var target_x1 = 1005;		
} else if(screen.availWidth==1024) {
	var target_x1 = 885;
} else if(screen.availWidth==1152) {
	var target_x1 = 1012;
}
else if(screen.availWidth==800) {document.getElementById('floatdiv1').style.visibility='hidden';}
else {var target_x = 0;}

var has_inner1 = typeof(window.innerWidth) == 'number';
var has_element1 = document.documentElement && document.documentElement.clientWidth;

var fm_id1='floatdiv1';
var floating_menu1 =
    document.getElementById
    ? document.getElementById(fm_id1)
    : document.all
      ? document.all[fm_id1]
      : document.layers[fm_id1];

var fm_shift_x1, fm_shift_y1, fm_next_x1, fm_next_y1;

function move_menu1()
{
    if (document.layers)
    {
        floating_menu1.left = fm_next_x1+15;
        floating_menu1.top = fm_next_y1;
    }
    else
    {
        floating_menu1.style.left = fm_next_x1+15 + 'px';
        floating_menu1.style.top = fm_next_y1 + 'px';
    }
}

function compute_shifts1()
{
    fm_shift_x1 = has_inner1
        ? pageXOffset
        : has_element1
          ? document.documentElement.scrollLeft
          : document.body.scrollLeft;
    if (target_x1 < 0)
        fm_shift_x += has_inner1
            ? window.innerWidth
            : has_element1
              ? document.documentElement.clientWidth
              : document.body.clientWidth;

    fm_shift_y1 = has_inner1
        ? pageYOffset
        : has_element1
          ? document.documentElement.scrollTop
          : document.body.scrollTop;
    if (target_y1 < 0)
        fm_shift_y1 += has_inner1
            ? window.innerHeight
            : has_element1
              ? document.documentElement.clientHeight
              : document.body.clientHeight;
}

function float_menu1()
{
    var step_x1, step_y1;

    compute_shifts1();

    step_x1 = (fm_shift_x1 + target_x1 - fm_next_x1) * .1;
    if (Math.abs(step_x1) < .5)
        step_x1 = fm_shift_x1 + target_x1 - fm_next_x1;

    step_y1 = (fm_shift_y1 + target_y1 - fm_next_y1) * .1;
    if (Math.abs(step_y1) < .5)
        step_y1 = fm_shift_y1 + target_y1 - fm_next_y1;

    if (Math.abs(step_x1) > 0 ||
        Math.abs(step_y1) > 0)
    {
        fm_next_x1 += step_x1;
        fm_next_y1 += step_y1;
        move_menu1();
    }

    setTimeout('float_menu1()', 20);
};

compute_shifts1();
if (document.layers)
{
    fm_next_x1 = 0;
    fm_next_y1 = 0;
}
else
{
    fm_next_x1 = fm_shift_x1 + target_x1;
    fm_next_y1 = fm_shift_y1 + target_y1;
    move_menu1();
}
float_menu1();
