// VARIABLES ------------------------------------------------
var THE_ELEMENT;

var MAX_HEIGHT;
var MIN_HEIGHT;
var CURRENT_HEIGHT;
var OFFSET_HEIGHT;
var THE_SLIDER;
var IS_SLIDING;

var FADE_DURATION;
var FADE_STEPS;
var FADE_DELAY;
// ----------------------------------------------------------

// FONCTIONS ------------------------------------------------
function doProcess(configs)
{	
	writeHTML(configs);
	fillArrays(configs);
	startAnimation(configs);
}
function writeHTML(configs)
{
	// Définition du style
	var performerColor = "";	
	switch (configs.style)
	{
		case "01":
			performerColor = "#ba075f";
			break;
		case "02":
			performerColor = "#469e2e";
			break;
		case "03":
			performerColor = "#1669ad";
			break;
		case "04":
			performerColor = "#762f9d";
			break;
		case "05":
			performerColor = "#c39109";
			break;
		case "06":
			performerColor = "#a82424";
			break;
		case "07":
			performerColor = "red";
			break;
		case "08":
			performerColor = "#3d908a";
			break;
		case "09":
			performerColor = "#9c3068";
			break;
		case "10":
			performerColor = "#417489";
			break;
	}

	var contentUrl = "http://content." + configs.domain + ".com/Toaster2011/";
	var sHTML = "";
	sHTML += '<style type="text/css">* {margin:0 auto;} #collant {position: absolute;right:0px;bottom:0px;cursor:pointer;} div > #collant {position:fixed;}</style>';
	sHTML += '<div id="fader" style="font-family:Arial, Helvetica, sans-serif; zoom:1;">';
	sHTML += '<div id="collant">';
	sHTML += '<div id="dialogue" style="zoom:1;position:absolute;z-index:3999;bottom:0px;right:0px;width:354px;height:0px;">';		
	sHTML += '<table id="bGround" width="100%" height="168" cellspacing="0" cellpadding="0" border="0">';
	sHTML += '<tr style="width:354px; height:24px">';
	sHTML += '<td id="top" colspan="2" rowspan="2" valign="middle" align="center" width="354"><a href="||URL||" target="_blank" style="width:354px; height:25px;"><img src="' + contentUrl + 'images/filler.png" width="347" height="30" style="border:none; display:block;" /></a></td>';
	sHTML += '</tr>';
	sHTML += '<tr>';
	sHTML += '</tr>';
	sHTML += '<tr>';
	sHTML += '<td width="150">';
	sHTML += '<a id="video" href="||URL||" target="_blank"></a>';
	sHTML += '</td>';
	sHTML += '<td height="116">';
	sHTML += '<a href="||URL||" target="_blank" style="text-decoration:none;">';
	sHTML += '<img id="scroll" height="96" width="8" style="border:none;float:right; display:block; margin-right:4px;margin-top:4px;" />';
	sHTML += '<h4 id="performer" style="margin-top:2px; padding-top:2px; margin-right:13px; width:189px; height:22px;"></h4>';
	sHTML += '</a>';
	sHTML += '<a href="||URL||" target="_blank"  style="text-decoration:none;">';
	sHTML += '<p id="message" style="height:62px; width:179px; float:left; font-size:12px;padding:10px 5px 0px 5px;"></p>';
	sHTML += '</a>';
	sHTML += '</td>';
	sHTML += '</tr>';
	sHTML += '<tr valign="top">';
	sHTML += '<td>';
	sHTML += '<a href="||URL||" target="_blank" style="text-decoration:none;">';
	sHTML += '<p id="namePitch" style="float:left; margin-left:10px;margin-top:5px; font-size:9px;"></p></a>';
	sHTML += '<a id="status" href="||URL||" target="_blank" style="display:block; text-decoration:none;"></a>';
	sHTML += '</td>';
	sHTML += '<td>';
	sHTML += '<a href="||URL||" target="_blank" style="float:left;">';
	sHTML += '<img id="textBox" width="192" height="18" style="margin-bottom:8px; border:none; display:block;" />';
	sHTML += '</a>';
	sHTML += '</td>';
	sHTML += '</tr>';
	sHTML += '</table>';
	sHTML += '</div>';
	sHTML += '</div>';
	sHTML += '</div>';
	
	sHTML = sHTML.split('||URL||').join(configs.url);
	
	document.getElementById('imPopup').innerHTML = sHTML;
	
	document.getElementById('top').style.background='url("' + contentUrl + 'images/top' + configs.style + '.png") no-repeat';
	document.getElementById('bGround').style.background='url("' + contentUrl + 'images/bgBox' + configs.style + '.png")';	
	document.getElementById('performer').style.color = performerColor;
	
	document.getElementById('performer').style.backgroundColor='#ffffff';
	document.getElementById('performer').style.border='thin solid #bfbfc0';
	document.getElementById('performer').style.borderBottom='none';	
	document.getElementById('message').style.backgroundColor='#ffffff';
	document.getElementById('message').style.color='#000000';
	document.getElementById('message').style.border='thin solid #bfbfc0';
	document.getElementById('message').style.borderTop='none';	
	document.getElementById('namePitch').style.color='#000000';	
	document.getElementById('status').style.color='green';
	document.getElementById('textBox').src= contentUrl +'images/txtBx2.gif';	
	document.getElementById('scroll').src= contentUrl +'images/scroll.jpg';
}
function fillArrays(configs)
{
	var txt = new Array();
	var nom = new Array();
	var movie = new Array();

	var a = "";
	var b = "";
	var c = "";

	// Texte
	switch(configs.langue.toLowerCase())
	{
		case "fr":
		case "fl":
		case "fs":
		case "ql":
		case "ft":
		case "ta":
			txt.push("Je suis une vraie gourmande de la bite ! Aide-moi &agrave; me rassasier s.t.p. !");
			txt.push("Salut bb ! Viens voir ma double p&eacute;n&eacute;tration ! Je commence dans 2 minutes !");
			txt.push("Coucou ! Tu es partant pour un plan cul foutral ?");
			txt.push("Tu ne devineras jamais ce que je m'appr&ecirc;te &agrave; enfoncer dans ma chatte ! Clique pour voir !");
			txt.push("Clique ici pour mater de la bonne d&eacute;fonce !");
			txt.push("Partant pour une bonne pipe ? J'ai soif !");
			txt.push("Femme fontaine et son gode en direct ! ATTENTION ! Elle mouille tout sur son passage !");
			txt.push("Chatte luisante s'appr&ecirc;te &agrave; recevoir la visite d'un gros gode en direct ! Il ne manque que toi !");
			txt.push("Choisis un objet inusit&eacute; et un de mes orifices ! Fais vite!");
			txt.push("Je suis une vilaine cochonne ! Viens me punir la chatte en direct !");
			txt.push("Je me pilonne le cul avec un gode gros comme une bite de cheval ! Viens m'encourager !");
			txt.push("Je cherche une bonne queue &agrave; siphonner avec ma copine ! Tu viens te sacrifier ? :)");
			txt.push("Viens me casser le cul maintenant ! J'ai besoin d'une bonne dose de foutre !");
			txt.push("Je m'empiffre la chatte de godes comme une vraie garce ! Viens jouir avec moi !");
			txt.push("Bouffeuse de sperme cherche bite &agrave; engloutir ! Clique si tu corresponds &agrave; la description !");
			txt.push("Je me maltraite les orifices en direct, sous tes yeux, pour TON plaisir !");
			txt.push("Petit cul ultra serr&eacute; se fait attendrir en direct par un gode hercul&eacute;en !");
			txt.push("Salut ! J'ai 31cm de plaisir pr&egrave;s de moi ! Par quoi je commence ? Cul, chatte ou bouche ?");
			txt.push("Dilatation royale ! Je me pistonne le cul avec acharnement sous tes yeux !");
			txt.push("Je te jure d'&ecirc;tre soumise si tu me promets d'&ecirc;tre sans piti&eacute; pour ma chatte !");
			
			a = "&nbsp;est";
			b = "&nbsp;en ligne";
			c = "&nbsp;dit:";
			break;
		case "en":
		case "te":
			txt.push("I really love cocks! Wanna share yours with me?");
			txt.push("Hi baby! Come see my double penetration! I'm starting in 2 minutes!");
			txt.push("I've been a bad girl! Come punish me now!");
			txt.push("Hi! You ready for some hot sex?");
			txt.push("You would never believe what i'm about to stick in my pussy! Click to see!");
			txt.push("Click here to see me get fucked!");
			txt.push("Ready to get your dick sucked? I'm thirsty!");
			txt.push("Girl intense dildo squirting! WARNING! Massive flood alert!");
			txt.push("Shaved pussy about to get some love from a huge dildo! She's waiting for you!");
			txt.push("Choose one unusual object and one of my holes! Hurry up!");
			txt.push("I'm fucking my ass with a dildo the size of a horse! Come see it!");
			txt.push("Me and my friend are looking for a dick to suck! Can you help us? :)");
			txt.push("Come wreck my ass now! I need my cum fix!");
			txt.push("I'm fucking my pussy with dildos like a real slut! Wanna see me?");
			txt.push("Sex addict looking for a dick to suck. Click if you got what i need!");
			txt.push("I'm punishing both my holes LIVE, for YOUR pleasure!");
			txt.push("Ultra tight asshole gets tenderize LIVE by a GIGANTIC dildo!");
			txt.push("Hi! I'm with my 18 &quot; dildo. Where do I stick it first? Asshole, pussy or mouth?");
			txt.push("Royal gaping! I'm ruthlessly stuffing my ass for your eyes only!");
			txt.push("I'll do anything you want if you promess me you'll make me squirt!");
			
			a = "&nbsp;is"
			b = "&nbsp;online"
			c = "&nbsp;says:"	
			break;
		case "es":
		case "th":
			txt.push("Realmente me encantan las pollas! Quieres compartir la tuya conmigo");
			txt.push("Hola beb&eacute;! Ven a verne en mi doble penetraci&ocirc;n! Empiezo en 2 minutos!");
			txt.push("Soy una chica muy mala! Ven a castigarme");
			txt.push("Hola! Listo para un poco de sexo caliente?");
			txt.push("Nunca vas a adivinar lo que estoy a punto de empujarme en el co&ntilde;o! Haz clic para ver!");
			txt.push("Haz clic aqu&iacute; para que veas como me cogen!");
			txt.push("Listo para que te chupen la polla? Tengo hambre");
			txt.push("Una chica que se corre y su consolador en directo! CUIDADO! Ella moja todo lo que se ponga en frente!");
			txt.push("Co&ntilde;o rasurado a punto de recibir la visita de su gran consolador en directo! Solo faltas t&uacute;!");
			txt.push("Elije cualquier objeto y elije cualquiera de mis orificios! R&aacute;pido! ");
			txt.push("Me estoy penetrando el culo con un dildo del tama&ntilde;o de un caballo! Ven a verme! ");
			txt.push("Mi amiga y yo estamos buscando una buena polla que chupar! Quieres venir a ayudarnos?");
			txt.push("Ven a penetrarme el culo ya mismo! Necesito que me cojan!");
			txt.push("Me estoy ensartando el co&ntilde;o con muchos dildos, como una verdadera perra. Quieres verme?");
			txt.push("Adicta al semen busca una polla para succionar! Haz clic ac&aacute; si eres quien ando buscando!");
			txt.push("Me estoy castigando ambos orificios EN VIVO, solo para darte placer! ");
			txt.push("Culito apretadito se estira a m&aacute;s no poder con un dildo GIGANTE, EN VIVO !");
			txt.push("Hola! Tengo 31 cm de placer al lado m&iacute;o para darme placer. Por donde lo meto primero:  co&ntilde;o, culo o boca?");
			txt.push("Me estoy dilatando el culo y me lo penetro solamente para que tu veas como lo hago!");
			txt.push("Te juro que ser&eacute; tan sumisa como pueda, si me prometes que me vas a meter todo en el co&ntilde;o !");
			
			a = "&nbsp;esta"
			b = "&nbsp;en vivo"
			c = "&nbsp;dice:"
			break;
		case "ar":
		case "fg":
			txt[1] ="Je m&#39;appr&ecirc;te &agrave; savourer le jus de couille de mon copain ! Viens nous mater en direct!";
			txt[2] ="Je me prends une avalanche de foutre au fond du cul pour ton plaisir ! Viens vite voir !";
			txt[3] ="Clique ici pour assister &agrave; une bonne sodomie profonde !";
			txt[4] ="On se bouffe mutuellement le cul, et tu choisis qui se fait enculer ! Fais vite !";
			txt[5] ="Dilatation anale et bourrage de gueule en direct ! Viens voir notre show extrême !";
			break;
		case "af":
			txt[1] ="I&#39;m about to taste the cum of my boyfriend! Come watch us live!";
			txt[2] ="Wanna see a fat load of cum in my ass? Click here now!";
			txt[3] ="Click here to see my ass getting deeply fucked!";
			txt[4] ="We&#39;re eating each other&#39;s ass, and you get to choose who&#39;s getting fucked! Click here!";
			txt[5] ="Heavy duty anal gaping and mouthful! Come see our extrem show now!";
			break;
		case "az":
			txt[1] ="Estoy listo para saborear los juguitos de mi compañero! Ven a vernos en directo!";
			txt[2] ="Me van a llenar el culo con toneladas de leche, para que goces! Ven a verme r&aacute;pido !";
			txt[3] ="Haz clic aqu&iacute; si quieres vernos en una sodom&iacute;a animal !";
			txt[4] ="Nos comemos los culos al mismo tiempo, y tu eres quien dice quien coge a quien ! Ven r&aacute;pido !";
			txt[5] ="Dilataci&oacute;n del culo y cogida bestial en vivo ! Ven a ver nuestro mega show !";
			break;
		case "be":
			txt[1] ="Tu veux savoir s&#39;il va revenir ? Viens me consulter en direct par webcam maintenant !";
			txt[2] ="Viens d&eacute;couvrir ce que l&#39;avenir r&eacute;serve &agrave; ton couple ! Consulte-moi en direct maintenant !";
			txt[3] ="Des questions sur l&#39;AMOUR, l&#39;ARGENT ou la CARRI&Egrave;RE ? Viens trouver tes r&eacute;ponses en direct !";
			txt[4] ="Tu auras bient&ocirc;t une promotion ! Le tarot de Marseille ne ment pas ! Clique pour en savoir plus !";
			txt[5] ="Mon oracle de Belline pr&eacute;dit un changement dans ta vie amoureuse ! Clique pour en savoir plus !";
			txt[6] ="Tu cherches la signification de ton r&ecirc;ve ? Clique ici ! Je vais l&#39;interpr&eacute;ter en direct par webcam !";
			txt[7] ="Tu connaitras bient&ocirc;t l&#39;amour si j&#39;en crois mon Pendule ! Consulte-moi maintenant pour plus de d&eacute;tails !";
			txt[8] ="Tu cherches les r&eacute;ponses &agrave; tes questions ? Fais confiance au Tarot ! Consulte-moi en direct maintenant !";
			txt[9] ="Ne vis plus dans l&#39;angoisse du doute ! Viens me consulter en direct par webcam maintenant !";
			txt[10] ="Tu veux prendre les devants sur ton avenir ? Viens voir ce qu&#39;il te r&eacute;serve ! Clique ici !";
			break;
		case "bg":
			txt[1] ="Want to know if he&#39;ll come back? Consult me now! Private psychic reading session by webcam!";
			txt[2] ="Come see what the future has in store for your couple! Private psychic reading session by webcam!";
			txt[3] ="Questions about LOVE, MONEY or CAREER? Find the answers now! Psychic reading session by webcam!";
			txt[4] ="You will soon get a promotion! The Tarot of Marseilles doesn&#39;t lie! Click here to learn more!";
			txt[5] ="My Belline oracle is predicting a change in your love life! Click here to learn more!";
			txt[6] ="Want to know the signification of a dream? Consult me now! I&#39;ll interpret it live via webcam!";
			txt[7] ="My pendulum tells me you will soon fine love! Consult me now for more details!";
			txt[8] ="You want to find the answers to your questions? Trust the Tarot of Marseilles! Consult me now!";
			txt[9] ="Stop living in the fear of doubt! Consult me now! Private psychic reading session by webcam!";
			txt[10] ="Want to take the lead of your life? Come find what the future has in store for you! Click here!";
			break;
		case "cs":
			txt[1] ="Quieres sabes si va a volver? Ven a consultarme en directo por webcam ahora!";
			txt[2] ="Ven a descubrir que es lo que el destino reparar&aacute; a tu pareja ! Cons&uacute;ltame en vivo ahora !";
			txt[3] ="Preguntas con respecto al AMOR, DINERO O PROFESION ?Ven a descubrir las respuestas en directo !";
			txt[4] ="Pronto ser&aacute;s promovido ! El Tarot de Marsella nunca miente ! Haz clic aqu&iacute; para saber m&aacute;s !";
			txt[5] ="Mi or&aacute;culo de Belina predice un cambio en tu vida amorosa ! Haz clic aqu&iacute; para saber m&aacute;s !";
			txt[6] ="Buscas un significado a tus sue&ntilde;os? Haz clic aqu&iacute; ! Voy a interpretar tus sue&ntilde;os en directo por webcam !";
			txt[7] ="Seg&uacute;n mi P&eacute;ndulo conocer&aacute;s pronto el amor ! Cons&uacute;ltame ya mismo para saber m&aacute;s detalles !";
			txt[8] ="Buscas respuestas a tus preguntas? Conf&iacute;a en el Tarot ! Cons&uacute;ltame ahora en directo !";
			txt[9] ="No vivas m&aacute;s en la angustia de la duda! Ven a consultarme en directo por webcam ahora!";
			txt[10] ="Quieres saber que pasar&aacute; en tu futuro? Ven a ver qu&eacute; es lo que te espera ! Haz clic aqu&iacute; !";
			break;
	}

	// Noms
	switch (configs.langue.toLowerCase())
	{
		case "fr":
		case "fl":
		case "fs":
		case "ql":
		case "en":
		case "es":
		case "ta":
		case "ft":
		case "te":
		case "th":
			nom.push("&nbsp;Animaljolie");
			nom.push("&nbsp;Christinex");
			nom.push("&nbsp;Denali");
			nom.push("&nbsp;Emori");
			nom.push("&nbsp;HotDonna");
			nom.push("&nbsp;Karmela");
			nom.push("&nbsp;Natiblondy");
			nom.push("&nbsp;SweetyLatina");
			nom.push("&nbsp;Tayapearl");
			break;
		case "ar":
		case "fg":
		case "af":
		case "az":
			nom[1] ="&nbsp;Laurent"
			nom[2] ="&nbsp;Johan"
			nom[3] ="&nbsp;Philippe"
			nom[4] ="&nbsp;Michel"
			nom[5] ="&nbsp;Vincent"
			nom[6] ="&nbsp;Sam"
			nom[7] ="&nbsp;Yannick"
			nom[8] ="&nbsp;Jerome"
			nom[9] ="&nbsp;David"
			nom[10] ="&nbsp;Cyrille"
			break;
		case "be":
		case "bg":
		case "cs":
			nom[1] ="&nbsp;Balmolock"
			nom[2] ="&nbsp;Althea"
			nom[3] ="&nbsp;Balmolock"
			nom[4] ="&nbsp;Affton"
			nom[5] ="&nbsp;Morganas"
			nom[6] ="&nbsp;Stella"
			nom[7] ="&nbsp;OchMael"
			nom[8] ="&nbsp;Philipplunar"
			nom[9] ="&nbsp;Carlotta"
			break;
	}

	// Vidéos
	switch (configs.langue.toLowerCase())
	{
		case "fr":
		case "fl":
		case "fs":
		case "ql":
		case "en":
		case "es":
		case "ta":
		case "ft":
		case "te":
		case "th":
			movie.push('swf/1.swf');
			movie.push('swf/2.swf');
			movie.push('swf/3.swf');
			movie.push('swf/4.swf');
			movie.push('swf/5.swf');
			movie.push('swf/6.swf');
			movie.push('swf/7.swf');
			movie.push('swf/8.swf');
			movie.push('swf/9.swf');
			break;
		case "ar":
		case "fg":
		case "af":
		case "az":
			movie.push('swf/1g.swf');
			movie.push('swf/2g.swf');
			movie.push('swf/3g.swf');
			movie.push('swf/4g.swf');
			movie.push('swf/5g.swf');
			movie.push('swf/6g.swf');
			movie.push('swf/7g.swf');
			movie.push('swf/8g.swf');
			movie.push('swf/9g.swf');
			movie.push('swf/10g.swf');
			break;
		case "be":
		case "bg":
		case "cs":
			movie.push('swf/1v.swf');
			movie.push('swf/2v.swf');
			movie.push('swf/3v.swf');
			movie.push('swf/4v.swf');
			movie.push('swf/5v.swf');
			movie.push('swf/6v.swf');
			movie.push('swf/7v.swf');
			movie.push('swf/8v.swf');
			movie.push('swf/9v.swf');
			break;
	}

	// RANDOM
	var contentUrl = "http://content." + configs.domain + ".com/Toaster2011/";
	var rndTxt = txt[Math.round((Math.random()*(txt.length - 1)))];
	var rndNom = nom[Math.round((Math.random()*(nom.length - 1)))];
	var rndMov = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="128" height="90" style="margin-left:10px;"><param name="movie" value="||VIDEO||" /><param name="wmode" value="opaque" /><!--[if !IE]>--><object type="application/x-shockwave-flash" data="||VIDEO||" width="128" height="90"><param name="wmode" value="opaque" /><!--<![endif]--><!--[if !IE]>--></object><!--<![endif]--></object>'.split("||VIDEO||").join(contentUrl + movie[Math.round((Math.random()*(movie.length - 1)))]);
	
	document.getElementById('performer').innerHTML = rndNom + c;
	document.getElementById('message').innerHTML = rndTxt;
	document.getElementById('namePitch').innerHTML = rndNom + a;
	document.getElementById('status').innerHTML = b;
	document.getElementById('video').innerHTML = rndMov;
}
function startAnimation(configs)
{
	// Définition des variables d'animation
	THE_ELEMENT = document.getElementById('dialogue');
	
	MAX_HEIGHT = 168;
	MIN_HEIGHT = 0;
	CURRENT_HEIGHT = 0;
	OFFSET_HEIGHT = 10;	
	IS_SLIDING = false;
	
	FADE_DURATION = 1200;
	FADE_STEPS = 40;
	
	DELAY_CLOSE = configs.closeDelay;
	DELAY_OPEN = configs.openDelay;
	
	setTimeout("Slide()", DELAY_OPEN);
	setTimeout("fadeIn()", DELAY_OPEN);
}

