

function popup_com(url,nom,x,y)
{
window.open (url,nom,'width='+x+',height='+y+',scrollbars=yes,resizable=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes')
}
				
	
function popup_nav(choix) {	window.opener.location=choix;}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}



function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}




var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		m_11_over = newImage("../img_front/ulbook_menu_on_11.gif");
		m_09_over = newImage("../img_front/ulbook_menu_of_09.gif");
		m_07_over = newImage("../img_front/ulbook_menu_of_07.gif");
		m_05_over = newImage("../img_front/ulbook_menu_of_05.gif");
		preloadFlag = true;
	}
}




// FICHIER extract_infos.js
// Script by Jean-Pascal Budliger (Jean-Pascal@CyberBud.com) Lausanne-Suisse (c) 2000
// Please don't remove those lines.

function getVar (nomVariable)
{
var infos = location.href.substring(location.href.indexOf("?")+1, location.href.length)+"&"
if (infos.indexOf("#")!=-1)
infos = infos.substring(0,infos.indexOf("#"))+"&"
var variable=0
{
nomVariable = nomVariable + "="
var taille = nomVariable.length
if (infos.indexOf(nomVariable)!=-1)
variable = infos.substring(infos.indexOf(nomVariable)+taille,infos.length).substring(0,infos.substring(infos.indexOf(nomVariable)+taille,infos.length).indexOf("&"))
}
return variable
} 





/* bloc portefolio */

function portefolio(book_nb, book_url, book_txt, book_cont, book_type, book_img_rep) {
var chaine='';

chaine+=	'<table border="0" cellspacing="0" cellpadding="0" width="408">';
chaine+=	'<tr>';
chaine+=	'<td><img src="../img_front/ub_cart2_' + book_type + '.gif" alt="'+book_type+'" width="279" height="24" border="0"></td>';
chaine+=	'</tr>';
chaine+=	'<tr>';
chaine+=	'<td><img src="../img_front/ub_cart2_haut' + ((book_type=='ultrasel')?'_b':'') + '.gif" alt="'+book_type+'" width="408" height="22" border="0"></td>';
chaine+=	'</tr>';

chaine+=	'<tr>';
chaine+=	'	<td bgcolor="'+ ((book_type=='ultrasel')?'#1e1e1e':'#F0F0F0') +'">';


/*rss*/
if (book_txt && book_type == 'book_txt_blog') {
chaine+=	'	<ul id="rss_content_home">';
chaine+=		book_txt;			
chaine+=	'	</ul>';
chaine+=	'	<br>';
}
/*txt*/
else if (book_txt) {
chaine+=	'	<ul id="portefolio">';
chaine+=		book_txt;			
chaine+=	'	</ul>';
chaine+=	'	<br>';
}


/* book */
if (book_cont) {
chaine+=	'	<ul id="portefolio">';
for(var i=0; i<book_cont.length && i<book_nb; i++){

chaine+=	'<li style="margin-bottom:		-5px ;">';
chaine+=	'<a href="../mini_book_demo/mini_book_ajax_proxy.php?user='+book_url+book_cont[i]['id']+'" rel="facebox" title="Mini-Book" class="item_tooltip">\
<img src="'+book_img_rep+'/'+book_cont[i]['img']+'" alt="'+book_cont[i]['alt']+'" width="50" height="50" border="1"/>\
<div class="tooltip_description"><div class="tooltip_gris">'+book_cont[i]['alt']+'</div></div>\
</a>';




/* new */
if 		(book_cont[i]['new'] > -40 ) 	{ chaine += '<img src="../img_front/ub_portefolio_new.gif" style="clear: both;"/>'; }
else if (book_cont[i]['new'] > -50 ) 	{ chaine += '<img src="../img_front/ub_portefolio_new_b.gif" style="clear: both;"/>';}
else 									{ chaine += '<img src="../img_front/ub_portefolio_new_c.gif" style="clear: both;"/>';	}


chaine+=	'</li>';
}
chaine+=	'		</ul>';
}
if (book_type != 'book_txt_zoom' && i > 30 && !getVar('cat')) {
chaine+=	'		<br clear="all"/><div style="padding:16px;padding-left:30px"><a href="action.php?page_type=home&amp;cat='+book_type+'">Voir tous les books selectionn&eacute;s</a></div>';
}
chaine+=	'		</td>';
chaine+=	'	</tr>';
chaine+=	'	<tr>';
chaine+=	'		<td><img src="../img_front/ub_cart2_bas' + ((book_type=='ultrasel')?'_b':'') + '.gif" alt="'+book_type+'" width="408" height="20" border="0"></td>';
chaine+=	'	</tr>';
chaine+=	'	</table>';
chaine+=	'	<br>';

return chaine;
}