$.fn.extend({
	dropIn: function(speed, callback) {
		var $t = $(this);
	
		if($t.css("display") == "none") {
			eltop = $t.css('top');
			elouterHeight = $t.outerHeight(true);
	
			$t.css({ top: -elouterHeight, display: 'block' }).animate({ top: eltop },speed,'swing', callback);
		}
	}
});

function popup(txt) { 
	switch(txt) {
		case 'color':
txt = '<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="700" height="500">';
txt += '	<param name="movie" value="fr_jeux_en_ligne/coloriage/coloriage.swf" />';
txt += '	<param name="quality" value="high" />';
txt += '	<param name="wmode" value="opaque" />';
txt += '	<param name="swfversion" value="6.0.65.0" />';
txt += '	<!--[if !IE]>-->';
txt += '	<object type="application/x-shockwave-flash" data="fr_jeux_en_ligne/coloriage/coloriage.swf" width="700" height="500">';
txt += '		<!--<![endif]-->';
txt += '		<param name="quality" value="high" />';
txt += '		<param name="wmode" value="opaque" />';
txt += '		<param name="swfversion" value="6.0.65.0" />';
txt += '		<div>';
txt += '			<h4>Le contenu de cette page nécessite une version plus récente d’Adobe Flash Player.</h4>';
txt += '			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtenir le lecteur Adobe Flash" width="112" height="33" /></a></p>';
txt += '		</div>';
txt += '		<!--[if !IE]>-->';
txt += '	</object>';
txt += '	<!--<![endif]-->';
txt += '</object>';
			$.prompt(txt,{ show:'dropIn' })
		break;
		case 'cow':
txt = '<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">';
txt += '	<param name="movie" value="fr_jeux_en_ligne/vache_attack/bad_cows.swf" />';
txt += '	<param name="quality" value="high" />';
txt += '	<param name="wmode" value="opaque" />';
txt += '	<param name="swfversion" value="6.0.65.0" />';
txt += '	<!--[if !IE]>-->';
txt += '	<object type="application/x-shockwave-flash" data="fr_jeux_en_ligne/vache_attack/bad_cows.swf" width="640" height="480">';
txt += '		<!--<![endif]-->';
txt += '		<param name="quality" value="high" />';
txt += '		<param name="wmode" value="opaque" />';
txt += '		<param name="swfversion" value="6.0.65.0" />';
txt += '		<div>';
txt += '			<h4>Le contenu de cette page nécessite une version plus récente d’Adobe Flash Player.</h4>';
txt += '			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtenir le lecteur Adobe Flash" width="112" height="33" /></a></p>';
txt += '		</div>';
txt += '		<!--[if !IE]>-->';
txt += '	</object>';
txt += '	<!--<![endif]-->';
txt += '</object>';
			$.prompt(txt,{ show:'dropIn' })
		break;
		case 'solitaire':
txt = '<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400">';
txt += '	<param name="movie" value="fr_jeux_en_ligne/solitaire/solitaire.swf" />';
txt += '	<param name="quality" value="high" />';
txt += '	<param name="wmode" value="opaque" />';
txt += '	<param name="swfversion" value="6.0.65.0" />';
txt += '	<!--[if !IE]>-->';
txt += '	<object type="application/x-shockwave-flash" data="fr_jeux_en_ligne/solitaire/solitaire.swf" width="550" height="400">';
txt += '		<!--<![endif]-->';
txt += '		<param name="quality" value="high" />';
txt += '		<param name="wmode" value="opaque" />';
txt += '		<param name="swfversion" value="6.0.65.0" />';
txt += '		<div>';
txt += '			<h4>Le contenu de cette page nécessite une version plus récente d’Adobe Flash Player.</h4>';
txt += '			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtenir le lecteur Adobe Flash" width="112" height="33" /></a></p>';
txt += '		</div>';
txt += '		<!--[if !IE]>-->';
txt += '	</object>';
txt += '	<!--<![endif]-->';
txt += '</object>';
			$.prompt(txt,{ show:'dropIn' })
		break;
		default: $.prompt(txt,{ show:'dropIn' }); break;
	}
}

$(function() { $('#nav').droppy(); });