function setHomePage(link, url)
{
	if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
	{
  	link.style.behavior = 'url(#default#homepage)';
  	link.setHomePage(url);
	}
	else
	{
		alert('W Twojej przeglądarce nie można ustawić strony startowej automatycznie.');
	}
	return false;
}
WUI.MFO_Start = {};
WUI.MFO_Start.template = { 1:'if(S(this.vars[\'0\'])){tpl +=  \'<div class="\' + S(this.vars[\'1\']) + \'" id="\' + S(this.vars[\'2\']) + \'" default_request="\' + S(this.vars[\'3\']) + \'">\';}tpl +=  \'<center>\\n\';tpl +=  \'<div style="width: 870px;">\\n\';tpl +=  \'<div id="wui_loading" style="width: 200px; border: solid #CCCCCC 1px; padding: 5px; text-align: center; display: none; position: absolute; top: 2px; left: 2px; z-index: 100">\\n\';tpl +=  \'<img src="images/icon_loading2.gif"><br>\\n\';tpl +=  \'wczytywanie...\\n\';tpl +=  \'</div>\\n\';tpl +=  \'<table width="870">\\n\';tpl +=  \'  <tr>\\n\';tpl +=  \'    <td align="left" width="185">\\n\';tpl +=  \'    	<a href="#" onclick="javascript:return setHomePage(this, window.location)">Ustaw jako strone startową</a>\\n\';tpl +=  \'    </td>\\n\';tpl +=  \'    <td align="center" width="500">\\n\';tpl +=  \'    	<b></b>\\n\';tpl +=  \'    </td>\\n\';tpl +=  \'    <td align="right" width="185">\\n\';tpl +=  \'    	<a href="http://www.my-fantasy.net/" target="_blank">My Fantasy Online</a>\\n\';tpl +=  \'    </td>\\n\';tpl +=  \'  </tr>\\n\';tpl +=  \'</table>\\n\';tpl +=  \'&nbsp;\\n\';tpl +=  \'<br>\\n\';tpl +=  \'<img src="http://static.my-fantasy.net/images/logo.jpg">\\n\';tpl +=  \'<br>\\n\';tpl +=  \'&nbsp;\\n\';tpl +=  \'<table class="\' + S(this.vars[\'1\']) + \'">\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<th class="Widget">Wyszukiwarka</th>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<td colspan="2" align="left" height="110">\\n\';tpl +=  \'<!-- Search Google -->\\n\';tpl +=  \'<center>\\n\';tpl +=  \'<form method="get" action="http://www.google.pl/custom" target="_top">\\n\';tpl +=  \'<table bgcolor="#ffffff">\\n\';tpl +=  \'<tr><td nowrap="nowrap" valign="top" align="left" height="32">\\n\';tpl +=  \'<a href="http://www.google.com/">\\n\';tpl +=  \'<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>\\n\';tpl +=  \'<br/>\\n\';tpl +=  \'<label for="sbi" style="display: none">Wprowadź wyszukiwane hasło</label>\\n\';tpl +=  \'<input type="text" name="q" size="80" maxlength="255" value="" id="sbi"></input>\\n\';tpl +=  \'</td></tr>\\n\';tpl +=  \'<tr><td valign="top" align="left">\\n\';tpl +=  \'<label for="sbb" style="display: none">Prześlij formularz wyszukiwania</label>\\n\';tpl +=  \'<input type="submit" name="sa" value="Wyszukaj w internecie" id="sbb"></input>\\n\';tpl +=  \'<input type="hidden" name="client" value="pub-6276218262278741"></input>\\n\';tpl +=  \'<input type="hidden" name="forid" value="1"></input>\\n\';tpl +=  \'<input type="hidden" name="ie" value="ISO-8859-2"></input>\\n\';tpl +=  \'<input type="hidden" name="oe" value="ISO-8859-2"></input>\\n\';tpl +=  \'<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:252;L:http://;S:http://;FORID:1"></input>\\n\';tpl +=  \'<input type="hidden" name="hl" value="pl"></input>\\n\';tpl +=  \'</td></tr></table>\\n\';tpl +=  \'</form>\\n\';tpl +=  \'</center>\\n\';tpl +=  \'<!-- Search Google -->\\n\';tpl +=  \'</td>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'</table>\\n\';tpl +=  \'<br>\\n\';tpl +=  \'\' + S(this.vars[\'4\']) + \'\\n\';tpl +=  \'<br>\\n\';tpl +=  \'Wszelkie uwagi proszę kierować na adres admin(a+t)my-fantasy.net.\\n\';tpl +=  \'</div>\\n\';tpl +=  \'</center>\';if(S(this.vars[\'0\'])){tpl +=  \'</div>\';}',2:'if(S(this.vars[\'0\'])){tpl +=  \'<div class="\' + S(this.vars[\'1\']) + \'" id="\' + S(this.vars[\'2\']) + \'" default_request="\' + S(this.vars[\'3\']) + \'">\';}if(S(this.vars[\'5\'])){tpl +=  \'<form\' + S(this.vars[\'6\']) + \' name="\' + S(this.vars[\'2\']) + \'" submit_mode="\' + S(this.vars[\'7\']) + \'" onsubmit="return WUI.submit(\\\'\' + S(this.vars[\'8\']) + \'\\\', \\\'\' + S(this.vars[\'2\']) + \'\\\');">\';}tpl +=  \'<center>\\n\';tpl +=  \'<div style="width: 870px;">\\n\';tpl +=  \'<div id="wui_loading" style="width: 200px; border: solid #CCCCCC 1px; padding: 5px; text-align: center; display: none; position: absolute; top: 2px; left: 2px; z-index: 100">\\n\';tpl +=  \'<img src="images/icon_loading2.gif"><br>\\n\';tpl +=  \'wczytywanie...\\n\';tpl +=  \'</div>\\n\';tpl +=  \'<table width="870">\\n\';tpl +=  \'  <tr>\\n\';tpl +=  \'    <td align="left" width="185">\\n\';tpl +=  \'    	<a href="#" onclick="javascript:return setHomePage(this, window.location)">Ustaw jako strone startową</a>\\n\';tpl +=  \'    </td>\\n\';tpl +=  \'    <td align="center" width="500">\\n\';tpl +=  \'    	<b></b>\\n\';tpl +=  \'    </td>\\n\';tpl +=  \'    <td align="right" width="185">\\n\';tpl +=  \'    	<a href="http://www.my-fantasy.net/" target="_blank">My Fantasy Online</a>\\n\';tpl +=  \'    </td>\\n\';tpl +=  \'  </tr>\\n\';tpl +=  \'</table>\\n\';tpl +=  \'&nbsp;\\n\';tpl +=  \'<br>\\n\';tpl +=  \'<img src="http://static.my-fantasy.net/images/logo.jpg">\\n\';tpl +=  \'<br>\\n\';tpl +=  \'&nbsp;\\n\';tpl +=  \'<table class="\' + S(this.vars[\'1\']) + \'">\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<th class="Widget">Wyszukiwarka</th>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<td colspan="2" align="left" height="110">\\n\';tpl +=  \'<!-- Search Google -->\\n\';tpl +=  \'<center>\\n\';tpl +=  \'<form method="get" action="http://www.google.pl/custom" target="_top">\\n\';tpl +=  \'<table bgcolor="#ffffff">\\n\';tpl +=  \'<tr><td nowrap="nowrap" valign="top" align="left" height="32">\\n\';tpl +=  \'<a href="http://www.google.com/">\\n\';tpl +=  \'<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>\\n\';tpl +=  \'<br/>\\n\';tpl +=  \'<label for="sbi" style="display: none">Wprowadź wyszukiwane hasło</label>\\n\';tpl +=  \'<input type="text" name="q" size="80" maxlength="255" value="" id="sbi"></input>\\n\';tpl +=  \'</td></tr>\\n\';tpl +=  \'<tr><td valign="top" align="left">\\n\';tpl +=  \'<label for="sbb" style="display: none">Prześlij formularz wyszukiwania</label>\\n\';tpl +=  \'<input type="submit" name="sa" value="Wyszukaj w internecie" id="sbb"></input>\\n\';tpl +=  \'<input type="hidden" name="client" value="pub-6276218262278741"></input>\\n\';tpl +=  \'<input type="hidden" name="forid" value="1"></input>\\n\';tpl +=  \'<input type="hidden" name="ie" value="ISO-8859-2"></input>\\n\';tpl +=  \'<input type="hidden" name="oe" value="ISO-8859-2"></input>\\n\';tpl +=  \'<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:252;L:http://;S:http://;FORID:1"></input>\\n\';tpl +=  \'<input type="hidden" name="hl" value="pl"></input>\\n\';tpl +=  \'</td></tr></table>\\n\';tpl +=  \'</form>\\n\';tpl +=  \'</center>\\n\';tpl +=  \'<!-- Search Google -->\\n\';tpl +=  \'</td>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'</table>\\n\';tpl +=  \'<br>\\n\';tpl +=  \'\' + S(this.vars[\'4\']) + \'\\n\';tpl +=  \'<br>\\n\';tpl +=  \'Wszelkie uwagi proszę kierować na adres admin(a+t)my-fantasy.net.\\n\';tpl +=  \'</div>\\n\';tpl +=  \'</center>\';if(S(this.vars[\'5\'])){for(var i in this.vars[\'ajax_form_field.\']){var ajax_form_field_v = this.vars[\'ajax_form_field.\'][i];tpl +=  \'<input type="hidden" name="\' + S(ajax_form_field_v[\'9\']) + \'" value="\' + S(ajax_form_field_v[\'10\']) + \'">\';}tpl +=  \'</form>\';}if(S(this.vars[\'0\'])){tpl +=  \'</div>\';}'};
WUI.MFO_Start.inline_js = { 1:0,2:0};
function updateAddLink(new_link)
{
	alert(new_link);
	$('player_info_add_link').href = new_link;
}
WUI.PlayerInfos = {};
WUI.PlayerInfos.template = { 1:'if(S(this.vars[\'0\'])){tpl +=  \'<div class="\' + S(this.vars[\'1\']) + \'" id="\' + S(this.vars[\'2\']) + \'" default_request="\' + S(this.vars[\'3\']) + \'">\';}tpl +=  \'<table class="\' + S(this.vars[\'1\']) + \'">\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<th width="770" class="Widget">Podgląd kont</th>\\n\';tpl +=  \'	<th width="100" class="Widget"><a href="\' + S(this.vars[\'4\']) + \'" id="player_info_add_link"><img src="images/icon_plus.gif"> dodaj konto</A></th>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<td colspan="2" align="left">\' + S(this.vars[\'5\']) + \'</td>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'</table>\';if(S(this.vars[\'0\'])){tpl +=  \'</div>\';}',2:'if(S(this.vars[\'0\'])){tpl +=  \'<div class="\' + S(this.vars[\'1\']) + \'" id="\' + S(this.vars[\'2\']) + \'" default_request="\' + S(this.vars[\'3\']) + \'">\';}if(S(this.vars[\'6\'])){tpl +=  \'<form\' + S(this.vars[\'7\']) + \' name="\' + S(this.vars[\'2\']) + \'" submit_mode="\' + S(this.vars[\'8\']) + \'" onsubmit="return WUI.submit(\\\'\' + S(this.vars[\'9\']) + \'\\\', \\\'\' + S(this.vars[\'2\']) + \'\\\');">\';}tpl +=  \'<table class="\' + S(this.vars[\'1\']) + \'">\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<th width="770" class="Widget">Podgląd kont</th>\\n\';tpl +=  \'	<th width="100" class="Widget"><a href="\' + S(this.vars[\'4\']) + \'" id="player_info_add_link"><img src="images/icon_plus.gif"> dodaj konto</A></th>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'<tr>\\n\';tpl +=  \'	<td colspan="2" align="left">\' + S(this.vars[\'5\']) + \'</td>\\n\';tpl +=  \'</tr>\\n\';tpl +=  \'</table>\';if(S(this.vars[\'6\'])){for(var i in this.vars[\'ajax_form_field.\']){var ajax_form_field_v = this.vars[\'ajax_form_field.\'][i];tpl +=  \'<input type="hidden" name="\' + S(ajax_form_field_v[\'10\']) + \'" value="\' + S(ajax_form_field_v[\'11\']) + \'">\';}tpl +=  \'</form>\';}if(S(this.vars[\'0\'])){tpl +=  \'</div>\';}'};
WUI.PlayerInfos.inline_js = { 1:0,2:0};
