function BGC() { $('#sexyBG').css({ display: "none" }); $('#barretrans').hide("fast"); }
function ouvretrans(message,bg,notimeout)
{
	$('#sexyBG').css({ width:eval(screen.width-20)+'px', height:eval(screen.height+document.documentElement.scrollTop)+'px', display:'block' });
	$('#barretrans').css({ marginTop: eval(document.documentElement.scrollTop-100)+'px' }).show("fast")
	.html('<div style="padding:15px">'+message+'</div>');
	if(notimeout!='notimeout'){ setTimeout("BGC()",5000); }
}
function ouvretrans_r(message,bg,fg,notimeout)
{
	if(!bg){var bg = "#333333";} if(!fg){var fg = "#ffffff";}
	$('#sexyBG').css({ width:eval(screen.width)+'px', height:eval(screen.height+document.documentElement.scrollTop)+'px', display:'block', backgroundColor:'white' });
	$('#barretrans_r').css({ marginTop: eval(document.documentElement.scrollTop)+'px', backgroundColor:bg, borderBottom:'medium solid '+fg+'' }).slideDown("fast")
	.html('<div style="padding:15px; color:'+fg+'">'+message+'</div>');
	//if(notimeout!='notimeout'){setTimeout("$('#barretrans_r').hide('fast');",5000);}
}
$(document).ready(function(){
	if (document.images) { 
		myimg1 = new Image();
		myimg1.src = "http://www.bloguez.com/images/barretrans.png";
		myimg2 = new Image();
		myimg2.src = "http://www.bloguez.com/images/bt2_bleu.png";
		myimg3 = new Image();
		myimg3.src = "http://www.bloguez.com/images/bt2_gris.png";
		myimg4 = new Image();
		myimg4.src = "http://www.bloguez.com/wait.gif";		
		myimg5 = new Image();
		myimg5.src = "http://www.bloguez.com/wait3.gif";		
		myimg6 = new Image();
		myimg6.src = "http://www.bloguez.com/waitpm.gif";
		myimg7 = new Image();
		myimg7.src = "http://www.bloguez.com/images/bouton_big_hover.png";
		myimg8 = new Image();
		myimg8.src = "http://www.bloguez.com/images/signup2.png";		
	}
});


function addslashes(str) {
	str=str.replace(/\\/g,'\\\\');
	str=str.replace(/\'/g,'\\\'');
	str=str.replace(/\"/g,'\\"');
	str=str.replace(/\0/g,'\\0');
	return str;
}
function setcookie(c_name,value,expiredays)
{
	var exdate = new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString()+";path=/;domain=bloguez.com;");
}
function getcookie(c_name)
{
	if (document.cookie.length>0)
	{
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1)
		{ 
			c_start=c_start + c_name.length+1; 
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end=document.cookie.length;
			return unescape(document.cookie.substring(c_start,c_end));
		} 
	}
	return "";
}
