/***
 * JS des annonces (pager)
***/

// Vars ------------------//
var annonceArea;
var annonceRange = 1;

// Init :
function initAnnonce()
{
		annonceArea = document.getElementById( 'annoncesCC' );
	setAnnoncesHtml();
}

function setAnnoncesHtml( pg )
{
	if( pg )
	{
		annonceRange = pg;
	}
	
	var html = document.getElementById( 'annoncesRange_'+annonceRange ).innerHTML;
	annonceArea.innerHTML = html;
}

// Affiche les prochains profils :
function nextRange()
{
	if( annonceRange < nbAnnonces )
	{
		annonceRange++;
		setAnnoncesHtml();
	}
	else
	{
		document.location = "http://annonces-sexy.sexy.easyrencontre.com/u_inscription.php";
	}
}

// Affiche les precedents profils :
function prevRange()
{
	if( annonceRange > 1 )
	{
		annonceRange--;
		setAnnoncesHtml();
	}
}

function getRange( pg )
{
}

// affiche l'icone de chargement :
function waitIco()
{
	AC_FL_RunContent
	(
		'codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0',
		'width','14',
		'height','14',
		'movie' , '/flash/wait',
		'src' , '/flash/wait',
		'quality','high',
		'name', 'wait_fl',
		'id', 'wait_fl',
		'menu', 'false',
		'pluginspage','http://www.macromedia.com/go/getflashplayer'
	); //end AC code
}
