/*
*
*	Created by ANGEL MEDRANO
*	Useful javascript bits.
*
*/


/// DOC READY THINGS //

$(function(){
	


	addSoldOutIcon();



})




/// misc functions... Trying to keep from making a mess in DocReady()


/*

	closes div with class of ".swapedOpenDiv"
	and opens div (div_id)

*/
function swapDiv(div_id){
	
	//close anything 
	$(".swapedOpenDiv").hide();
	$(".swapedOpenDiv").removeClass('swapedOpenDiv');

	// open div and add the class
	$("#"+div_id).show();
	$("#"+div_id).addClass('swapedOpenDiv');


}







// adds sold-out.gif to the .soldout-camp
function addSoldOutIcon(){
		
	
         //$(".soldout-camp :last-child").addClass('sold-out-icon').html("<b>SOLD OUT</b>");
		$('.soldout-camp').append('<span class ="sold-out-icon">SOLD OUT</span>');

}

