// ------------------------------------------------------------------------------------------------
// Global variables
// ------------------------------------------------------------------------------------------------
var oLView;
var oAView;


// ------------------------------------------------------------------------------------------------
// Image rollover effect
// ------------------------------------------------------------------------------------------------
function rollover(name,over)
{
    if (window.document.images) {
	
	if (over) {
	    window.document.images[name].src = "_img/" + name + "O.jpg";
	}
	else {
	    window.document.images[name].src = "_img/" + name + ".jpg";
	}
    }
}


// ------------------------------------------------------------------------------------------------
// Open a new popup window
// ------------------------------------------------------------------------------------------------
function LView(sURL, sName, iWidth, iHeight) {

    var sParam = "width=" + iWidth + "," + "height=" + iHeight + ",toolbar=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=yes";

    if (oLView) {
	oLView.close();
    }

    oLView = window.open(sURL,sName,sParam);
}


// ------------------------------------------------------------------------------------------------
// Open a new popup window
// ------------------------------------------------------------------------------------------------
function AView(sURL, sName, iWidth, iHeight) {

    var sParam = "width=" + iWidth + "," + "height=" + iHeight + ",toolbar=no,directories=no,status=no,scrollbars=no,resizable=yes,menubar=yes";

    if (oAView) {
	oAView.close();
    }

    oAView = window.open(sURL,sName,sParam);
}


// ------------------------------------------------------------------------------------------------
// Open a new popup window
// ------------------------------------------------------------------------------------------------
function PopUp(sURL, sName, iWidth, iHeight, sStatus, sToolbar, sMenubar, sScroll) {

    var sNme	= 'PopUp';
    var iWdth	= 400;
    var iHght	= 380;
    var sStat	= 'no';
    var sTbar	= 'no';
    var sMbar	= 'yes';
    var sScrl	= 'no';
    
    if (iWidth)   {iWdth = iWidth;}
    if (iHeight)  {iHght = iHeight;}
    if (sName)    {sNme  = sName;}
    if (sStatus)  {sStat = sStatus;}
    if (sToolbar) {sTbar = sToolbar;}
    if (sMenubar) {sMbar = sMenubar;}
    if (sScroll)  {sScrl = sScroll;}
    
    parameters = "width=" + iWdth + "," + "height=" + iHght + ",toolbar=" + sTbar + ",directories=no,status=" + sStat + ",scrollbars=" + sScrl + ",resizable=yes,menubar=" + sMbar;

    parent.window.open(sURL,sNme,parameters);
}
