﻿// JScript File

// Move an element directly on top of another element (and optionally
// make it the same size)
function Cover1(bottom, top) {
 var location = Sys.UI.DomElement.getLocation(bottom);
 top.style.position = 'absolute';
 top.style.top = location.y-200 + 'px';
 top.style.left = location.x+50 + 'px';
 }
 
function Cover2(bottom, top) {
 var location = Sys.UI.DomElement.getLocation(bottom);
 top.style.position = 'absolute';
 top.style.top = location.y-225 + 'px';
 top.style.left = location.x+200 + 'px';
}

function Cover3(bottom, top) {
    var location = Sys.UI.DomElement.getLocation(bottom);
    top.style.position = 'absolute';
    top.style.top = location.y - 250 + 'px';
    top.style.left = location.x - 0 + 'px';
}

