// Overlay between general.js version 1.4+ and general.js v2.0+

function CloseCurrentWindow() {MOCloseWindow();}
function ConvertToCurrency(somevalue) {formatnumber(somevalue, 2);}
function DisplayMiniWindow(windowpage, popupwidth, popupheight) {MOPopup(windowpage, popupwidth, popupheight);}
function DisplayMiniWindow2(windowpage, popupwidth, popupheight) {MOPopupEx(windowpage, '', popupwidth, popupheight, 0);}
function DisplayMiniWindow3(windowpage, targetwindow, popupwidth, popupheight) {
	MOPopupEx(windowpage, targetwindow, popupwidth, popupheight, 0x08 | 0x10);
}
function DisplayMiniWindow4(windowpage, targetwindow, popupwidth, popupheight) {
	MOPopupEx(windowpage, targetwindow, popupwidth, popupheight, 0);
}
function DisplayMiniWindowX(windowpage, targetwindow, popupwidth, popupheight, options) {
	MOPopupEx(windowpage, targetwindow, popupwidth, popupheight, options);
}
function DisplayMessageAndGo(displaymessage, newlocation) {
	MOPopupEx('/popup-message.asp?message=' + escape(displaymessage), '', 400, 250, 0);
	window.location = newlocation;
}
function GeneratePNGHTML(imageurl, imagewid, imagehei) {MOGetPNGHTML(imageurl, imagewid, imagehei);}
function GetFlashHTML(flashfile, flashwidth, flashheight, flashbgcolor) {
	return HTML_GetFlashHTML(flashfile, flashwidth, flashheight, flashbgcolor, '', 0, 1, 6);
}
function GetFlashHTMLAdvanced(flashfile, flashwidth, flashheight, flashbgcolor, moviename, looping, displaytype, version) {
	return HTML_GetFlashHTML(flashfile, flashwidth, flashheight, flashbgcolor, moviename, looping, displaytype, version);
}
function MeMSOAddEvent(eventname, eventfunction) {MOAddEvent(eventname, eventfunction); return true;}
function MeMSOObjectCreate(objectname) {MOCreate(objectname);}
function MeMSOObjectGetClass(objectname) {
	if (!DOMCompatible) return '';
	var ourpointer = usedirectpnt ? objectname : MeMSOObjectGetPointerAndTest(objectname);
	if (!ourpointer) return '';
	return ourpointer.className;
}
function MeMSOObjectGetContent(objectname) {return MOGetContent(objectname);}
function MeMSOObjectGetPosition(objectname) {
	var coords = new Object();coords.x = MOGetLeft(objectname, 2);coords.y = MOGetTop(objectname, 2);return coords;
}
function MeMSOObjectGetLeft(objectname) {return MOGetLeft(objectname, 2);}
function MeMSOObjectGetRight(objectname) {return MOGetLeft(objectname, 2) + MOGetWid(objectname, 2) - 1;}
function MeMSOObjectGetTop(objectname) {return MOGetTop(objectname, 2);}
function MeMSOObjectGetBottom(objectname) {return MOGetTop(objectname, 2) + MOGetHei(objectname, 2) - 1;}
function MeMSOObjectGetClipping(objectname) {return MOGetClip(objectname);}
function MeMSOObjectGetPointer(objectname) {return MOGetPointer(objectname);}
function MeMSOObjectGetPointerAndTest(objectname) {return MOGPT(objectname);}
function MeMSOObjectGetScreenPosition(objectname) {return MOGetScreenPos(objectname);}
function MeMSOObjectGetSize(objectname) {
	var coords = new Object();coords.width = MOGetWid(objectname, 2);coords.height = MOGetHei(objectname, 2);return coords;
}
function MeMSOObjectGetStyle(objectname, styletoget) {return MOGetStyle(objectname, styletoget);}
function MeMSOObjectGetStyleName(styletochange) {return camelize(styletochange);}
function MeMSOObjectGetVisible(objectname) {return MOGetVisible(objectname);}
function MeMSOObjectGetWidth(objectname) {return MOGetWid(objectname, 2);}
function MeMSOObjectGetHeight(objectname) {return MOGetHei(objectname, 2);}
function MeMSOObjectGetZIndex(objectname) {return MOGetStyle(objectname, 'z-index');}
function MeMSOGetScrollPosition() {var coords = new Object();coords.x = MOGetScrollX();coords.y = MOGetScrollY();return coords;}
function MeMSOGetScrollX() {return MOGetScrollX();}
function MeMSOGetScrollY() {return MOGetScrollY();}
function MeMSOGetWindowSize() {var coords = new Object();coords.width = MOGetWinWid();coords.height = MOGetWinHei();return coords;}
function MeMSOGetWindowWidth() {return MOGetWinWid();}
function MeMSOGetWindowHeight() {return MOGetWinHei();}
function MeMSOObjectMove(objectname, newx, newy) {MOMove(objectname, newx, newy);}
function MeMSOObjectSetClass(objectname, newclass) {
	if (!DOMCompatible) return;
	var ourpointer = usedirectpnt ? objectname : MeMSOObjectGetPointerAndTest(objectname);
	if (!ourpointer) return;
	ourpointer.className = newclass;
}
function MeMSOObjectSetClipping(objectname, newleft, newtop, newright, newbottom) {MOSetClip(objectname, newleft, newtop, newright, newbottom);}
function MeMSOObjectSetContent(objectname, newcontent) {MOSetContent(objectname, newcontent);}
function MeMSOObjectSetPosition(objectname, newx, newy) {MOMove(objectname, newx, newy);}
function MeMSOObjectSetLeft(objectname, newx) {MOSetLeft(objectname, newx);}
function MeMSOObjectSetRight(objectname, newx) {MOSetRight(objectname, newx);}
function MeMSOObjectSetTop(objectname, newy) {MOSetTop(objectname, newy);}
function MeMSOObjectSetBottom(objectname, newy) {MOSetBottom(objectname, newy);}
function MeMSOObjectSetSize(objectname, newwidth, newheight) {MOSetSize(objectname, newwidth, newheight);}
function MeMSOObjectSetStyle(objectname, styletochange, newvalue) {MOSetStyle(objectname, styletochange, newvalue);}
function MeMSOObjectSetVisible(objectname, onoroff) {MOSetVisible(objectname, onoroff);}
function MeMSOObjectSetVisibleEx(objectname, onoroff, displaytype, flags) {MOSetVisibleEx(objectname, onoroff, displaytype, flags);}
function MeMSOObjectSetZIndex(objectname, newindex) {MOSetStyle(objectname, 'z-index', newindex);}
function MeMSOObjectStyleChange(objectname, styletochange, newvalue) {MOSetStyle(objectname, styletochange, newvalue);}
function MeMSOObjectUpdate(objectname, newcontent) {MOSetContent(objectname, newcontent);}
function OnLoadMainFunction() {MOOnLoad();}
function OnlyAfterLoaded(code_to_execute, returnvalue) {MOAfterLoaded(code_to_execute, returnvalue);}
function OpenNewWindow(windowpage) {MONewWindow(windowpage);}
function SmartMouseOver(e, ourobject, execcode) {SmartMouse(e, ourobject, execcode, 1);}
function SmartMouseOut(e, ourobject, execcode) {SmartMouse(e, ourobject, execcode, 0);}