/////////////////////////////////////////////////
//                                             //
//    ©2005, Impressie, All Rights Reserved    //
//                                             //
/////////////////////////////////////////////////

//////////////////////////////
// Declaration of variables //
//////////////////////////////
menu_backgroundcolor_hot = '#B7D2FF';
menu_backgroundcolor_cold = '#DEE9FF';

//////////////////////////////
// Procedures and functions //
//////////////////////////////

function colorBg(colorTo,Object) {
	switch(colorTo){
		case "menu_hot":
			Object.style.backgroundColor=menu_backgroundcolor_hot;
		break;
		case "menu_cold":
			Object.style.backgroundColor=menu_backgroundcolor_cold;
		break;
		default :
			Object.style.backgroundColor=colorTo;
		break;
	};
};


// function Empty
// Empties a field if it has not been used before

function empty(refObject,oval) {
	if(refObject.value == oval) {
		refObject.value = '';
	};
};

function fill(refObject,oval) {
	if(refObject.value == '') {
		refObject.value = oval;
	};
};

function openPaintingOld(artist,painting,title,w,h) {
	w = w + 80;
	h = h + 120;
	paintingwindow = window.open('','fotoraam','location=no,menubar=no,scrollbars=no,titlebar=no,toolbar=no,top=0,left=0,height='+h+',width='+w);

	paintingwindow.document.write('<HTML><HEAD><TITLE>'+title+'</TITLE><STYLE type="text/css">HTML { height:100%; } BODY { height:100%; } IMG.menu {padding: 0; border: 0; margin: 3px;} IMG.close {float:right;padding: 0; border: 0; margin: 3px;} SPAN.float-right { float:left; margin: 3px; } #image {	width: auto; margin:auto auto; text-align:center;	padding:30px;	border-style: none none dashed none; border-width:1px; border-color: #333; background-color:#eee; } #main{ float:none; text-align:center; position:relative; top:0px; left:0px; width:100%; height:28px; top:0px; background-color:Black; color:White; font-family:Verdana; font-weight:bold; font-size:12pt; } #text { margin:10px; text-align:center; font-family: Century Schoolbook; letter-spacing:1px; word-spacing:1px; } </STYLE></HEAD>');
	paintingwindow.document.write('<BODY onblur="javascript:self.close()" style="margin:0px;padding:0px;"><DIV id="main"><SPAN class="float-right">1 of 12</SPAN><img src="/img/sluiten.gif" class="close"><img src="/img/vorige.gif" class="menu"><img src="/img/print.gif" class="menu"><img src="/img/volgende.gif" class="menu"></DIV><DIV id="image"><img class="picture" src="/'+artist+'/img/'+painting+'-large.jpg"></DIV><DIV id="text">'+title+'</DIV></BODY></HTML>');

	paintingwindow.document.close();
	
};

function openPainting(artist,painting,max,w,h) {
	w = w + 80;
	h = h + 120;
	paintingwindow = window.open('/adbib?'+artist+'&'+painting+'&'+max,'fotoraam','location=no,menubar=no,scrollbars=no,titlebar=no,toolbar=no,height='+h+',width='+w);

	paintingwindow.document.close();
	
};
