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


function SmartAdServer_iframe(sas_pageid,sas_formatid,sas_target,sas_w,sas_h) {
	if (sas_masterflag==1) {sas_masterflag=0;sas_master='M';} else {sas_master='S';};
	document.write('<iframe src="http://www4.smartadserver.com/call/pubif/' + sas_pageid + '/' + sas_formatid + '/'+sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?" width=' + sas_w + ' height=' + sas_h + ' marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no>');
	document.write('<scr'+'ipt type="text/javascr'+'ipt">document.write\(\'<scr\'+\'ipt src="http://www4.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/'+sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?"></scr\'+\'ipt>\'\)\;\n</scr'+'ipt>');
	document.write('</iframe>');
}

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://www4.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/' + sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?"></scr'+'ipt>');
}

function rl_pub(){
	position = new Array(8247, 8249);
	var newrand = Math.round(Math.random()*10000000000);
	$('.pub_content iframe').each(function(){
			var src = $(this).attr('src');
			var tab_url = src.split("/");
			tab_url[9] = newrand;
			var newsrc = tab_url.join('/');
			$(this).attr("src", newsrc);
	});
}





$(function(){

    window.setInterval("rl_pub()",60000);

});
