addOnload(initRollover);


function addOnload(newFunction){
	var oldOnload = window.onload;
	if (typeof oldOnload == "function"){
		window.onload = function(){
			if (oldOnload){
				oldOnload();
			}
			newFunction();
		}
	}
	else {
		window.onload = newFunction;
	}
} 




function initRollover(){
	for (var i=0; i<document.links.length; i++){
		var linkObj=document.links[i];
			var imgObj=document.getElementById("project_init");
			if(imgObj){
				if(linkObj.className){
					if(linkObj.className != "current"){
						if(linkObj.className != "logo"){
						
						setRollover(linkObj,imgObj,i);

			
						}	
					}
				}
			}
	}
}




var titleText = new Array(
"", 
"Swiss Army",
"Polo Jeans",
"Jones New York Collection",
"Tommy Hilfiger Sportswear",
"Tommy by Tommy Hilfiger",
"Tommy Jeans",
"Samsung",
"Reebok / Sportsclub NY",
"Joseph and Feiss (Hugo Boss)",
"Weatherwear",
"Space Mercer",
"Silken Tent",
"Cite Retail Showrooms",
"Zero Restriction",
"Atrium",

"" //dummy
);

var captionText = new Array(
"",
"We strove to capture the rich Swiss Army heritage and place it in a modern context. Projects included showroom design, tradeshow booths, in store shops, fixturing and graphics, and retail management.",
"<b>CITE</b> created a bright, white, softer in-store presence for Polo Jeans Company to complement an evolved product line. Heavy dark metals and a red, white and blue color motif were replaced with a sophisticated layering of textures: whitewashed brick and b-board, reclaimed wood flooring and counters, canvas, leather, and a wall system derived from 100 year old bakers racks.",
"We were hired to create a new, streamlined and modernized shop concept with coordinated signage and graphics program for implementation in &#34;a&#34; through &#34;d&#34; doors nationwide. Our concept reflects a long-term push by marketing to represent clothing in a sophisticated, architecturally aware context, in advertising and at retail. French interior designer Pierre Charreau was a key inspiration.",
"We were hired to design a new, updated specialty store concept to roll out globally. we designed everything from entire new buildings to fixturing, point of purchase displays and graphics.",
"A new concept was developed and implemented in showrooms, specialty stores, and in store shop fixturing.",
"We were hired to bring to life Tommy&rsquo;s concept of an all American diner to house the new &#34;Tommy&#34; junior sportswear collection.",

"In creating an in-store shop presence for Samsung, we drew from the excitement and energy of cosmetics retailing, showcasing products as sexy personal accessories.",
"A suitably upscale pro shop environment designed with an exclusive clientele in mind. The success of this first shop resulted in the development of an entire division operated by <b>cite</b> management.",
"For this award winning showroom, we created a residential, salon like setting to house a mens collection in Manhattan's landmark crown building.",
"A multi faceted, textured original concept designed around clothing&rsquo;s relationship to the weather. Seven stores completed.",
"<b>CITE</b> created a modern utterly sophisticated loft-like environment for space mercer with white lacquered furniture, tables made of natural South African zebra wood and Brazilian oiled walnut.",
"An elegant, eclectic eco-friendly retail boutique and reception area was created by <b>CITE</b> using fixtures, furniture and decorative accessories from resale shops and from recycled woods, cork, and other sustainable materials to complement this award wining wellness day spa.",
"<b>CITE</b> retail showrooms are internationally famous for showcasing what's next in home furnishings, lighting and accessories.",
"Zero Restriction",
"Atrium",

"" //dummy
);



function setRollover(thisLink,thisImage,thisNumber){
	thisLink.imgToChange = thisImage;
	thisLink.onmouseout = rollOut;
	thisLink.onmouseover = rollOver;

	thisLink.outImage = new Image();
	thisLink.outImage.src = thisImage.src;

	thisLink.overImage = new Image();
	thisLink.overImage.src = "images/" + thisLink.id + ".jpg";

}

function rollOver(){
	this.imgToChange.src = this.overImage.src;

		switch(this.className.split("_")[0]){
		case "swiss":
			thisNumber = 1;
			break;
		case "polo":
			thisNumber = 2;
			break;
		case "jones":
			thisNumber = 3;
			break;
		case "tommysports":
			thisNumber = 4;
			break;
		case "tommyjeans":
			thisNumber = 5;
			break;
		case "tommyjuniors":
			thisNumber = 6;
			break;
		case "samsung":
			thisNumber = 7;
			break;
		case "sportsclub":
			thisNumber = 8;
			break;
		case "hugoboss":
			thisNumber = 9;
			break;
		case "weatherwear":
			thisNumber = 10;
			break;
		case "spacemercer":
			thisNumber = 11;
			break;
		case "silkentent":
			thisNumber = 12;
			break;
		case "cite":
			thisNumber = 13;
			break;
		case "zerorestriction":
			thisNumber = 14;
			break;
		case "atrium":
			thisNumber = 15;
			break;
		default:
			thisNumber = 0;
		}


	document.getElementById("project_title").innerHTML = titleText[thisNumber];

		if(this.className.indexOf('_vertical') == -1){
			document.getElementById("project_caption").innerHTML = captionText[thisNumber];
		}
		else{
			document.getElementById("project_caption_right").innerHTML = captionText[thisNumber];
		}

 }

function rollOut(){
	this.imgToChange.src = this.outImage.src;
	document.getElementById("project_title").innerHTML = "&nbsp";
	document.getElementById("project_caption").innerHTML = "&nbsp";
	document.getElementById("project_caption_right").innerHTML = "&nbsp";
}




