 function getId() {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == 'id') { 
      return pair[1];
    }
  } 
}


function getImage(){
	var id = getId();
	if(id==null){
	  var url = '\<img src="portfolio/portdefault.jpg"\>' ;
	}else{
		var url = '\<img src="portfolio/' + id + '.jpg"\>' ;
	}
	document.write(url); 
	
}

function getTitle(){
	var id = getId();
	var title='';
	if(id==null){
	  title = '';
	}else if(id=='GHBTS'){
		title = 'print design - promotion';
	}else if(id=='MieleAds1'){
		title = 'print design - ad';
	}else if(id=='MieleAds2'){
		title = 'print design - ad';
	}else if(id=='QuestAds'){
		title = 'print design - ad';
	}else if(id=='NewAds'){
		title = 'print design - ad';
	}else if(id=='LoyaltyCard'){
		title = 'print design - promotion';
	}else if(id=='Postcards'){
		title = 'print design - direct mail';
	}else if(id=='StoreSign'){
		title = 'print design - signage';
	}else if(id=='Sign'){
		title = 'print design - signage';
	}else if(id=='WebDesign'){
		title = 'web design';
	}else if(id=='AdoptPoster'){
		title = 'print design - promotional';
	}else if(id=='chairs1'){
		title = 'print design - promotional';
	}else if(id=='chairs2'){
		title = 'print design - promotional';
	}else if(id=='pkdesConcept'){
		title = 'packaging design';
	}else if(id=='pkdesProducts'){
		title = 'packaging design';
	}else if(id=='ldCorpID'){
		title = 'corporate identity design';
	}else if(id=='Ed'){
		title = 'type design';
	}else if(id=='Editorialpg'){
		title = 'print design - editorial page';
	}else if(id=='Rendering'){
		title = 'illustration - 3 views of a watch';
	}else if(id=='holidaycard'){
		title = 'illustration - holiday card';	
	}else if(id=='Photo1'){
		title = 'photography - black and white';
	}else if(id=='Photo2'){
		title = 'photography - black and white';
	}
	document.write(title); 
	
}

function getProject(){
	var id = getId();
	var project='';
	if(id==null){
	  project = '';
	}else if(id=='GHBTS'){
		project = 'back to school theme designed for posters, graphics for the web and in store price tags.';
	}else if(id=='MieleAds1'){
		project = 'full page advertisement in Quest Magazine for introducing high end kitchen and home appliances company, Miele, available at Gracious Home.';
	}else if(id=='MieleAds2'){
		project = 'more ad layouts for Miele.';
	}else if(id=='QuestAds'){
		project = 'full page advertisements in Quest Magazine for decorative hardware manufacturer Jado and Omnia (L), and introducing the new custom framing service at Gracious Home (R).';
	}else if(id=='NewAds'){
		project = 'developement of new print advertisement concepts and strategies.';
	}else if(id=='LoyaltyCard'){
		project = 'concept for a new reward card for in store usage.';
	}else if(id=='Postcards'){
		project = '5x7 postcards for the new framing service (L), and for brand building - outstanding customer service (R).';
	}else if(id=='StoreSign'){
		project = 'directory signage for the west side store on 67th and Broadway.';
	}else if(id=='Sign'){
		project = 'directional sign for the east side store on 70th and 3rd.';
	}else if(id=='WebDesign'){
		project = 'development of home page design and layout.';
	}else if(id=='AdoptPoster'){
		project = 'photoshop assignment: poster for adopting a pet.';
	}else if(id=='chairs1'){
		project = 'photoshop assignment: promotional cards for a furniture designer of choice.';
	}else if(id=='chairs2'){
		project = 'furniture cards continued.';
	}else if(id=='pkdesConcept'){
		project = 'concepts of packaging design for a CD, CD cover, envelope, and promotional material.';
	}else if(id=='pkdesProducts'){
		project = 'prototypes of packaging design for a CD, CD cover, envelope, and promotional material.';
	}else if(id=='ldCorpID'){
		project = 'corporate identity design for lemon drop invitations, a stationery and invitations company: company letterhead, envelope, business card and mailing lable.';
	}else if(id=='Ed'){
		project = 'portrait of Ed Harris, created from cut outs and clippings of type ranging from light to dense values.';
	}else if(id=='Editorialpg'){
		project = 'layout of an editorial page.';
	}else if(id=='Rendering'){
		project = 'Adobe Illustrator rendering of 3 views of a watch.';
	}else if(id=='holidaycard'){
		project = 'original illustrations of store window display for holiday card.';	
	}else if(id=='Photo1'){
		project = 'head shots.';
	}else if(id=='Photo2'){
		project = 'close up of objects.';
	}
	document.write(project); 
	
}

function getClient(){
	var id = getId();
	var client='';
	if(id==null){
	  client = '';
	}else if(id=='GHBTS'){
		client = 'Gracious Home <BR>july 2005';
	}else if(id=='MieleAds1'){
		client = 'Gracious Home <BR>march 2005';
	}else if(id=='MieleAds2'){
		client = 'Gracious Home <BR>march 2005';
	}else if(id=='QuestAds'){
		client = 'Gracious Home <BR>september 2005';
	}else if(id=='NewAds'){
		client = 'Gracious Home <BR>february 2005';
	}else if(id=='LoyaltyCard'){
		client = 'Gracious Home <BR>july 2005';
	}else if(id=='Postcards'){
		client = 'Gracious Home <BR>january & september 2005';
	}else if(id=='StoreSign'){
		client = 'Gracious Home <BR>october 2004';
	}else if(id=='Sign'){
		client = 'Gracious Home <BR>may 2005';
	}else if(id=='WebDesign'){
		client = 'Gracious Home <BR>february 2004';
	}else if(id=='AdoptPoster'){
		client = 'FIT <BR>march 2005';
	}else if(id=='chairs1'){
		client = 'FIT <BR>feburary 2005';
	}else if(id=='chairs2'){
		client = 'FIT <BR>feburary 2005';
	}else if(id=='pkdesConcept'){
		client = 'FIT <BR>feburary 2005';
	}else if(id=='pkdesProducts'){
		client = 'FIT <BR>feburary 2005';
	}else if(id=='ldCorpID'){
		client = 'FIT <BR>march 2005';
	}else if(id=='Ed'){
		client = 'FIT <BR>september 2003';
	}else if(id=='Editorialpg'){
		client = 'FIT <BR>april 2004';
	}else if(id=='Rendering'){
		client = 'FIT <BR>april 2004';
	}else if(id=='holidaycard'){
		client = 'Gracious Home <BR>december 2004';	
	}else if(id=='Photo1'){
		client = 'FIT <BR>june 2005';
	}else if(id=='Photo2'){
		client = 'FIT <BR>june 2005';
	}
	document.write(client); 
	
}