 
function scroller(){
	var ele=$(document.body);
	var g=(ele.getStyle('height')); g= g.toInt() -1100;
var myFx = new Fx.Scroll(window).start(0,g.toInt());
}
			 
window.addEvent('load', function() {
window.scrollTo(0,0); 				 
var starttd=0;
tryer = function(){
var hub = $('hub2');
 hub.setStyle('visibility', 'visible');
 var pictures = $$('body img');//$$('tDataImage' img');//00FF66
 texty = $$('body td font');arText=[];
 
  
//  document.body.setStyle('background-color', '#cccccc');
 texty.each(function(items,index){
	var gString=items.get('html');gString.clean()
  arText[index] = gString;
 });
hub.empty();//alert(arText);
 

paperWidth =3050;//((841-margin)*28.346)/10;alert(paperWidth);2939
counter=0;count=0;arImages=[];arnewImages=[];var rowWidth= 0; extent=starttd;extentImg=0;n=0;



	pictures.each(function(items,index){
	 var d =items.get('height'); 
	 var e=items.get('alt'); var src=items.get('src'); var f =items.get('width'); 
	if((d>1) &&(e==null)&&(counter<=1000)&&(d!=26) ){
	 
	 curItem = items;
	 arImages[count] = items;
	 count++; counter++;  
	 }else{ }
	//items.inject('hub', 'bottom');
	});//end of pictures each

count=3;





b= arImages.length-1 ;
for(var a=0; a<=b; a++){
     var c= arImages[a];var j = c.get('width');var ih = c.get('height');
	 c.set('width', j*0.5);
	 c.set('height', ih*0.5);
	 var w = c.get('width');
 	 var z = (w).toInt();rowWidth+=100;
	 if (a==0){
lastEl = $('hub');h='bottom';
}else{
	if(rowWidth>paperWidth){rowWidth=0;rowWidth+=100;
	// var br = new Element('br');
//	 if ((n%2)==0){var h = 'top';}else{var h = 'before';};
	 //br.set('id','br'+n);
	//  var xx =br.inject('hub','bottom');
	 lastEl = 'hub';
	 h='bottom';
    }else{ h='before';}
}//this is the if else for a==0
	 //alert('');
	// c.set('src','spacer.gif');
	 var textinsert =texty[a].attributes[0].value; c.set('alt',a);var s=(a).toInt();
	 if(((s%20)==0)&&(s!=0)){count+=4; } 
	 textinserts =arText[count]; 
	  
	 var abc = /<b>...<\/b>/g;
	 textinserts=textinserts.replace(abc,"&hellip;","gi");
	 var ab=textinserts.indexOf('[');
	 textinserts=textinserts.replace(abc," ","gi");
	 (ab!=-1)?textinserts= textinserts.substring(0,ab):false; 
	 count+=2;textinserts.trim();
	  
	 var el = new Element('div',{ 
						  'html':'<div id="text-main" style="z-index:20;left:0px;top:0px;position:relative;"></div><div id="dimensions"><p><strong>'+a+'</strong>.'+'<span style="text-transform:none;">'+textinserts+'</span><br/> </p></div>' ,
						    		'styles':{
			'height':Math.round(c.get('height'))+'px',
			'background-color':'#ffffff',
			'margin':'0 1px 50px 15px','text-align':'center',
			'display':'inline-block', 
			'vertical-align':'bottom','padding':0,
			 
		}
	});
	 
	  var elinside = new Element('div',{
						  'html': '',
						    		'styles':{
		'z-index':10,
			 'opacity':1,'position':'absolute','margin-left':-2,
		}
	});
	 
	 var x =el.inject(lastEl,h); var xx =elinside.inject(x,'top');var xxx =c.inject(xx,'top');
	 lastEl = x;	 
};
};// tryer function end
 tryer();
}); 
