  if (MNP.Browser.script) {
    function popuphideE(e){
      Event.element(e).style.display="none";
    }
    function popup(e){
      var el = Event.element(e);
        var id = el.id+"p";
        var elpop=$(id);
        if (!elpop) {
          elpop = $E("div",{id:id,parentNode:el.parentNode});
          Event.observe(elpop,'click',popuphideE);
        }
        elpop.style.display="";


    }
  
	Event.observe("comparestandard2","click",showPhotos);
	Event.observe("hero_image","click",function(){
		showPhotosByType("standard");
	});
	Event.observe("comparefeatures","click",showFinePrint);		
  }

 function showFinePrint(e) {
     Event.stop(e);
	 var features = $("features").cloneNode(true);
	 features.id="";
     Mbox.show(features,{className:"abox",closer:true,screen: {cancel: true,opacity: .35},s_class: "smoke", autoSize:1});
 }
  
 function showPhotos(e) {
	
   Event.stop(e); 
   var lnk = Event.findElement(e,"a");
   
   var type = lnk.rel;

	showPhotosByType(type);
   

 
 }
 function showPhotosByType(type) {
	  	var el = $E("div",{className:"photoz"});
	Mbox.show(el,{className:"abox",closer:true,screen: {cancel: true,opacity: .35},s_class: "smoke", autoSize:1});
   
   
   var head = $E("h2", {parentNode:el, text: type + " Photos"});
   
   var defimg = $E("img", {className:"defimg", parentNode:el});
   defimg.src = photos.root+photos[type][0];
   
   var container = $E("div",{className:"photoc", parentNode:el});
   var pt = photos[type];
   for (imgsrc in pt) {
	   		var imageSourceString = photos[type][imgsrc];
		   if (typeof imageSourceString !== 'function' && typeof imageSourceString !== 'object') {
	   var img = $E("img",{parentNode: container});
		   img.src = photos.root+photos[type][imgsrc];
		   		   img.src = photos.root+photos[type][imgsrc];

		   Event.observe(img, "mouseover", function(ev){
				var curel = Event.element(ev);
				defimg.src = curel.src;
		   });
	}
   } 
 }
 