//<!--


var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=325,width=625');
	if (window.focus) {newwindow.focus()}
}

var newwindow;
function poptasticxbox(url)
{
	newwindow=window.open(url,'name','height=150,width=225');
	if (window.focus) {newwindow.focus()}
}




var imgList = new Array(
	"images/gallery/large/duvin.jpg",
	"images/gallery/large/jnr.jpg",
	"images/gallery/large/gl.jpg",
	"images/gallery/large/lhe.jpg",
	"images/gallery/large/tb.jpg",
	"images/gallery/large/duo.jpg",
	"images/gallery/large/bh.jpg",
	"images/gallery/large/m.jpg",
	"images/gallery/large/bcard.jpg"
	);

var clientData = new Array(
		
		// index 1
	'<a href="images/gallery/large/duvin.jpg" onClick="poptastic(this.href); return false;" class="title2">[ENLARGE]</a><br /><br /><a href="http://www.DuvinWear.com" target="_blank">www.DuvinWear.com</a><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> Site Design & Administration<br /><font style="color: #7d3d3d;">Technologies Used:</font> CSS, HTML, &amp; WordPress<br /><font style="color: #7d3d3d;">Description:</font> Duvin is an Orlando based clothing company. The site was designed around WordPress for it&#39;s simplicity as a content managment system and powerful handling of blogs. WordPress is lightweight and has a wide variety of plugins available, one of which handles e-commerce.',// index 2 
	'<a href="images/gallery/large/jnr.jpg" onClick="poptastic(this.href); return false;"  class="title2">[ENLARGE]</a><br /><br /><a href="http://www.JNRStudio.com" target="_blank">www.JNRStudio.com</a><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> JavaScript Gallery Design &amp; CSS Formatting<br /><font style="color: #7d3d3d;">Technologies Used:</font> CSS, HTML, &amp; JavaScript<br /><font style="color: #7d3d3d;">Description:</font> This site was created as a calling card for an Architect &amp; Photographer in Charlottesville, Virginia. I was brought in halfway to finish the website which originially was jumbled and lacked functionality. Each page now consists of a custom JavaScript image gallery, complete with rotating descriptions.',
		'<a href="images/gallery/large/gl.jpg" onClick="poptastic(this.href); return false;"  target="_blank" class="title2">[ENLARGE]</a><br /><br /><a href="http://www.GLBiofuels.com" target="_blank">www.GLBiofuels.com</a><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> BlackBerry Data Entry Form<br /><font style="color: #7d3d3d;">Technologies Used:</font> CSS, HTML, &amp; DabbleDB<br /><font style="color: #7d3d3d;">Description:</font> My everyday job entails technology work for a company called Greenlight Biofuels. For 2010, we were pressed for a method for "on-the-fly" data input that would allow sales representatives to take and lookup lead information. Since there was such a crunch for time, PHP development was out of the option. Using the web application, DabbleDB, I was able to quickly construct a BlackBerry compatible site, which would connect to our database at DabbleDB.',
		'<a href="images/gallery/large/lhe.jpg" onClick="poptastic(this.href); return false;"  target="_blank" class="title2">[ENLARGE]</a><br /><br /><a href="http://www.LuxuryHomesEstero.com" target="_blank">www.LuxuryHomesEstero.com</a><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> Site Design &amp; Administration<br /><font style="color: #7d3d3d;">Technologies Used:</font> CSS &amp; HTML<br /><font style="color: #7d3d3d;">Description:</font> A website in the real estate industy has become a must. Based out of the Naples and Estero area and Florida. This site was designed with the Google search system in mind. I was hired to complete an unfinished mess left by an overpaid designer.',
		'<a href="images/gallery/large/tb.jpg" onClick="poptastic(this.href); return false;"  target="_blank" class="title2">[ENLARGE]</a><br /><br /><a href="http://www.Triple-BRecords.com" target="_blank">www.Triple-BRecords.com</a><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> Site &amp; Message Board Design<br /><font style="color: #7d3d3d;">Technologies Used:</font> HTML, &amp; vBulletin<br /><font style="color: #7d3d3d;">Description:</font> This was one of my first sites ever created. Complete with a customized vBulletin board and a easy to edit HTML layout, before CM systems were mainstream, I was able to create a fun site for a hardcore record label out of Orlando, Florida.',
		'<a href="images/gallery/large/duo.jpg" onClick="poptastic(this.href); return false;"  target="_blank" class="title2">[ENLARGE]</a><br /><br /><a href="/duo" target="_blank">www.RettGoings.com/Duo</a><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> Site Design & Administration<br /><font style="color: #7d3d3d;">Technologies Used:</font> HTML, CSS, &amp; Joomla<br /><font style="color: #7d3d3d;">Description:</font> This is a two hour concept site for a band out of Orlando, Florida. One of my favorite sites thus far. I wanted to create something very unique and artistic. The owner of the site has given me artistic freedom to do what I feel is best. Be prepared to be amazed once it is finished.',
				'<a href="images/gallery/large/bh.jpg" onClick="poptastic(this.href); return false;"  target="_blank" class="title2">[ENLARGE]</a><br /><br /><font class="title3">BassHeadz</font><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> Branding<br /><font style="color: #7d3d3d;">Technologies Used:</font> Adobe Illustrator<br /><font style="color: #7d3d3d;">Description:</font> Created for a friend. Drawn with vectors.',
				'<a href="images/gallery/large/m.jpg" onClick="poptastic(this.href); return false;"  target="_blank" class="title2">[ENLARGE]</a><br /><br /><font class="title3">Portrait</font><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> Design Experiment<br /><font style="color: #7d3d3d;">Technologies Used:</font> Adobe Illustrator<br /><font style="color: #7d3d3d;">Description:</font> Created as part of my early experimentation with vectors.',
				'<a href="images/gallery/large/bcard.jpg" onClick="poptastic(this.href); return false;"  target="_blank" class="title2">[ENLARGE]</a><br /><br /><font class="title3">Business Card</font><br /><img src="images/dotted.png" alt="dotted" /><br /><font style="color: #7d3d3d;">Commission:</font> My Business Card<br /><font style="color: #7d3d3d;">Technologies Used:</font> Adobe Illustrator<br /><font style="color: #7d3d3d;">Description:</font> Created with vectors for my business card.');

