var clicked = false;

function smallLightBox(id){
	if(clicked == false){
		clicked = true;
		img = new Image();
		img.src = ("http://images.jobdig.com/career-center/images/cartoon/" + id + ".jpg");
		img.onload = function(){
			var height = $(window).height();
			var width = $(window).width();
			height = (height/2) - 25 - (img.height/2);
			width = (width/2) - 200 - (img.width/2);
			window.scrollTo(0,0)
				$('#lightbox-hide').css({top: height})
				$('#lightbox-hide').css({left: width})
				$('#lightbox-hide_UnderLay').show();
				$('body').css('overflow','hidden');
				$('#lightbox-hide').show();
				$('#lightbox-btn-close').css({left: ((img.width+398)/2)-33})
				$('#quote').css({left: img.width+26})
				if(id == "TobyArt"){
					var heightAdd = 100;
				} else {
					var heightAdd = 50;
				}
				$('#lightContain').animate({width: img.width+400, height: img.height+heightAdd}, function(){
					chooseQuote(id);
					var quoteHeight = $('#quote').height();
					$('#quote').animate({marginTop: ((img.height+50) - quoteHeight) / 2, opacity: 'show'})
					$('#lightbox-btn-close').show();
				})
		}
		$('#lightbox-image').attr('src', 'http://images.jobdig.com/career-center/images/cartoon/' + id + '.jpg');
		return false;
	}
}

function smallLightBoxHide(){
	$('#lightbox-hide').hide()
	$('#lightbox-hide_UnderLay').hide();
	$('#quote').hide();
	$('#lightbox-btn-close').hide();
	$('body').css('overflow','auto');
	clicked = false;
	return false;
}


var brenda = "I feel like an important part of this energetic and youthful company.  My work feels like play when I get to base my branding designs on our logo, a cartoon dog. I can dig that!|!|Graphic Designer";
var steve = "The best part of working at JobDig is knowing that we're making a difference in people's lives. I have been unemployed and it can be a helpless feeling. Just to think that in a direct way we are able to help people get employment or improve their employment situation - that's what gets me to the office every day.|!|National Sales Manager";
var reed = "My favorite memory was when we worked with Habitat for Humanity, helping them build some townhomes for people in need.|!|Publication Manager";
var eric = "My most vivid memory of working at JobDig was on my first day when a rep sold their first ad and I learned what happens after they ring the bell..... Yee-Ha!|!|Information Technology";
var molly = "Getting to work with young, smart, highly creative, humorous people everyday is only a small fraction of why I love my job.|!|Marketing Manager";
var adam = "JobDig sponsored Finnegan's Summerfest last summer. My coworker and I were asked to come up on stage while one of the bands was performing to toss our JobDig \"Woofstock\" t-shirts out. The crowd went crazy over our shirts!|!|Sales Manager";
var tegan = "JobDig offers a very fun, young and laid-back working environment. I love that I have the freedom and flexibility to explore different areas of design that interest me. I really feel like I have say - both in the direction I take my job and in the company itself. Even as JobDig continues to grow, we've kept that small, close-knit feel that makes coming to work in the morning anything but a drag!|!|Graphic Designer";
var josh = "My favorite JobDig memory was dressing up in the JobDig dog suit for the annual Cystic Fibrosis Walk for the last three years.|!|Regional Market Publisher";
var nick = "My favorite JobDig memory was when I beat a coworker in the first ever JobDig Olympics. Many people only remember the race when I tripped allowing my coworker to basically walk victoriously to the finish line. However I was able to take the overall title by beating him in 3 other events.|!|Advertising Account Executive";
var brad = "I enjoy being part of such a dynamic organization that is truly built on the mission of making sure every employee is part of the team. The energy and excitement spreads far beyond our office walls into the hands of people who are looking to improve their careers and lives. Every week we see this - it's such a reward.|!|Operations Manager";
var gl = "It amazes me to see how our people, most of them under 30, have come together to create a sustainable, scaleable, even exciting company from only a vision of what could be, not what is.|!|Chairman of the Board";
var katie = "After a frazzled evening of paper proofing, the JD Production girls decided to let off some steam ice skating at The Depot in Minneapolis. We laced up those skates, pulled the mittens on and away we went. I'm almost positive we all scored perfect 10's that night!|!|Advertising Manager";
var heather = "Last summer, the management team had created a new car racing sales contest for the JobDig team members.  At 8 a.m. each morning all the Diggers in the company would meet in the conference room and eagerly surround a make-shift race track with remote toy cars lined up.  Each team took turns racing their cars - car line-up based on sales and miscellaneous other criteria.    It was a great way to start the morning and was a nice reminder of how fun and rewarding it is to work at JobDig.|!|Advertising Account Executive";
var marc = "It's the focus on meeting the needs of our clients that has made JobDig the best place I've ever worked.   The company has grown tremendously since I started here and it is rewarding to see its growth and know that I have been a part of it. I am interested and excited to see where the company can go from here.|!|Senior Account Executive";
var toby = "I still cannot believe how lucky I am to have a job that I literally get out of bed every morning and cannot wait to get into work. Media and advertising is an incredibly dynamic, rapidly evolving space to compete in, and overlaying on top of that jobs and work and careers makes it that much more interesting. Equally as important, we are very dedicated to helping people find meaning in their work and helping employers find the talent they need to be successful. On top of that, the company is filled with fun, really smart people who love what they do and I just could not imagine a better company to spend time with. And lastly, we're a proven company that's been able to maintain our start-up, entrepreneurial DNA. We are growing very quickly and expanding not only our products and services, but also launching new markets throughout the country. When you put all of those things together and add to it the opportunity to truly be a meaningful part of building a successful company, you cannot help but dig your job.|!|(our long-winded) President & CEO";
var harley = "Working for an emerging growth company such as JobDig is an exciting work environment.  We have a solid management team, a supportive group of investors, an important market to serve, and an industry going through rapid change, much of it driven by new technology and new ways of doing things.  Every week, as we measure results and compare our progress against our plans, we make adjustments and incorporate new ways of doing things in our business.  With our strong ability to deliver sales results, we are able to distinguish ourselves from many of our competitors.|!|CFO"

function chooseQuote(id){
	var name = String(id).replace(/[aA]rt/, "").toLowerCase();
	switch(name){
		case "brenda":
			var tmonial = brenda
			break;
		case "steve":
			var tmonial = steve
			break;
		case "reed":
			var tmonial = reed
			break;
		case "eric":
			var tmonial = eric
			break;
		case "molly":
			var tmonial = molly
			break;
		case "adam":
			var tmonial = adam
			break;
		case "tegan":
			var tmonial = tegan
			break;
		case "josh":
			var tmonial = josh
			break;
		case "nick":
			var tmonial = nick
			break;
		case "brad":
			var tmonial = brad
			break;
		case "gl":
			var tmonial = gl
			break;
		case "katie":
			var tmonial = katie
			break;
		case "heather":
			var tmonial = heather
			break;
		case "marc":
			var tmonial = marc
			break;
		case "toby":
			var tmonial = toby
			break;
		case "harley":
			var tmonial = harley
			break;
		default:
			var tmonial = "";
		}
	var split = tmonial.split("|!|");
	if(name == "gl"){
		name = "GL"
	}
	document.getElementById("quoteText").innerHTML = split[0];
	document.getElementById("quoteName").innerHTML = name;
	document.getElementById("quotePos").innerHTML = "&mdash;"+split[1]
}