$(function() {
    // run this when the HTML is done downloading

var newsoption1 = {
firstname: "mynews",
secondname: "showhere",
thirdname:"news_display",
fourthname:"news_button",
playingtitle:"En cours:",
nexttitle:"Prochain:",
prevtitle:"Précédent:",
newsspeed:'8000',
effectis:'0'
}
$.init_news(newsoption1);

var myoffset=$('#news_button').offset();

var mytop=myoffset.top-1;

$('#news_button').css({top:mytop});

var questoption1 = {
firstname: "myquest",
secondname: "showherequest",
thirdname:"quest_display",
fourthname:"news_button",
playingtitle:"En cours:",
nexttitle:"Prochain:",
prevtitle:"Précédent:",
newsspeed:'8000',
effectis:'0'
}
$.init_news(questoption1);
    
    
    $(".links_carousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        visible : 4,
    		auto: 4000,
    		speed: 1000
    });    



});

function CityOffers(incity) {
   $("#inpCity").val(incity);

}	

function efface(form,name,second,texte,texte_second)
{
eval ( that = window.document [form] [name]);
if (that.value == texte )
{
that.value = '';
if (that.className == 'upper_login_login')
{ that.className = 'upper_login_login2';}
	eval( that = window.document [form] [second]);
		if (that.value == texte_second ) {
			that.value='';
		}
}
else return false;
}

function RegOffers(inreg_id) {
	$("#inpRegion").val(inreg_id);
	$("#inpWithInter").val('N');
}	

function CityOffers(incity) {
   $("#inpCity").val(incity);
	$("#inpWithInter").val('N');
}	
