/**
 *
 * @copyright 2003-2004 iWorks Marcin Pietrzak
 * @link http://www.iworks.pl/
 * @author Marcin Pietrzak <marcin.pietrzak@iworks.pl>
 * @version $Revision: 1.5 $
 * @file $RCSfile: default.js,v $
 * @date $Date: 2004/02/11 10:36:33 $
 *
 */

function c(fileName, themeId) {
	a = new Image();
	a.src = '_images/themes/' + themeId + '/icons/' + fileName + '.gif';
	return a.src;
}

var popup_width  = 400;
var popup_height = 440;

function openEmailThisWindow(navi, sid, title) {
	window.open(('index.pl?sid=' + sid + '&navi=' + navi + '&style=email_this&dir=email_this&email_this_url=' + escape(document.location.href) + '&email_this_title=' + escape(title)), 'emailthis', 'width=' + popup_width + ',height=' + popup_height + ',resizable=0,dependent=1,menubar=0');
}
function openPresentationWindow() {
	window.open('http://www.killer.mud.pl/_downloads/jak-zaczac-grac/', 'width=941,height=741,resizable=0,dependent=1,menubar=0');
}

function showImage(url, w, h) {
	w += 24;h += 24;
	window.open(url, 'killer::image', 'width=' + w + ',height=' + h + ',resizable=0,menubar=0,dependent=1,scrollbars=1');
}
