$(function() {

	$('.target_blank, .blank, .external, .spip_out, .spip_mail').attr('target','_blank');

	$('.spip_in').each(function(){

		var href = $(this).attr('href');

		switch( href.substr(-4,4) ){
			case '.doc':
			case '.pdf':
			case '.png':
			case '.jpg':
			case '.gif':
			case '.psd':
			case '.ai':
				$(this).attr('target','_blank');
				break;
		}

		switch( href.substr(-3,3) ){
			case '.ai':
				$(this).attr('target','_blank');
				break;
		}

	});

});

$( document ).ready(function () {

	/**********************************************************/
	$(function() { //

		$('#popup_newsletter_link, #content .popup_newsletter_link').click(function(){
			var	href = $(this).attr('href');
			hs.lang.closeText = '';
			hs.htmlExpand(this,{
				objectType			: 'iframe',
				src					: href,
				numberPosition		: '',
				width				: 630,
				height				: 350,
				outlineType			: null,
				wrapperClassName	: 'popup_newsletter_link',
				resizeTo			: null,
				cacheAjax			: false
			});
			return false;
		});

	});// end ::
	/**********************************************************/


});

/*
$( window ).load(function () {

	if( !$.browser.msie || ($.browser.msie && $.browser.version > 7) ){
		$('#navigation li.lv1 ul:first').corner("bottom");
	}

});
*/






