var redirection;
var urlRedirection;
var sas_tmstp=Math.round(Math.random()*10000000000);sas_masterflag=1;

function InitRedirection( url )
{
	urlRedirection = url;
	redirection = setTimeout ("Redirection_site()", 5000 );
}
function Redirection_site()
{
	window.location.href = urlRedirection;
	clearTimeout(redirection); 
} 

function SmartAdServer( sas_pageid, sas_formatid, sas_target ) 
{
	if ( sas_masterflag ==1 )
	{
		sas_masterflag=0;
		sas_master='M';
	}
	else
		sas_master='S';
		
	document.write('<scr'+'ipt src="http://www2.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/' + sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?"></scr'+'ipt>');
}