function Slide()
{
	if (IS_SLIDING) { return; }
	IS_SLIDING = true;
	
	if (CURRENT_HEIGHT == MAX_HEIGHT)
	{
		THE_SLIDER = setInterval('SlideUpRun()', 30);
	}
	else
	{
		THE_SLIDER = setInterval('SlideDownRun()', 30);
	}
}
function SlideUpRun()
{
	if (CURRENT_HEIGHT <= MIN_HEIGHT)
	{
		clearInterval(THE_SLIDER);		
		IS_SLIDING = false;
		
		CURRENT_HEIGHT = MIN_HEIGHT;
	}
	else
	{
		CURRENT_HEIGHT -= OFFSET_HEIGHT;
		if (CURRENT_HEIGHT < MIN_HEIGHT)
		{
			CURRENT_HEIGHT = MIN_HEIGHT;
		}
	}
	
	THE_ELEMENT.style.height = CURRENT_HEIGHT + 'px';
}
function SlideDownRun()
{
	if(CURRENT_HEIGHT >= MAX_HEIGHT)
	{
		clearInterval(THE_SLIDER);
		IS_SLIDING = false;
		
		CURRENT_HEIGHT = MAX_HEIGHT;
		
		THE_SLIDER = setTimeout("Slide()", DELAY_CLOSE);
	}
	else
	{
		CURRENT_HEIGHT += OFFSET_HEIGHT;
		if(CURRENT_HEIGHT > MAX_HEIGHT)
		{
			CURRENT_HEIGHT = MAX_HEIGHT;
		}
	}
	
	THE_ELEMENT.style.height = CURRENT_HEIGHT + 'px';
}

function fadeIn()
{
	for (i = 0; i <= 1; i += (1 / FADE_STEPS))
	{
		i = Math.round(i*100)/100;
		setTimeout("setOpacity(" + i + ")", i * FADE_DURATION);
	}
	
	setTimeout("setOpacity(1.0)", 1 * FADE_DURATION);
	
	setTimeout("fadeOut()", DELAY_CLOSE + 500);
}
function fadeOut()
{
	for (i = 0; i <= 1; i += (1 / FADE_STEPS))
	{
		i = Math.round(i*100)/100;
		setTimeout("setOpacity(" + (1 - i) + ")", i * FADE_DURATION);
	}
	
	setTimeout("setOpacity(0)", 0);
	
	setOpacity(1);
}
function setOpacity(level)
{
	THE_ELEMENT.style.opacity = level;
	THE_ELEMENT.style.MozOpacity = level;
	THE_ELEMENT.style.KhtmlOpacity = level;
	THE_ELEMENT.style.filter = "alpha(opacity=" + (level * 100) + ");";
}
// ----------------------------------------------------------
