$(document).ready(function(){

	// ---
	// contact form
	// ---
	// validation
	$("#contactform").validate();

	// default user browser
	$('input[name$="contact-browser"]').val(yourBro[3] + " / " + yourBro[1]);		

	// ---
	// colorbox
	// ---
	$("a[rel='examplegroup']").colorbox({
		maxWidth: "100%",
		maxHeight: "100%"
	});
	
	
	// ---
	// slidesjs.com
	// ---
	$('#slides').slides({
		preload: true,
		preloadImage: 'img/loading.gif',
		play: 5000,
		pause: 2500,
		autoHeight: true,
		hoverPause: true,
		generatePagination : false
	})

	/*
	// only a browser with javascript will change the style form alert to notice and do messaging or removal below
	$('.iemessage').removeClass('alert');
	$('.iemessage').addClass('notice');

	// ie message check
	if(yourBro[0] == 'ie4' || yourBro[0] == 'ie5')
	{
	//	$('.iemessage').html('<h3>The Internet Explorer browser has been detected.</h3>Have you considered switching to <a href="http://www.mozilla.com/en-US/firefox/new/" target="_blank" class="external">FireFox</a> or <a href="http://www.google.com/chrome" target="_blank" class="external">Chrome</a>?<br />Check out some of the <a href"http://www.findmebyip.com/litmus/" target="_blank" class="external">cool new features</a> that IE does <strong>not</strong> support.');
		$('.iemessage').hide();
	}
	else
	{
		$('.iemessage').hide();
	}
	*/
	
	// ---
	//selected work page nav
	// ---
	//load default
	// NOTE: cannot use the following JavaScript with the colorbox plug-in (related to the load() method)
	/*
	$('#work-content').load('/instinet.php');
	$("li.first").addClass("selected");
	
	$('.work-nav').click(function() {
		theurl = $(this).attr("href");
		
		// hardcoded position of URL param ('/our-work.php?work=')
		theurl = theurl.substr(19) + ".php";

		$('#work-content').load('/'+theurl);
		$("li").removeClass("selected");
		$(this).parent().addClass("selected");
		return false;//prevent link from firing
	});
	*/

});




