<!--
var setRegionMap = function setRegionMap(s,pointer) {
if(iObj = elementExist("region_map")) {
iObj.style.cursor = (pointer===true) ? "pointer" : "arrow";
iObj.src = s;
}
}
function setBackgroundMap(s) {
if(iObj = elementExist("region_image")) {
iObj.style.backgroundImage = "url("+s+")";
}
}
function hideProcPleaseWait() {
var mObj;
var pObj;
if(mObj=elementExist("module_form_cntnr")) {
if(pObj=elementExist("proc_please_wait")) {
mObj.style.visibility = "visible";
pObj.style.display = "none";
}
}
}
function showProcPleaseWait() {
var mObj;
var pObj;
if(mObj=elementExist("module_form_cntnr")) {
if(pObj=elementExist("proc_please_wait")) {
mObj.style.visibility = "hidden";
pObj.style.display = "block";
pObj.style.position = "absolute";
var eStart = parseInt(mouseY-(getElementHeight(pObj)/2),10);
if(eStart<40) {
eStart = 40;
}
moveElementTo(pObj,getPositionX(mObj),eStart);
}
}
if(iObj = elementExist("region_image")) {
if(mObj = elementExist("region_map_cntnr")) {
moveElementTo(iObj,getPositionX(iObj),getPositionY(mObj));
}
}
}
/* Region Map Transitions */
var mapStartInterval = null;
var mapResetTimeout = null;
var mapResetInterval = null;
var move_interval = 10;
var pixel_interval = 8;
function startMapFollow() {
if(mapResetTimeout) {
clearTimeout(mapResetTimeout);
}
if(mapResetInterval) {
clearInterval(mapResetInterval);
}
if(!mapStartInterval) {
mapResetInterval = null;
if(iObj = elementExist("region_image")) {
if(mObj = elementExist("region_map_cntnr")) {
mObj.style.minHeight = (getElementHeight(iObj)+2)+"px";
iObj.style.marginTop = "0px";
moveElementTo(iObj,getPositionX(iObj),getPositionY(iObj));
iObj.style.position = "absolute";
mapStartInterval = setInterval("mapMove(mouseY)",move_interval);
}
}
}
}
function mapMove(y_pos) {
if(iObj = elementExist("region_image")) {
if(mObj = elementExist("region_map_cntnr")) {
ydif = (getPositionY(iObj)+parseInt(getElementHeight(iObj)/2,10)) - y_pos;
if(Math.abs(ydif)>0) {
y_interval = (Math.abs(ydif)<=pixel_interval) ? 1 : pixel_interval;
y_interval *= (ydif/Math.abs(ydif));
if((parseInt(getPositionY(iObj),10)-y_interval)>=getPositionY(mObj)) {
if(frmObj = elementExist("module_form_cntnr")) {
if(parseInt(getPositionY(iObj)-y_interval,10)<=(getPositionY(frmObj)+getElementHeight(frmObj)-getElementHeight(iObj))) {
moveElementTo(iObj,getPositionX(iObj),(parseInt(getPositionY(iObj),10)-y_interval));
}
}
}
}
}
}
}
function moveElementTo(eObj,x,y) {
eObj.style.left = parseInt(x,10)+"px";
eObj.style.top = parseInt(y,10)+"px";
}
function resetMapPosition() {
mapResetTimeout = setTimeout("mapReset()",100);
}
function mapReset() {
if(mapStartInterval) {
clearInterval(mapStartInterval);
mapStartInterval = null;
}
if(!mapResetInterval) {
if(iObj = elementExist("region_image")) {
if(mObj = elementExist("region_map_cntnr")) {
mapResetInterval = setInterval("mapMove("+(getPositionY(mObj)+parseInt(getElementHeight(iObj)/2,10))+")",move_interval);
}
}
}
}
function checkMapLayout() {
if(iObj = elementExist("region_image")) {
if(mObj = elementExist("module_form_cntnr")) {
if(!isMousedOver(mObj)) {
if(mapStartInterval) {
clearInterval(mapStartInterval);
mapStartInterval = null;
}
if(mapResetInterval) {
clearInterval(mapResetInterval);
mapResetInterval = null;
}
iObj.style.position = "static";
} else {
iObj.style.position = "static";
iObj.style.position = "absolute";
}
}
}
}
function resetModuleForm() {
if(formObj=elementExist("module_form")) {
formObj.reset();
}
}
window.onload = (window.onload) ? new Function(getCombinedFunctionCode(window.onload,hideProcPleaseWait)) : hideProcPleaseWait;
window.onresize = (window.onresize) ? new Function(getCombinedFunctionCode(window.onresize,checkMapLayout)) : checkMapLayout;
//-->
