

function item_clicked(evt){
	var child = Event.element(evt);
	//alert('The child node with name=' + child.id + ' was clicked');

switch (child.id)
{
  case "demoV":
    var img = "8_11.gif";
	var imgWidth = "96";
	var imgHeight = "90";
   break;
   
  case "profileV":
    var img = "screen_profil_g.jpg";
	var imgWidth = "96";
	var imgHeight = "90";
    break;

  case "tbl2bordV":
    var img = "screen_tableau_g.jpg";
	var imgWidth = "96";
	var imgHeight = "90";
   break;
   
  case "statV":
    var img = "screen_stat_g.jpg";
	var imgWidth = "96";
	var imgHeight = "90";
    break;

  case "compteV":
    var img = "screen_compte_credit_g.jpg";
	var imgWidth = "96";
	var imgHeight = "90";
   break;
   

  default:
    //Instruction_par_d&eacute;faut
   break;
}
imgWidth = imgWidth*3;
imgHeight = imgHeight*3;
	var winWidth = imgWidth + 20;
	var winHeight = imgHeight +20;


//alert(img);

var win = new Window({className: "alphacube",  width:winWidth, height:winHeight, zIndex: 100, resizable: true, title: '<span style="color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;font-weight:normal;">Agrandissement</span>', showEffect:Effect.BlindDown, hideEffect: Effect.SwitchOff, draggable:true, wiredDrag: true})

win.getContent().innerHTML= '<img src="media/images/prepaSolo/'+img+'" width="'+imgWidth+'" height="'+imgHeight+'" border="0" alt="" style="margin:10px;"/>';

win.showCenter();    
	  

	




	Event.stop(evt); //avoid another call related to 'parent_node' itself
}













function page_loaded(evt) {
	document.getElementsByClassName('prepaSoloVignette').invoke('observe', 'click',item_clicked);

	document.getElementsByClassName('prepasolo2_band').invoke('observe', 'click',function(evt){new Effect.ScrollTo('prepaSoloIntro', {offset: -20,duration : 0.5});Event.stop(evt);});

}
	  
Event.observe(window, 'load', page_loaded, false);