var space='';
$(document).ready(function(){
	$('body').append('<div id="addInputHolder">'+space
	+'<div id="helpHolder" style="margin:0 auto; width:300px; height:193px; background:url(images/alert.png)">'+space
    	+'<div align="right"><a href="javascript:void(0)"><img src="images/krestik.png" style="margin:4px 4px 0px 0px;" onclick="helpClose()" /></a></div>'+space
        +'<div id="flashHolder"></div>'+space
    +'</div>'+space
	+'</div>');
})

function alertx(content){
	$('#helpHolder').show();
	$("#flashHolder").html('<div class=big36_999999 align=center><img src=images/warning_trng.png align=absmiddle />&nbsp;&nbsp;Warning&nbsp;&nbsp;</div><div style="padding-top:30px; height:50px"><b>'+content+'</b></div><div><a href="javascript:helpClose()"><img src=images/ok.png /></a></div>');
	$("#addInputHolder").show();
	centrifug("helpHolder",1);
}

function centrifug(id, num){
	var fullHeight=$(window).height();
	var scr=$(document).scrollTop();
	var position=Math.round((fullHeight-$("#"+id).height())/2);
	$("#"+id).css("margin-top",(position+scr));
	$("#addInputHolder").css("height",$(document).height());
}

function helpClose(){
	$('#helpHolder').hide();
	$("#flashHolder").empty();
	$("#addInputHolder").slideUp("slow");
	$('#trdpix').remove();
	//$("#maxCPM").show("slow");
}

