/*
	 Skrypt jest darmowy, poki ten komentarz w nim pozostaje.
	 Released under Creative Commons License
	 http://creativecommons.org/licenses/by/2.0/

	 Original author: Kornel Lesinski
	 http://pornel.net/pups/
	 ***********************
	 Skrypt zmodyfikowany na podstawie oryginału, o którym wyżej.
	 
*/

var pornpups =
{
	init: function()
	{
		var as = document.getElementById('main_konf_felg_link');
		as.onclick = this.click;
		return true;
	},

	writedoc: function(win,href)
	{
		var doc = win.document;
		doc.open('text/html;charset=ISO-8859-2');
		doc.write(
		'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">' +
		'<html>' +
		'<head><title>Konfigurator felg</title>' +
		'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' +
		'<meta http-equiv="imagetoolbar" content="false">' +
		'</head><frameset cols="*">' +
		'<frame src="'+ href +'">' +
		'</frameset></html>'
		);
		doc.close();
	},


	click: function(ev)
	{
		ev = ev||event; /* IEizm */
		
		try
		{
			var winopts = "dependent=no,toolbar=no,resizable=yes, scrollbars=yes, width=995,height=600";
			
			/* do the boogie! */
			var win = window.open(this.href,'_blank',winopts);
			if (win && win.opener)
			{
				this.pp_win = win;
				pornpups.writedoc(win,this.href);
				if (ev.stopPropagation) ev.stopPropagation();
				return false;
			}
		}
		
		catch(e){}
		
		return false;
	}
};

pornpups.init();

