function Yetii(){this.defaults={id:null,active:1,interval:null,wait:null,persist:null,tabclass:'tab',activeclass:'active',callback:null,leavecallback:null};this.activebackup=null;for(var n in arguments[0]){this.defaults[n]=arguments[0][n]};this.getTabs=function(){var a=[];var b=document.getElementById(this.defaults.id).getElementsByTagName('*');var c=new RegExp("(^|\s)"+this.defaults.tabclass.replace(/\-/g,"\-")+"(\s|$)");for(var i=0;i<b.length;i++){if(c.test(b[i].className))a.push(b[i])}return a};this.links=document.getElementById(this.defaults.id+'-nav').getElementsByTagName('a');this.listitems=document.getElementById(this.defaults.id+'-nav').getElementsByTagName('li');this.show=function(a){for(var i=0;i<this.tabs.length;i++){this.tabs[i].style.display=((i+1)==a)?'block':'none';if((i+1)==a){this.addClass(this.links[i],this.defaults.activeclass);this.addClass(this.listitems[i],this.defaults.activeclass+'li')}else{this.removeClass(this.links[i],this.defaults.activeclass);this.removeClass(this.listitems[i],this.defaults.activeclass+'li')}}if(this.defaults.leavecallback&&(a!=this.activebackup))this.defaults.leavecallback(this.defaults.active);this.activebackup=a;this.defaults.active=a;if(this.defaults.callback)this.defaults.callback(a)};this.rotate=function(a){this.show(this.defaults.active);this.defaults.active++;if(this.defaults.active>this.tabs.length)this.defaults.active=1;var b=this;if(this.defaults.wait)clearTimeout(this.timer2);this.timer1=setTimeout(function(){b.rotate(a)},a*1000)};this.next=function(){var a=(this.defaults.active+1>this.tabs.length)?1:this.defaults.active+1;this.show(a);this.defaults.active=a};this.previous=function(){var a=((this.defaults.active-1)==0)?this.tabs.length:this.defaults.active-1;this.show(a);this.defaults.active=a};this.previous=function(){this.defaults.active--;if(!this.defaults.active)this.defaults.active=this.tabs.length;this.show(this.defaults.active)};this.gup=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b="[\?&]"+a+"=([^&#]*)";var c=new RegExp(b);var d=c.exec(window.location.href);if(d==null)return null;else return d[1]};this.parseurl=function(a){var b=this.gup(a);if(b==null)return null;if(parseInt(b))return parseInt(b);if(document.getElementById(b)){for(var i=0;i<this.tabs.length;i++){if(this.tabs[i].id==b)return(i+1)}}return null};this.createCookie=function(a,b,c){if(c){var d=new Date();d.setTime(d.getTime()+(c*24*60*60*1000));var e="; expires="+d.toGMTString()}else var e="";document.cookie=a+"="+b+e+"; path=/"};this.readCookie=function(a){var b=a+"=";var d=document.cookie.split(';');for(var i=0;i<d.length;i++){var c=d[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(b)==0)return c.substring(b.length,c.length)}return null};this.contains=function(a,b,c){return a.indexOf(b,c)!=-1};this.hasClass=function(a,b){return this.contains(a.className,b,' ')};this.addClass=function(a,b){if(!this.hasClass(a,b))a.className=(a.className+' '+b).replace(/\s{2,}/g,' ').replace(/^\s+|\s+$/g,'')};this.removeClass=function(a,b){a.className=a.className.replace(new RegExp('(^|\s)'+b+'(?:\s|$)'),'$1');a.className.replace(/\s{2,}/g,' ').replace(/^\s+|\s+$/g,'')};this.tabs=this.getTabs();this.defaults.active=(this.parseurl(this.defaults.id))?this.parseurl(this.defaults.id):this.defaults.active;if(this.defaults.persist&&this.readCookie(this.defaults.id))this.defaults.active=this.readCookie(this.defaults.id);this.activebackup=this.defaults.active;this.show(this.defaults.active);var f=this;for(var i=0;i<this.links.length;i++){this.links[i].customindex=i+1;this.links[i].onclick=function(){if(f.timer1)clearTimeout(f.timer1);if(f.timer2)clearTimeout(f.timer2);f.show(this.customindex);if(f.defaults.persist)f.createCookie(f.defaults.id,this.customindex,0);if(f.defaults.wait)f.timer2=setTimeout(function(){f.rotate(f.defaults.interval)},f.defaults.wait*1000);return false}}if(this.defaults.interval)this.rotate(this.defaults.interval)};document.write('<style type="text/css">#totalmoney_tab-container{width: 300px; height: 250px; font: normal 11px Arial, Helvetica, sans-serif; overflow: hidden;}.tab{position: relative;z-index: 10;}.tab a.all-links{position: absolute;top: 67px;width: 300px;height: 115px;display: block;z-index: 100;text-indent: -9999px;background: url(http://s2.totalmoney.pl/widgety/images/blank.gif);cursor: pointer;}#totalmoney_tab-container ul{margin: 0;padding: 0;height: 68px;overflow: hidden;background: #099;}#totalmoney_tab-container ul li {list-style: none;float: left;width: 75px;}#totalmoney_tab-container ul li a {display: block;height: 68px;width: 75px;text-indent: -9999px;background: url(http://s2.totalmoney.pl/widgety/images/tabs.gif) no-repeat;}#totalmoney_tab-container ul li#kredyty-hipoteczne a:hover, #totalmoney_tab-container ul li#kredyty-hipoteczne a.active {background-position: 0 -73px;}#totalmoney_tab-container ul li#kredyty-gotowkowe a {background-position: -75px 0;}#totalmoney_tab-container ul li#kredyty-gotowkowe a:hover,#totalmoney_tab-container ul li#kredyty-gotowkowe a.active {background-position: -75px -73px;}#totalmoney_tab-container ul li#lokaty a {background-position: -150px 0;}#totalmoney_tab-container ul li#lokaty a:hover,#totalmoney_tab-container ul li#lokaty a.active{background-position: -150px -73px;}#totalmoney_tab-container ul li#konta a{background-position: -225px 0;}#totalmoney_tab-container ul li#konta a:hover,#totalmoney_tab-container ul li#konta a.active{background-position: -225px -73px;}.top-form{border: #cccccc solid;border-width: 0 1px;height: 65px;overflow: hidden;padding: 0 0 0 4px;	background: #f3f3f3;}.top-form h2{font-size: 13px;	font-weight: bold;float: left;margin: 0;padding: 6px 0 8px;color: #cc0000;}.top-form fieldset{border: none;margin: 0;padding: 0;height: 30px;}.top-form fieldset label{margin-right:0!important; float: left!important; text-align:left!important; font: normal 11px Arial, Helvetica, sans-serif;}.top-form fieldset select{font-size: 10px;width:auto!important;}.table-data{border: #ccc solid;border-width: 0 1px;padding: 0 4px 0;height: 81px;background: #fff;}.table-data table{border-top: #fff 4px solid; margin:0!important; }.table-data table thead th{font-size: 10px!important;text-align:center!important;padding: 2px 8px;line-height: 15px;border-bottom: #ccc 1px solid;}.table-data table th{border-right: #ccc 1px solid;}.table-data table tbody th{width: 153px!important;padding: 0 8px;line-height: 15px;text-align: left;font-size: 12px!important;font-weight: bold;}.table-data table tbody td{font-size: 12px!important;line-height: 15px;font-weight: bold;text-align: center; padding:0!important;}.bottom{height: 35px;overflow: hidden;background: #ececec;text-align: right;border: #ccc solid;border-width: 0 1px 1px;}.bottom img{margin:0!important;}.bottom .totalmoney{float: left;}</style>');document.write('<script type="text/javascript" src="http://s2.totalmoney.pl/widgety/tm_jsfunction.js"></script>');document.write('<script type="text/javascript">$(document).ready(function() {initdata();});</script>');document.write('<div id="totalmoney_tab-container"><ul id="totalmoney_tab-container-nav"><li id="kredyty-hipoteczne"><a href="#tab1">tab 1</a></li><li id="kredyty-gotowkowe"><a href="#tab2">tab 2</a></li><li id="lokaty"><a href="#tab3">tab 3</a></li><li id="konta"><a href="#tab4">tab 4</a></li></ul>');document.write('<div class="tab" id="tab1"><a href="http://pasazfinansowy.di.com.pl/porownaj/drugikrok/kredyty_hipoteczne/80/rata/rosnaco/1" class="all-links">Link</a><div class="top-form"><h2>Porównaj i wybierz najtańszy kredyt!</h2><br style="clear: both;" /><form action="http://www.totalmoney.pl/porownaj/drugikrok/kredyty_hipoteczne/80/rata/rosnaco/1" method="post"><fieldset><label style="width:115px;">Kwota<select name="kwotahipoteki" id="kwotahipoteki" onchange="hipotekichange();"><option value="100000">100 tys. zl</option><option value="200000">200 tys. zl</option><option value="300000">300 tys. zl</option><option value="500000">500 tys. zl</option><option value="1000000">1 mln zl</option></select></label><label style="width: 88px;">Waluta<select name="walutahipoteki" id="walutahipoteki" onchange="hipotekichange();"><option value="PLN">PLN</option><option value="EUR">EUR</option><option value="CHF">CHF</option></select></label><label style="width:auto;">Okres<select name="okreshipoteki" id="okreshipoteki" onchange="hipotekichange();"><option value="10">10 lat</option><option value="20">20 lat</option><option value="30">30 lat</option></select></label></fieldset></form></div><div class="table-data" id="divhipoteki"><table width="100%" border="0" cellpadding="0" cellspacing="0"><thead><tr><th>Nazwa banku:</th><th style="border-right: none;">Rata / miesiąc:</th></tr></thead><tbody><tr><th><span style="color:#00F; text-decoration:underline">Sprawdź nr 1 w rankingu</span></th><td>?</td></tr><tr><th>BOŚ Bank</th><td>1185</td></tr><tr><th>Nordea Bank</th><td>1192</td></tr></tbody></table></div><div class="bottom"><img src="http://s2.totalmoney.pl/widgety/images/logo_totalmoney.gif" width="118" height="35" class="totalmoney" /><img src="http://s2.totalmoney.pl/widgety/images/button.gif" width="127" height="35" class="button" /></div></div>');document.write('<div class="tab" id="tab2""><a href="http://pasazfinansowy.di.com.pl/porownaj/drugikrok/pozyczki_i_kredyty_gotowkowe/92/rata/rosnaco/1" class="all-links">Link</a><div class="top-form"><h2>Porównaj i płać najniższe raty!</h2><br style="clear: both;" /><form action="/" method="post"><fieldset><label style="width:115px;">Kwota<select name="kwotagotowki" id="kwotagotowki" onchange="gotowkichange();"><option value="5000">5 tys. zl</option><option value="10000">10 tys. zl</option><option value="20000">20 tys. zl</option><option value="50000">50 tys. zl</option><option value="100000">100 tys. zl</option></select></label><label style="width:auto;">Okres kredytu<select name="okresgotowki" id="okresgotowki" onchange="gotowkichange();"><option value="12">12 m-cy</option><option value="24">24 m-ce</option><option value="36">36 m-cy</option><option value="60">60 m-cy</option></select></label></fieldset></form></div><div class="table-data" id="divgotowki"><table width="100%" border="0" cellpadding="0" cellspacing="0"><thead><tr><th>Nazwa banku:</th><th style="border-right: none;">Rata / miesiąc:</th></tr></thead><tbody><tr><th><span style="color:#00F; text-decoration:underline">Sprawdź nr 1 w rankingu</span></th><td>?</td></tr><tr><th>PKO BP</th><td>454</td></tr><tr><th>Polbank EFG</th><td>456</td></tr></tbody></table></div><div class="bottom"><img src="http://s2.totalmoney.pl/widgety/images/logo_totalmoney.gif" width="118" height="35" class="totalmoney" /><img src="http://s2.totalmoney.pl/widgety/images/button.gif" width="127" height="35" class="button" /></div></div>');document.write('<div class="tab" id="tab3"><a href="http://pasazfinansowy.di.com.pl/porownaj/drugikrok/lokaty/89/odsetki/malejaco/1" class="all-links">Link</a><div class="top-form"><h2>Porównaj i załóż najlepszą lokatę online!</h2><br style="clear: both;" /><form action="/" method="post"><fieldset><label style="width:152px;">Kwota lokaty<select name="kwotalokat" id="kwotalokat" onchange="lokatychange();"><option value="5000">5 tys. zl</option><option value="10000">10 tys. zl</option><option value="50000">50 tys. zl</option><option value="100000">100 tys. zl</option></select></label><label>Okres<select name="okreslokat" id="okreslokat" onchange="lokatychange();"><option value="1">1 m-c</option><option value="3">3 m-ce</option><option value="6">6 m-cy</option><option value="9">9 m-cy</option><option value="12">12 m-cy</option><option value="24">24 m-ce</option></select></label></fieldset></form></div><div class="table-data" id="divlokaty"><table width="100%" border="0" cellpadding="0" cellspacing="0"><thead><tr><th>Nazwa banku:</th><th style="border-right: none;">Oprocentowanie:</th></tr></thead><tbody><tr><th><span style="color:#00F; text-decoration:underline">Sprawdź nr 1 w rankingu</span></th><td>?</td></tr><tr><th>eurobank</th><td>4.55%</td></tr><tr><th>Allianz Bank</th><td>4.50%</td></tr></tbody></table></div><div class="bottom"><img src="http://s2.totalmoney.pl/widgety/images/logo_totalmoney.gif" width="118" height="35" class="totalmoney" /><img src="http://s2.totalmoney.pl/widgety/images/button.gif" width="127" height="35" class="button" /></div></div>');document.write('<div class="tab" id="tab4"><a href="http://pasazfinansowy.di.com.pl/porownaj/drugikrok/konta_osobiste/93/oprocentowaniekonta/malejaco/1" class="all-links">Link</a><div class="top-form"><h2>Porównaj i wybierz najlepsze konto online!</h2><br style="clear: both;" /><form action="/" method="post"><fieldset><label style="width:auto;">Saldo na rachunku<select name="saldakont" id="saldakont" onchange="kontachange();"><option value="3000">3 000 zl</option><option value="5000">5 000 zl</option><option value="10000">10 000 zl</option><option value="50000">50 000 zl</option></select></label></fieldset></form></div><div class="table-data" id="divkonta"><table width="100%" border="0" cellpadding="0" cellspacing="0"><thead><tr><th>Nazwa banku:</th><th style="border-right: none;">Oprocentowanie:</th></tr></thead><tbody><tr><th><span style="color:#00F; text-decoration:underline">Sprawdź nr 1 w rankingu</span></th><td>?</td></tr><tr><th>Kredyt Bank</th><td>5.67%</td></tr><tr><th>Polbank EFG</th><td>5.35%</td></tr></tbody></table></div><div class="bottom"><img src="http://s2.totalmoney.pl/widgety/images/logo_totalmoney.gif" width="118" height="35" class="totalmoney" /><img src="http://s2.totalmoney.pl/widgety/images/button.gif" width="127" height="35" class="button" /></div></div>');document.write('</div>');document.write('<script type="text/javascript">');document.write("var tabber1 = new Yetii({id: 'totalmoney_tab-container'});");document.write('</script>')