var currentMain = 0;
var currentMainT = 0;
var current_position=0;
var all_links="";

function init(){
	all_links=document.getElementById('gallery').getElementsByTagName('a');
	all_links[0].style.color="#7d3d3d";
	ShowMain(current_position);
}

function color_me(element,color){
	element.style.color=color;
}

function Prev(){
	color_me(all_links[current_position],'#000000');
	if((current_position-1)>-1){
		current_position=current_position-1;
	}
	else{
		current_position=(all_links.length-1);
	}
	ShowMain(current_position);
//	ShowMainT(current_position);
	color_me(all_links[current_position],'#7d3d3d');
}

function direct_selection(number){
	all_links[current_position].style.color="#000000";
	current_position=number;
	ShowMain(current_position);
	all_links[current_position].style.color="#7d3d3d";
}

function Next() {
	color_me(all_links[current_position],'#000000');
	if((current_position+1)<all_links.length){
		current_position++;
	}
	else{
		current_position=0;
	}
	ShowMain(current_position);
//	ShowMainT(current_position);
	color_me(all_links[current_position],'#7d3d3d');
}

function ShowMain(which){
    currentMain = which;
	currentMainT = which;
	if ( currentMain < 0 ) currentMain = 0;
	if ( currentMainT < 0 ) currentMainT = 0;
	if ( currentMain > imgList.length-1) currentMain = imgList.length-1; 
	if ( currentMainT > clientData.length-1) currentMainT = clientData.length-1;
	document.getElementById('mainImg').src = imgList[currentMain];
	document.getElementById('mainText').innerHTML = clientData[currentMainT];
	var PD = document.getElementById('Pg');
	var PD2 = document.getElementById('Pg2');
	
	document.getElementById("mainText").style.display = 'inline';
//	return false;
}

onload = function() { ShowMain(0); }
onload = function() { ShowMainT(0); }
//-->


//<!--
function preloader(){
	// counter
	var i = 0;

	// create object
	imageObj = new Image();

	// set image list
	images = new Array();
	images[0]="images/gallery/large/duvin.jpg";
	images[1]="images/gallery/large/jnr.jpg";
	images[2]="images/gallery/large/gl.jpg";
	images[3]="images/gallery/large/lhe.jpg";
	images[4]="images/gallery/large/tb.jpg";
	images[5]="images/gallery/large/duo.jpg";
	images[6]="images/gallery/large/bh.jpg";
	images[7]="images/gallery/large/bh.jpg";
	images[8]="images/gallery/large/bcard.jpg";
	


	// start preloading
	for(i=0; i<=3; i++){
		imageObj.src=images[i];
	}
}
//-->


