// JavaScript Document


// When ready.
Event.observe(document, 'dom:loaded', function(event) {



    // Layouting inline li images
    var nbImg = $$('#images_pro ul li').length;
    liWidth = (parseInt(100 / nbImg) - 1) + '%';
    $$('#images_pro ul li').each(function(itm) {
        itm.setStyle({ width: liWidth });
    });


    // Exclude framesetting
    if (window != top) { top.location = window.location; }


});



/*****************************************************
* popup
* 19/08/2001
*
* Open a simple nice window with url,width and height
* in arguments.
*
* --Sébastien Brémond--
* http://www.tocra.org
*****************************************************/
function openCTKFORMPopup(sURI,sWinName,w,h){
	var FULLSCREEN_const = 'no';
	
	var sh = parseInt(screen.availHeight || screen.width);
	var sw = parseInt(screen.availWidth || screen.height);
	var pH = h;
	var pW = w;
	var hasSB = (arguments.length==5)? arguments[4] :'yes' ;
	return open(sURI,sWinName,'top='+((sh-pH)/2)+',left='+((sw-pW)/2)+',width='+pW+',height='+pH+',scrollbars='+hasSB+',fullscreen='+FULLSCREEN_const);
}
