// JavaScript

// whichpic is "this" anchor object
function showPic(whichpic) {
	var imgSource = whichpic.getAttribute("href");
	document.getElementById("swapMe").setAttribute("src",imgSource);
}

function showPicPortfolio() {
	document.getElementById("swapMe").setAttribute("src",images/roll03_yydesign.jpg);
}


function portPop() {
	alert('Hey! Don\'t fuss with this link yet!')
}


// replaceDiv uses innerHTML. (Update to use visibility hide/show instead?)

function replaceDiv(blockVal) {
	var blankText = ""
	var servicesText = "<p id='nospace'>Yuri Yarmolinsky is the founder and president of YY&nbsp;Design, a full-service graphic design company based in New York. Established in 1990, YY&nbsp;Design has served a wide range of clients from start-ups to multinational corporations for over 18&nbsp;years. YY&nbsp;Design specializes in:</p><ul><li><span>establishing and reinforcing an effective branding</span></li><li><span>corporate identity programs</span></li><li><span>building unique and effective advertising campaigns</span></li><li><span>designing custom marketing programs</span></li></ul><p>With over 30 years of professional experience in advertising and graphic design, Mr. Yarmolinsky is<br />an effective creative team manager, carrying out<br />&ldquo;A&ndash;Z&rdquo; assignments ranging from initial concept<br />to final production.</p><br /><br /><br /><br /><p>He has also consulted for major design<br />and advertising companies, including the Carbone&nbsp;Smolon Agency, JWT&nbsp;Group, FCB, Lowe&nbsp;Direct, Young &amp; Rubicam, and LLKFB.</p></span>";
	var portfolioText = "noscript portfolio placeholder";
	var clientsText = "<span><p id='nospace'>Morgan Stanley</p><p id='nospace'>IBM</p><p id='nospace'>Mercedes Benz</p><p id='nospace'>Port Authority of NY &amp; NJ</p><p id='nospace'>Brooklyn Public Library</p><p id='nospace'>Coca Cola</p><p id='nospace'>Metropolitan Library Authority</p><p id='nospace'>CHF Solutions</p><p id='nospace'>Pfizer</p><p id='nospace'>Cardiac Concepts</p><p id='nospace'>Barnes &amp; Noble</p><p id='nospace'>Lumex</p><p id='nospace'>Corporate Trust</p><p id='nospace'>Van Heusen</p></span>";
	var contactText = "<span><p id='nospace'>yy design</p><p id='nospace'>yuri yarmolinsky</p><p id='nospace'>386 Fort Washington Avenue #2B</p><p id='nospace'>New York, NY 10033</p><p id='nospace'>e-mail&nbsp;&nbsp;&nbsp;<a href='mailto:yydesign@earthlink.net' class='email'>yydesign@earthlink.net</a></p><p id='nospace'>phone&nbsp;&nbsp;&nbsp;212&nbsp;568&nbsp;6898</p><p id='nospace'>mobile&nbsp;&nbsp;&nbsp;646&nbsp;279&nbsp;6392</p></span>";

	switch (blockVal) {
		case 1:
			document.getElementById('longText').innerHTML=blankText;			
			break;
		case 2:
			document.getElementById('longText').innerHTML=servicesText;			
			break;
		case 3:
			document.getElementById('longText').innerHTML=portfolioText;			
			break;
		case 4:
			document.getElementById('longText').innerHTML=clientsText;			
			break;
		case 5:
			document.getElementById('longText').innerHTML=contactText;			
			break;
		default:
			alert("if you're reading this, it all went wrong");
	}
}
