/*
** System Partnerski Bankier.pl
**
** https://www.systempartnerski.pl
**
** Kod: GQbZIpphkzHbGAeTBQl
** 
*/

document.write('');
document.write('	<link href="//www.bankier.pl/static/api/data/normal.css?2011092101" rel="stylesheet" type="text/css" media="screen"/>');
document.write('   <div id="calc"></div><div id="bplloader" style="text-align: center"><img src="//www.bankier.pl/static/api/data/ajax-loader.gif" style="visibility: none; margin: auto"/></div>');
document.write('	');
document.write('    <script lang="javascript">');
document.write('	var bplcalc = {');
document.write('		dataUrl: \'//api.systempartnerski.pl/kalkulatory/gotowka.js?domain=ksml.produktyfinansowe.pl&charset=utf-8&period=&amount=&\',');
document.write('		dataDiv: \'#calc\',');
document.write('		dataDomain: \'https://ksml.produktyfinansowe.pl\',');
document.write('		dataName: "Chwilówka",');
document.write('		loadJSON: function(url){');
document.write('			bplcalc.bjq.getJSON(url+\'callback=?\', function(data){');
document.write('	        	bplcalc.bjq(bplcalc.dataDiv).html(data.calc);');
document.write('	         bplcalc.bjq(\'#bplloader img\').css({\'visibility\': \'hidden\'});	');
document.write('   		if (url != bplcalc.dataUrl) {');
document.write('                  window.location = String(window.location).replace(/\#.*$/, "") + "#result";');
document.write('			} else {');
document.write('			};');
document.write('		 	});');
document.write('		},');
document.write('		openForm: function(formid){');
document.write('         	url = bplcalc.dataDomain+\'/e/lead/\'+formid+\'/label=Widget-Gotowki-\'+bplcalc.dataName+\'/?source=wpkg\';');
document.write('			form = window.open(url, \'\', \'width=800,height=600,status=no,scrollbars=yes\');');
document.write('			form.focus();');
document.write('      	},');
document.write('		calcInit: function(){');
document.write('			bplcalc.bjq=jQuery.noConflict(true);');
document.write('			bplcalc.bjq(document).ready(function() {');
document.write('				bplcalc.loadJSON(bplcalc.dataUrl);');
document.write('			});');
document.write('		},');
document.write('		bjq: false,');
document.write('		submitForm: function(){');
document.write('		bplcalc.bjq(\'#bplloader\').css({\'display\': \'block\'});');
document.write('            bplcalc.bjq(\'#bplloader img\').css({\'visibility\': \'visible\'});');
document.write('            bplcalc.bjq(\'#result\').remove();');
document.write('			   var serial = bplcalc.bjq(bplcalc.dataDiv+\' form\').serialize();');
document.write('			   bplcalc.loadJSON(bplcalc.dataUrl+\'porownanie=1&\'+serial+\'&\');');
document.write('			   return false;');
document.write('		},');
document.write('		load: function(){');
document.write('			   var s = document.getElementsByTagName(\'script\')[0];');
document.write('			   var scriptTag = document.createElement(\'script\');');
document.write('			   scriptTag.type = \'text/javascript\';');
document.write('			   scriptTag.src = \'https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\';');
document.write('			   ');
document.write('			   var done = false;			   ');
document.write('			   scriptTag.onload = scriptTag.onreadystatechange = function(){');
document.write('    			   		 if ( !done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") ) {');
document.write('        				    done = true;');
document.write('					    bplcalc.calcInit();');
document.write('					    scriptTag.onload = scriptTag.onreadystatechange = null;');
document.write('    					 }');
document.write('			   };');
document.write('			   s.parentNode.insertBefore(scriptTag, s);');
document.write('		}');
document.write('	};');
document.write('	(function() {');
document.write('		bplcalc.load();');
document.write('	})();');
document.write('    </script>');