function LoadTizer()
{
var RNum = Math.floor(Math.random()*10000); document.write('<scr'+'ipt language="javascript" type="text/javascript" src="http://n.adonweb.ru/payclick/adv-out/?Id=40272&RNum='+RNum+'&Referer='+escape(document.referrer)+'"><'+'/scr'+'ipt>');
}

function RightNews1()
{
var RNum = Math.floor(Math.random()*10000); document.write('<scr'+'ipt language="javascript" type="text/javascript" src="http://n.adonweb.ru/payclick/adv-out/?Id=40399&RNum='+RNum+'&Referer='+escape(document.referrer)+'"><'+'/scr'+'ipt>');
}

function register(){
window.location.href="/index/3";
}

function load_module(a){
var e=document.getElementById(a);
if(!e)return true;
if(e.style.display=="block"){
e.style.display="none"
} else {
e.style.display="block"
}
return true;
}

//RESIZERS
var defwidth=730,defheight=500;

//toogle 100% width of element
function w100(d,obj,h)
{
if($(obj).attr('wintype')!='0')
{
$(obj).attr('wintype','0');
$(h).show();
}

var brw=getBrw();
var mult=0.98;
if(brw=='gecko')
mult=0.89;
else if(brw=='presto')
mult=0.9;
else if(brw=='applewebkit')
mult=1.05;

var p = defwidth/defheight;
var maxheight=
Math.floor(
Math.min($('body').innerHeight()-$('#toogles').height(),Math.round($('body').innerWidth()/p)-$('#toogles').height())
*mult);

$(obj).css('width',(maxheight*p)+'px');
$(obj).css('height',(maxheight)+'px');
$(d).css('width',(maxheight*p)+'px');
$(d).css('height',(maxheight)+'px');

$("#FlashSize").slider("value",(maxheight*p));

location.href=d;
$(obj).focus();
}

function wstandart(d,obj,h)
{
if($(obj).attr('wintype')!='0')
{
$(obj).attr('wintype','0');
$(h).show();
}

$(obj).css('width',defwidth+'px');
$(obj).css('height',defheight+'px');
$(d).css('width',defwidth+'px');
$(d).css('height',defheight+'px');

$("#FlashSize").slider("value",defwidth);

location="#head";
$(obj).focus();
}

function fullscrn(d,obj,h)
{
if($(obj).attr('wintype')=='0')
{
w100(d, obj);
$(h).hide();
$(obj).attr('wintype','1');
}
else
{
$(obj).attr('wintype','0');
$(h).show();
}
$(obj).focus();
}

function ResizeFlash(size)
{
if(!emld)return;
var p = defheight/defwidth;
$('#flashEmbd').css('width',size+'px');
$('#flashEmbd').css('height',size*p+'px');
$('div#flashgamef').css('width',size+'px');
$('div#flashgamef').css('height',size*p+'px');
}
