<!--

function artworkPop(artworkId, showPrice) {
	if (showPrice == 1) {
		window.open('artwork_popup.php?wid='+artworkId+'&pre=1', '', 'resizable=0,width=400,height=530,scrollbars=0');
	} else {
		window.open('artwork_popup.php?wid='+artworkId, '', 'resizable=0,width=400,height=530,scrollbars=0');
	}
}

function pdf(pdffile, title) {
	msg=window.open("","janmurphygallery",",width=670,height=550,left=20,top=20,resizable=yes,menubar=no,location=no,directories=no,status=yes");
	msg.document.write("<html><title>" + title + "</title>");
	msg.document.write("<frameset border=0 rows='100%,*' frameborder='no' marginleft='0' margintop='0' marginright='0' marginbottom='0'>");
	msg.document.write("<frame src='" + pdffile + "' scrolling='auto' frameborder='no' border='0' noresize>");
	msg.document.write("<frame  topmargin='0' marginwidth='0' scrolling='no' marginheight='0' frameborder='no' border='0' noresize>");
	msg.document.write("</frameset><noframes><a href='" + pdffile + "'>Pdf File</noframes></html>");
}

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

//-->
