rem: if (document.getElementsByName('image')[0].width<(window.innerWidth)) { ratio=(window.innerWidth)/document.getElementsByName('image')[0].width; document.getElementsByName('image')[0].width=(window.innerWidth); document.getElementsByName('image')[0].height=document.getElementsByName('image')[0].height*ratio; document.getElementsByName('height_table')[0].height=document.getElementsByName('image')[0].height*ratio; document.getElementsByName('height_table')[1].height=document.getElementsByName('image')[0].height*ratio; } else { ratio=(window.innerHeight)/document.getElementsByName('image')[0].height; document.getElementsByName('image')[0].height=(window.innerHeight); document.getElementsByName('image')[0].width=document.getElementsByName('image')[0].width*ratio; document.getElementsByName('height_table')[0].Height=(window.innerHeight); document.getElementsByName('height_table')[1].Height=(window.innerHeight); } 
add:  ratio=(window.innerWidth)/document.getElementsByName('image')[0].width; document.getElementsByName('image')[0].width=(window.innerWidth); document.getElementsByName('image')[0].height=document.getElementsByName('image')[0].height*ratio; document.getElementsByName('height_table')[0].height=document.getElementsByName('image')[0].height*ratio; document.getElementsByName('height_table')[1].height=document.getElementsByName('image')[0].height*ratio; 
context: function imageSize(size){	if (size==0)	{				document.getElementsByName('image')[0].width=width;		document.getElementsByName('image')[0].height=height;	}	else	{		if ((window.innerWidth-document.getElementsByName('image')[0].width)>(window.innerHeight-document.getElementsByName('image')[0].height))		{			if (document.getElementsByName('image')[0].height<(window.innerHeight))			{				ratio=(window.innerHeight)/document.getElementsByName('image')[0].height;				document.getElementsByName('image')[0].height=(window.innerHeight);				document.getElementsByName('height_table')[0].height=(window.innerHeight);				document.getElementsByName('height_table')[1].height=(window.innerHeight);				document.getElementsByName('image')[0].width=document.getElementsByName('image')[0].width*ratio;			}			else			{				ratio=(window.innerWidth)/document.getElementsByName('image')[0].width;				document.getElementsByName('image')[0].width=(window.innerWidth);				document.getElementsByName('image')[0].height=document.getElementsByName('image')[0].height*ratio;				document.getElementsByName('height_table')[0].height=document.getElementsByName('image')[0].height*ratio;				document.getElementsByName('height_table')[1].height=document.getElementsByName('image')[0].height*ratio;			}		}		else		{			if (document.getElementsByName('image')[0].width<(window.innerWidth))			{				ratio=(window.innerWidth)/document.getElementsByName('image')[0].width;				document.getElementsByName('image')[0].width=(window.innerWidth);				document.getElementsByName('image')[0].height=document.getElementsByName('image')[0].height*ratio;				document.getElementsByName('height_table')[0].height=document.getElementsByName('image')[0].height*ratio;				document.getElementsByName('height_table')[1].height=document.getElementsByName('image')[0].height*ratio;			}			else			{				ratio=(window.innerHeight)/document.getElementsByName('image')[0].height;				document.getElementsByName('image')[0].height=(window.innerHeight);				document.getElementsByName('image')[0].width=document.getElementsByName('image')[0].width*ratio;				document.getElementsByName('height_table')[0].Height=(window.innerHeight);				document.getElementsByName('height_table')[1].Height=(window.innerHeight);			}		}	}		}
meta: 8621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8621/180cfcf61ba78e7936efb545d3333b7cd9139a3f/functions.js/clean/phreakpic/templates/standard_black/functions.js