<!--

function detectexist(obj){
return (typeof obj !="undefined")
}


function jkpopimage(frametype, framethickness){
var popbackground="#000000"  //black background
var popwidth=imgwidth+380
var popheight=imgheight+250

function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
//leftpos=0
//toppos=0
if (window.opera){
leftpos-=screenLeft
toppos-=screenTop
}
}



getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
var framelb='http://site.artsimpression.com/frames/'+frametype+'-lb.gif'
var frameb='http://site.artsimpression.com/frames/'+frametype+'-b.gif'
var framerb='http://site.artsimpression.com/frames/'+frametype+'-rb.gif'
var framel='http://site.artsimpression.com/frames/'+frametype+'-l.gif'
var framer='http://site.artsimpression.com/frames/'+frametype+'-r.gif'
var framelo='http://site.artsimpression.com/frames/'+frametype+'-lo.gif'
var frameo='http://site.artsimpression.com/frames/'+frametype+'-o.gif'
var framero='http://site.artsimpression.com/frames/'+frametype+'-ro.gif'
var disclaimer='<font face="verdana, arial" size="1" color="#FFFFFF">Note: The frame does not come with the painting.<br> It is for viewing purposes only.</font>'+'<br>'
var close='<a href="javascript: self.close()"><img src="http://site.artsimpression.com/frames/btn-closewindow.gif" border="0"></a>'+'<br><br>'

if (typeof jkpopwin=="undefined" || jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{
//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
//jkpopwin.moveTo(leftpos, toppos)
jkpopwin.resizeTo(popwidth, popheight+30)
}
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><div align="center"><table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td>&nbsp;</td></tr><tr><td valign="bottom" align="right"><img src="'+framelb+'" border="0" height="'+framethickness+'" width="'+framethickness+'"></td><td valign="bottom" width="'+imgwidth+'"><img src="'+frameb+'" border="0" width="'+imgwidth+'" height="'+framethickness+'"></td><td valign="bottom" align="left"><img src="'+framerb+'" border="0" height="'+framethickness+'" width="'+framethickness+'"></td></tr><tr height="'+imgheight+'"><td align="right" height="'+imgheight+'"><img src="'+framel+'" height="'+imgheight+'" width="'+framethickness+'"></td><td width="'+imgwidth+'" height="'+imgheight+'"><img src="'+imgpath+'" border="0" width="'+imgwidth+'" height="'+imgheight+'"></td><td align="left"><img src="'+framer+'" height="'+imgheight+'" width="'+framethickness+'"></td></tr><tr><td valign="top" align="right"><img src="'+framelo+'" border="0" height="'+framethickness+'" width="'+framethickness+'"></td><td valign="top" width="'+imgwidth+'"><img src="'+frameo+'" border="0" width="'+imgwidth+'" height="'+framethickness+'"></td><td valign="top" align="left"><img src="'+framero+'" border="0" height="'+framethickness+'" width="'+framethickness+'"></td></tr></table><p>'+disclaimer+close+'</div></body></html>')
jkpopwin.document.close()
jkpopwin.focus()
}



var win=null;
function NewWindow(mypage,myname){
var w=680
var h=500
var scroll="yes"
var pos="center"
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}



function popup(src) {
  win = window.open(src,"","top=20,left=20,height=300,width=450,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes");
}



//Specify highlight behavior. "TD" to highlight table cells, "TR" to highlight the entire row
var highlightbehavior="TR"
var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}


// -->

