/* Script for opening windows */

function openWindow(windowName) {
	
	switch(windowName) {
		
		// Define each pop-up window below.
		// Each window should have a unique name. Names are case-sensitive.
		// Don't use dashes or special characters in names; don't start name with a number.
		// The name you define here should be the same name you put in return openWindow('name') in index.html.
		// If you need to use an apostrophe in description, put the description in double quotes.
		// 115 pixels padding are automatically added to the height and 20 pixels added to width you define here.
		case 'bgrLogo':
			winWidth = 340;
			winHeight = 210;
			winURL = 'samples/BGRlogo.jpg';
			winDescription = 'Broadband Gear Report logo';
			break;

		case 'bookExpoLogo':
			winWidth = 220;
			winHeight = 390;
			winURL = 'samples/BookExpoWhatsHot2.jpg';
			winDescription = "Book Expo What's Hot 2006";
			break;

		case 'chefSpecialLogo':
			winWidth = 346;
			winHeight = 610;
			winURL = 'samples/ChefSpeciallogo.jpg';
			winDescription = 'ChefSpecials.net logo treatments. The bottom logo is the final selection.';
			break;

		case 'infoWarLogo':
			winWidth = 400;
			winHeight = 270;
			winURL = 'samples/Infowarcon07logo.jpg';
			winDescription = 'InfoWar 2007 logo treatment. This logo was actually not selected to be used. A quick google will yield the logo that is being used.';
			break;

		case 'larstanPodcastLogo':
			winWidth = 382;
			winHeight = 320;
			winURL = 'samples/podcastinglogo.jpg';
			winDescription = 'Larstan Podcasting logo';
			break;

		case 'smartyPantsLogo':
			winWidth = 432;
			winHeight = 400;
			winURL = 'samples/SPlogo2.jpg';
			winDescription = 'Logo treatment for a line of young girls clothing.';
			break;

		case 'MIN':
			winWidth = 432;
			winHeight = 440;
			winURL = 'samples/min_cover_1.jpg';
			winDescription = 'Cover design of MIN magazine';
			break;

		case 'BPcover':
			winWidth = 432;
			winHeight = 440;
			winURL = 'samples/BlogPod0407cover.jpg';
			winDescription = 'Cover design for the premier issue of Blogger & Podcaster magazine';
			break;

		case 'BPfeat1':
			winWidth = 610;
			winHeight = 440;
			winURL = 'samples/BP0407feats_1.jpg';
			winDescription = 'Feature design for the premier issue of Blogger & Podcaster magazine';
			break;

		case 'BPfeat2':
			winWidth = 610;
			winHeight = 440;
			winURL = 'samples/BP0407feats_2.jpg';
			winDescription = 'Feature design for the premier issue of Blogger & Podcaster magazine';
			break;

		case 'BPfeat3':
			winWidth = 610;
			winHeight = 440;
			winURL = 'samples/BP0407feats_3.jpg';
			winDescription = 'Feature design for the premier issue of Blogger & Podcaster magazine';
			break;

		case 'AMGasfeat1':
			winWidth = 610;
			winHeight = 440;
			winURL = 'samples/AMGas_powerplay.jpg';
			winDescription = 'Feature design for AmericanGas magazine. I hand lettered the font for the headline.';
			break;

		case 'AMGasfeat2':
			winWidth = 610;
			winHeight = 440;
			winURL = 'samples/AmGas_NatGas.jpg';
			winDescription = 'Feature design for AmericanGas magazine.';
			break;

		case 'NASAfeat':
			winWidth = 610;
			winHeight = 480;
			winURL = 'samples/NASAspread.jpg';
			winDescription = 'Feature design for NASA magazine.';
			break;

		case 'LTAbrochure':
			winWidth = 450;
			winHeight = 900;
			winURL = 'samples/LTAbrochure.jpg';
			winDescription = '3 pages from the Leadership thru Training brochure.';
			break;

		case 'AGAmembership':
			winWidth = 1000;
			winHeight = 700;
			winURL = 'samples/AGAAssocmem.jpg';
			winDescription = 'This is 2 separate brochures. The left side is the Associate brochure (top is the front and back, the bottom is the inside spread). The right side member brochure';
			break;

		case 'EJMIR':
			winWidth = 432;
			winHeight = 440;
			winURL = 'samples/EJMIR05cover.jpg';
			winDescription = 'Cover design of the 2005 Executive Job Market Intelligence Report';
			break;

		case 'ABAcovers':
			winWidth = 550;
			winHeight = 480;
			winURL = 'samples/ABAcovers.jpg';
			winDescription = 'Various covers for meetings for the American Bar Association. Design is based on the city the meeting is taking place';
			break;

		case 'UsRuss_10thann':
			winWidth = 800;
			winHeight = 900;
			winURL = 'samples/UsRuss_10thann.jpg';
			winDescription = 'Cover and spread design for the 10th anniversary of the US/Russia Business Council. The dates on cover were actually printed using a spot varnish';
			break;

		case 'UsRuss_10th_meeting':
			winWidth = 700;
			winHeight = 900;
			winURL = 'samples/UsRuss_10th_meeting.jpg';
			winDescription = 'Cover and spread design for the 10th anniversary meeting of the US/Russia Business Council. Brochure was printed in both English and Russian.';
			break;

		case 'AGAbuilder':
			winWidth = 910;
			winHeight = 500;
			winURL = 'samples/AGA_IBS07.jpg';
			winDescription = 'Cover and inside design for a brochure from the AmericanGas Association for the International Builders Show.';
			break;

		case 'AGA_PubAffairsad':
			winWidth = 432;
			winHeight = 500;
			winURL = 'samples/AGA_PubAffairsad.jpg';
			winDescription = 'Full page ad for the AmericanGas Association';
			break;

		case 'IOFolder':
			winWidth = 640;
			winHeight = 500;
			winURL = 'samples/IOFolder.jpg';
			winDescription = 'Media kit folder for Insulation Outlook Magazine';
			break;

		case 'superiorinteriorLogo':
			winWidth = 432;
			winHeight = 450;
			winURL = 'samples/sup_intlogo.jpg';
			winDescription = 'Logo design for a new interior design firm based in Arlington, Virginia. The top logo was the final selection.';
			break;

		case 'capstone':
			winWidth = 480;
			winHeight = 480;
			winURL = 'samples/capstone.jpg';
			winDescription = 'Web site design for Capstone Information Resources';
			break;

		case 'freeflow':
			winWidth = 432;
			winHeight = 430;
			winURL = 'samples/freeflow.jpg';
			winDescription = 'Web site design for Free Flow, a provider of voice over internet phone service.';
			break;

		case 'germanfoods':
			winWidth = 432;
			winHeight = 530;
			winURL = 'samples/germanfoods.jpg';
			winDescription = 'Web site design for GermanFoods.org. This design ultimately was not used. View the site at germanfoods.org.';
			break;

		case 'BPweb':
			winWidth = 432;
			winHeight = 440;
			winURL = 'samples/BPweb.jpg';
			winDescription = 'Web site design for Podcaster magazine';
			break;




		// This is the window that appears if the pop-up file can't be found.
		default:
			winWidth = 270;
			winHeight = 200;
			winURL = 'notfound.html';
			break;
	
	}
	
	winParams = 'width=' + (winWidth+20) + ',height=' + (winHeight+115) + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes,left=50,top=50,screenX=50,screenY=50';
	
	// Open the window with parameters defined above
	sampleURL = 'sample.php4?sample=' + escape(winURL) + '&description=' + escape(winDescription);
	newWindow = window.open(sampleURL,windowName,winParams);
	if (window.focus) {
		newWindow.focus()
	}
	return false;
}