<!--

function popupGal(wd, ht, id) {
	wd = Number(wd) + 30;
	ht = Number(ht) + 30;
	thePopQLD = window.open('popup_g.php?gid='+id, '', 'resizable=0,width='+wd+',height='+ht+',scrollbars=0');
}

function popupRec(wd, ht, id, scrll) {
	wd = Number(wd) + 30;
	ht = Number(ht) + 30;
	thePopQLD = window.open('popup_r.php?rid='+id+'&cont='+scrll, '', 'resizable='+scrll+',width='+wd+',height='+ht+',scrollbars='+scrll+'');
}

function popupQt(id) {
	thePopQLD = window.open('popup_q.php?rid='+id, '', 'resizable=0,width=350,height=286,scrollbars=0');
}

function popupPriv() {
	thePopQLD = window.open('popup_privacy.php', 'privacy', 'resizable=0,width=450,height=400,scrollbars=1');
}





function showGall() {
	changeObjectVisibility('gallMenu', 'visible');
	changeObjectVisibility('mainMenu', 'hidden');
}

function hideGall() {
	changeObjectVisibility('gallMenu', 'hidden');
	changeObjectVisibility('mainMenu', 'visible');
}

function getObj(objectId)
{
// cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	this.obj = document.getElementById(objectId);
	this.style = document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	this.obj = document.all(objectId);
	this.style = document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	this.obj = document.layers[objectId];
	this.style = document.layers[objectId];
    } else {
	return false;
    }
}

//------------End Floating Objects---------------

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its id
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

function changeObjectVisibility(objectId, newVisibility) {
    // get a reference to the cross-browser style object and make sure the object exists
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else {
	// we couldn't find the object, so we can't change its visibility
	return false;
    }
} // changeObjectVisibility

//-->