// JavaScript Document Yuri Art Gallery

function popNews(){
	popWin = window.open('news.php','News','width=300, height=420');	
	popWin.focus();
}

function createPopup(url,myTitle, motive, artist){
	var pop;
	pop = window.open('','tmPopUp','toolbars=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=600,height=400');
	pop.document.open();
	pop.document.clear();
	with(pop.document){
	writeln('<html><head><title>' + myTitle + '</title>\n');
	writeln('<scr' + 'ipt language="javascript" type="text/javascript">function tmResizeWinToPic(picUrl){');
	writeln('var ns6 = document.getElementById && ! document.all;var ie4 = document.all;var e=0;var w=0;');
	writeln('if(ie4){w=12;h=128;}if(ns6){w=10;h=122;};if(ns6||ie4){var img = new Image();');
	writeln('img.src = picUrl;picH = img.height+h;picW = img.width+w;self.resizeTo((picW),(picH));}}</scr' + 'ipt>');
	writeln('<style type="text/css">.text_brodtextVit {	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 10px; font-weight: normal; color: #FFFFFF;</style></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#000000" onLoad="tmResizeWinToPic(\'' + url + '\');"><center><img vspace="0" hspace="0" src="' + url + '" ></center>');
	writeln('<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#18ADE7"><tr><td width="12" bgcolor="#18ADE7"<img src="/shop/images/_spacer.gif" width="12" height="10"></td><td bgcolor="#18ADE7"><img src="/shop/images/footer_popup.gif" width="224" height="33"></td></tr><tr><td class="text_brodtextVit">&nbsp;</td><td class="text_brodtextVit">');
	writeln(motive + ', ' + artist);
	writeln('</td></tr><tr><td bgcolor="#18ADE7">&nbsp;</td><td bgcolor="#18ADE7">&nbsp;</td><tr></table>');
	writeln('</body></html>');
	}
	pop.document.close();
	pop.focus();
}

