// JavaScript Document

function popupimg(name, url, width, height) {
	var imgss;
	var winl = (screen.width) ? (screen.width - width) / 2 : 0;
	var wint = (screen.height) ? (screen.height - height) / 2 : 0;
	var winname = urlencode(name);
	var settings = 'left='+winl+',top='+wint+',width='+ (width + 40) +',height='+(height+40)+',toolbar=no,menubar=no,status=yes,scrollbars=yes,resizable=yes';
	myimgss = window.open('','imgpoint',settings);
	myimgss.document.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><title>'+urldecode(winname)+' // portfolio @ eldor.com</title><link href="css/popup.css" rel="stylesheet" type="text/css"></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table height="100%" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle"><a href="javascript:self.close();" title="Click to close the window..."><img src="'+url+'" name="fullbimg" alt="'+name+'" border="0"><br>close window</a></td></tr></table></body></html>');
	if(myimgss.window.focus) {
		myimgss.window.focus();
	}
}

function popup(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable){
	var wint = (screen.height - height) / 2;
	var winl = (screen.width - width) / 2;
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';
	window.open(url, name, 'left='+winl+',top='+wint+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

function urlencode(ch) {
   ch = ch.replace(/[ ]/g,"+") 
   return escape(ch) 
}
function urldecode(ch) {
   ch = ch.replace(/[+]/g," ")
   return unescape(ch)
}

// -->
