/*
	Air-Box v0.9.2 - Let your breathe your images! 
	(c) 2008 Riccardo Budini  <http://www.provisum-illumina.com>
	MIT-style license.
*/

/*
	Air-Box resizer
*/

window.addEvent('domready', function(){
	airrez();
});


window.onload = airrez;
function airrez()
{
   if (document.getElementsByName)
   {
      for (i=0; i<document.getElementsByTagName('img').length; i++) 
      {
         pic = document.getElementsByTagName('img')[i];
		 
	     if (pic.className == "postimage") 
		 {

        if (pic.width > 400)
         	{
            pic.setAttribute('width','400')
			
	/* Alternative set Width : uncomment these lines if you want to control width relatively to document size. In case you do it, remember to comment 	previous lines (22-24) 

	if (pic.width > (document.width -400))
            {
            pic.setAttribute('width',(document.width -400)) 
			
	End of Alternative set Width			*/
            
            if (document.all) pic.style.cursor = 'hand';
            if (!document.all) pic.style.cursor = 'pointer';
            pic.title = 'Click Here To See Image Full Size ';
         	}
       }
	 }
   }
}

