/*The following code opens up the windows for the images*/

function launch_largeimg(whichone)
{	
	if(whichone==1)
		{
		DynaWin('gal_pic1.jpg', '800', '600', '70', '16', 'FLW Pro, Brett Ehrler (Redlands, CA)');
		}
	if(whichone==2)
		{
		DynaWin('gal_pic2.jpg', '800', '600', '70', '16', 'FLW Pro, Brett Ehrler (Redlands, CA)');
		}
	if(whichone==3)
		{
		DynaWin('gal_pic3.jpg', '800', '600', '70', '16', 'Western Stren Series Pro, Dennis Cleary (Tucson, AZ)');
		}
	if(whichone==4)
		{
		DynaWin('gal_pic4.jpg', '800', '600', '70', '16', 'Western Stren Series Pro, Dennis Cleary (Tucson, AZ)');
		}
	if(whichone==5)
		{
		DynaWin('gal_pic5.jpg', '800', '600', '70', '16', 'Bass Master Elite Series Pro, Mike O\'Shea (Westlake Village, CA)');
		}
	if(whichone==6)
		{
		DynaWin('gal_pic6.jpg', '800', '600', '70', '16', 'Western Stren Series Pro, Gary Key (Phoenix, AZ)');
		}
	if(whichone==7)
		{
		DynaWin('gal_pic7.jpg', '800', '600', '70', '16', '---');
		}
	if(whichone==8)
		{
		DynaWin('gal_pic8.jpg', '800', '600', '70', '16', 'Western Stren Series Pro, Alex Dombrowski (Duvall, WA), boat and trailer');
		}
	if(whichone==9)
		{
		DynaWin('gal_pic9.jpg', '640', '480', '70', '16', '---');
		}
	if(whichone==10)
		{
		DynaWin('gal_pic10.jpg', '800', '600', '70', '16', 'Stren Series Pro, Alex Dombrowski (Duvall, WA)');
		}
	if(whichone==11)
		{
		DynaWin('gal_pic11.jpg', '800', '600', '70', '16', 'FLW Pro, Brett Ehrler (Redlands, CA)');
		}
	
	if(whichone==12)
		{
		DynaWin('gal_pic12.jpg', '800', '600', '70', '16', 'Bass Master Elite Series Pro, Jared Lintner (Arroyo Grande, CA)');
		}
	if(whichone==13)
		{
		DynaWin('gal_pic13.jpg', '800', '600', '70', '16', 'Bass Master Elite Series Pro, Charlie Weyer (West Hills, CA)');
		}
	if(whichone==14)
		{
		DynaWin('gal_pic14.jpg', '800', '600', '70', '16', 'Subway wrap for local Arizona pro');
		}
	if(whichone==15)
		{
		DynaWin('gal_pic15.jpg', '800', '600', '70', '16', 'Western Stren Series Pro, Tom Kilduff (Dewey, AZ)<br>and FLW and Bass Master Elite Pro, John Murray (Phoenix, AZ)');        
		}
	if(whichone==16)
		{
		DynaWin('gal_pic16.jpg', '800', '600', '70', '16', 'Wrap for Berkley on 2006 Dually');
		}
	if(whichone==17)
		{
		DynaWin('gal_pic17.jpg', '800', '600', '70', '16', 'Wrap for Berkley on 2006 Dually');
		}
	if(whichone==18)
		{
		DynaWin('gal_pic18.jpg', '800', '600', '70', '16', 'Western Stren Series Pro, Mike Forslund (Castaic, CA)<br>Mike Forslund promoting LiftOff products and boat wrap at California boat show.');
		}
	if(whichone==19)
		{
		DynaWin('gal_pic19.jpg', '800', '600', '70', '16', 'Western Stren Series Pro, Mike Forslund (Castaic, CA)<br>Mike Forslund promoting LiftOff products and boat wrap at California boat show.');
		}
	if(whichone==20)
		{
		DynaWin('gal_pic20.gif', '439', '260', '70', '16', '---');
		}
	if(whichone==21)
		{
		DynaWin('gal_pic21.gif', '515', '199', '70', '16', '---');
		}
	if(whichone==22)
		{
		DynaWin('gal_pic22.jpg', '500', '237', '70', '16', '---');
		}	
	if(whichone==23)
		{
		DynaWin('newgal_pic1.jpg', '800', '600', '70', '16', '---');
		}
	if(whichone==24)
		{
		DynaWin('newgal_pic2.jpg', '800', '600', '70', '16', '---');
		}
	if(whichone==25)
		{
		DynaWin('newgal_pic3.jpg', '800', '600', '70', '16', '---');
		}
	if(whichone==26)
		{
		DynaWin('newgal_pic4.jpg', '800', '600', '70', '16', '---');
		}
	if(whichone==27)
		{
		DynaWin('newgal_pic5.jpg', '800', '600', '70', '16', '---');
		}
	if(whichone==28)
		{
		DynaWin('newgal_pic6.jpg', '800', '600', '70', '16', '---');
		}
}

/*This function opens a dynamic window with the lenght and width passed to it from the launchpic function, and puts the image inside.
url is the path to the image, w is the width, h is the height, l is the position from left, and t is position from top*/
function DynaWin(url, w, h, l, t, pic_desc)
{
poph = + h + 70;
popw = + w + 0;
l = + l - 50;
t = + t;
//var winX = screen.availWidth - popw - 25;
disp = window.open("","pop","height=" + poph + ",width=" + popw + ",left=" + l + ",top=" + t + "");
content = '<HTML>';
content += '<TITLE>Enlarged Image</TITLE>';
content += '<HEAD>';
//content += '<style type="text/css">';
//content += '<!--';
//content += 'body {color: #000000;}';
//content += '-->';
//content += '</style>';
content += '</HEAD>';
content += '<BODY bgcolor="#002C55" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onBlur="self.close()">';
content += '<P ALIGN="CENTER"><img src="gallery/' + url + '" height="' + h + '" width="' + w + '"></P>';
content += '<P ALIGN="CENTER"><font color="#ffffff"><b>' + pic_desc + '</b></font></P>';
//content += '<H3 ALIGN="CENTER"><A HREF="#" onClick="self.close()">Close Window</A></H3>';
content += '</BODY></HTML>';
disp.document.write(content);
//disp.moveTo(300,200);
disp.document.close();
}

