


$(document).ready(function() {
	$('.dob select, .country select, .title select').selectbox(); // Nice drop downs on the sign up
	$("#slider").easySlider(); // Ad campaign slider
	$('.addownload .text').adrollup('.adrollup'); // Ad campaign download rollup
	$('.chooselanguage .text2').adrollup2('.adrollup2'); //Language rollup
	
});





jQuery.fn.adrollup = function(sliding) {
	$(this).hover(function(){
			$(this).find(sliding).stop().animate({height:'95px',opacity: '0.9'},400);
	},function () { 
		$(this).find(sliding).stop().animate({height:'0',opacity: '0'}, 400);
	});
}   

// Choose a language
jQuery.fn.adrollup2 = function(sliding) {
	$(this).hover(function(){
			$(this).find(sliding).stop().animate({width:'120px',opacity: '0.9'},200);
	},function () { 
		$(this).find(sliding).stop().animate({width:'0',opacity: '0'}, 800);
	});
}   

// Product overlays
function showProductOverlay(_productName) { 
	tb_show('blablabla', '#TB_inline?inlineId=overlay&height=552&width=1011'); // called from the flash to trigger the showing of the overlay
}
function hideProductOverlay(_productName) { 
	tb_remove(); // called from the flash to trigger the hiding of the overlay
}

		$(function(){
		    $('a.newWin').click(function(){
		        window.open(this.href);
		        return false;
		    });
		});		


$(document).ready(function() {
	$(".chooselanguage .rollupcontainer .adrollup2").attr("style","top:0px; display:none;");
	
});

