var 	wWidth, width, height;
function howWide() {

	if (self.innerHeight) // all except Explorer
	{
		wWidth = self.innerWidth;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		wWidth = document.documentElement.clientWidth;
	}
	else if (document.body) // other Explorers
	{
		wWidth = document.body.clientWidth;
	}

	if( wWidth < 1000) { 
		width = 105; 
		height = 150;
	} else { 
		width = 175; 
		height = 250;
	} 
}

function imagine(image,alt) {
	if (typeof(width) == "undefined") { howWide(); }
	var img = '<img src="images/' + height + '/' + image + '" "';
	img += 'alt="' + alt + '" width="'+ width + '" height="' + height + '" border="0" vspace="10">';
	document.write(img);
}
