// MISC. SCRIPTS

var currentGallery = 1;
var currentStore = 1;

function checkHash()
{
	var h = window.location.hash;
	
	switch(h)
	{
		case "#paintings":
			changeGallery(1);
			break;
		case "#toys":
			changeGallery(2);
			break;
		case "#digital":
			changeGallery(3);
			break;
		case "#sketches":
			changeGallery(4);
			break;
		default:
			changeGallery(1);
			break;
	}
}

function checkStore()
{
	var h = window.location.hash;
	
	switch(h)
	{
		case "#paintings":
			changeStore(1);
			break;
		case "#vinyl":
			changeStore(2);
			break;
		case "#prints":
			changeStore(3);
			break;
		case "#merch":
			changeStore(4);
			break;
		default:
			changeStore(1);
			break;
	}
}

function changeGallery(gal)
{
	//alert("Changing to Gallery " + gal);
	var container = $("#gallery-" + gal + "-cont");
	
	if(currentGallery != 0)
	{
		jQuery("#gallery-" + currentGallery + "-btn").removeClass("selected");
		jQuery("#gallery-" + currentGallery + "-cont").css("display", "none");
	}
	
	container.css("display", "block");
	
	jQuery("#gallery-" + gal + "-btn").addClass("selected");
	
	currentGallery = gal;
}

function changeStore(store)
{
	var container = $("#store-" + store + "-cont");
	
	if(currentStore != 0)
	{
		jQuery("#store-" + currentStore + "-btn").removeClass("selected");
		jQuery("#store-" + currentStore + "-cont").css("display", "none");
	}
	
	container.css("display", "block");
	
	jQuery("#store-" + store + "-btn").addClass("selected");
	
	currentStore = store;
}

// PAINTING GALLERY

function showPaintingGallery(start)
{
	painting1 = ["images/artwork/gallery/paintings/decommissioned_big.jpg", "Decommissioned - Mixed media on canvas"];
	painting2 = ["images/artwork/gallery/paintings/decommissioned_enjoy_big.png", "Decommissioned:Enjoy - Mixed media on canvas"];
	painting3 = ["images/artwork/gallery/paintings/not_funny_big.png", "That's Not Even Funny - Mixed media on canvas"];
	painting4 = ["images/artwork/gallery/paintings/ugh_bunny_1_big.png", "UGH! Bunnies (1 of 2) - Mixed media on canvas"];
	painting5 = ["images/artwork/gallery/paintings/ugh_bunny_2_big.png", "UGH! Bunnies (2 of 2) - Mixed media on canvas"];
	painting6 = ["images/artwork/gallery/paintings/unsavory_characters_big.png", "Unsavory Characters - Acrylic on canvas"];
	painting7 = ["images/artwork/gallery/paintings/lost_my_way_big.png", "I May Have Lost My Way - Acrylic on canvas (SOLD)"];
	painting8 = ["images/artwork/gallery/paintings/dream_machine_big.jpg", "The Dream Machine - Acrylic on canvas"];
	painting9 = ["images/artwork/gallery/paintings/things_we_hold_big.jpg", "The Things We Hold Dear - Mixed media on canvas (SOLD)"];
	painting10 = ["images/artwork/gallery/paintings/snack_time_big.jpg", "ANIL8: West Side - Mixed media on canvas (SOLD)"];
	painting11 = ["images/artwork/gallery/paintings/anil8_south_side_big.jpg", "ANIL8: South Side - Mixed media on canvas (SOLD)"];
	painting12 = ["images/artwork/gallery/paintings/anil8_all_city_big.png", "ANIL8: All City - Mixed media on canvas (SOLD)"];
	painting13 = ["images/artwork/gallery/paintings/this_big_panel_big.jpg", "It was THIS Big - Mixed media on wood panel"];
	painting14 = ["images/artwork/gallery/paintings/this_big_series_big.jpg", "It was THIS Big (Series) - Mixed media on canvas (SOLD)"];
	painting15 = ["images/artwork/gallery/paintings/watch_your_mouth_big.jpg", "Watch Your Mouth - Mixed media on wood panels"];
	painting16 = ["images/artwork/gallery/paintings/hey_panel_big.jpg", "HEY! - Acrylic on wood panel"];
	
	jQuery.slimbox([painting1, painting2, painting3, painting4, painting5, painting6, painting7, painting8, painting9, painting10, painting11, painting12, painting13, painting14, painting15, painting16],start,{loop:true});
}

// TOY GALLERY

function showToyGallery(start)
{
	toy1 = ["images/artwork/gallery/toys/toy-1.png","UGH! Mobile Munny - (SOLD)"];
	toy2 = ["images/artwork/gallery/toys/toy-2.jpg", "UGH! Munny"];
	toy3 = ["images/artwork/gallery/toys/toy-3.jpg", "Munny in Disguise"];
	toy4 = ["images/artwork/gallery/toys/space_guy.png", "Space Guy Custom Sculpt"];
	toy5 = ["images/artwork/gallery/toys/mohawk_big.png", "Mohawk Munny"];
	
	jQuery.slimbox([toy5, toy1, toy2, toy3, toy4],start,{loop:true});
}

// WEB GALLERY
function showWebGallery(start)
{
	web1 = ["images/artwork/gallery/web/FAT_big.png", "Fine Arts Theatre (Asheville, NC) - <a href='http://fineartstheatre.com' target='_blank'>fineartstheatre.com</a>"];
	web2 = ["images/artwork/gallery/web/NBC_big.png", "Night's Bright Colors - <a href='http://nightsbrightcolors.com' target='_blank'>nightsbrightcolors.com</a>"];
	web3 = ["images/artwork/gallery/web/AT_big.png", "Absinthe Twilight - <a href='http://nightsbrightcolors.com/absinthe/' target='_blank'>nightsbrightcolors.com/absinthe</a>"];
	
	jQuery.slimbox([web1, web2, web3],start,{loop:true});
}

// DIGITAL GALLERY

function showDigitalGallery(start)
{
	dig1 = ["images/artwork/gallery/digital/iphone_bb.jpg", "UGH! Beach Bum iPhone Skin Concept"];
	dig2 = ["images/artwork/gallery/digital/iphone_xoxo.jpg", "UGH! XoXo iPhone Skin Concept"];
	dig3 = ["images/artwork/gallery/digital/evildoers_beware.jpg", "Evil Doers Beware!"];
	dig4 = ["images/artwork/gallery/digital/just_chillin.png", "Just Chillin'"];
	dig5 = ["images/artwork/gallery/digital/are_you_serious.png", "Are You Serious?"];
	dig6 = ["images/artwork/gallery/digital/im_thinking_ugh.png", "I'm Thinking ... (Print Available)"];
	dig7 = ["images/artwork/gallery/digital/ugh_skate_1.png", "UGH! Skate Deck Concepts (Series 1)"];
	dig8 = ["images/artwork/gallery/digital/ugh_skate_2.png", "UGH! Skate Deck COncepts (Series 2)"];
	dig9 = ["images/artwork/gallery/digital/dont_mind_me.jpg", "Don't Mind Me"];
	dig10 = ["images/artwork/gallery/digital/looking_at.jpg", "What Are You Looking At?"];
	dig11 = ["images/artwork/gallery/digital/look_out.png", "Look Out Behind You!"];
	dig12 = ["images/artwork/gallery/digital/anil8_remix.jpg", "ANIL8: Remix"];
	dig13 = ["images/artwork/gallery/digital/ugh_dragon.png", "UGH! Dragon"];
	dig14 = ["images/artwork/gallery/digital/ugh_patriot.png", "UGH! Patriot"];
	dig15 = ["images/artwork/gallery/digital/ugh_crest.png", "UGH! Crest Logo"];
	dig16 = ["images/artwork/gallery/digital/ugh_logos.png", "UGH! Logos"];
	dig17 = ["images/artwork/gallery/digital/surrounded.png", "Surrounded"];
	dig18 = ["images/artwork/gallery/digital/wrong_turn.png", "I Think We May Have Taken a Wrong Turn (Print Available)"];
	dig19 = ["images/artwork/gallery/digital/bah_humbug.png", "Bah Humbug! (Print Available)"];
	dig20 = ["images/artwork/gallery/digital/am_i_late.png", "Am I Late? (Print Available)"];
	dig21 = ["images/artwork/gallery/digital/have_the_time.png", "Do You Have the Time?"];
	dig22 = ["images/artwork/gallery/digital/give_a_hand.jpg", "Could You Give Me a Hand?"];
	dig23 = ["images/artwork/gallery/digital/geek.jpg", "GEEK!"];
	dig24 = ["images/artwork/gallery/digital/az_bound.jpg", "AZ Bound"];
	dig25 = ["images/artwork/gallery/digital/laundry.jpg", "Laundry Day Huh?"];
	dig26 = ["images/artwork/gallery/digital/game_geek.png", "Game Geek"];
	dig27 = ["images/artwork/gallery/digital/luv_fairy.jpg", "The LUV Fairy"];
	dig28 = ["images/artwork/gallery/digital/bright.jpg", "A Bright Idea ..."];
	dig29 = ["images/artwork/gallery/digital/lookin_good.jpg", "Lookin' Good!"];
	dig30 = ["images/artwork/gallery/digital/honest_mistake.png", "It Was an Honest Mistake"];
	dig31 = ["images/artwork/gallery/digital/listening.jpg", "Are You Listening?"];
	dig32 = ["images/artwork/gallery/digital/trouble.jpg", "You Look Like Trouble"];
	dig33 = ["images/artwork/gallery/digital/smile.jpg", "Smile Dammit!"];
	dig34 = ["images/artwork/gallery/digital/all_day.jpg", "I Don't Have All Day!"];
	dig35 = ["images/artwork/gallery/digital/huge.jpg", "OMG It's HUGE!"];
	dig36 = ["images/artwork/gallery/digital/no_fear.jpg", "Have No Fear ..."];
	
	jQuery.slimbox([dig1, dig2, dig3, dig4, dig5, dig6, dig7, dig8, dig9, dig10, dig11, dig12, dig13, dig14, dig15, dig16, dig17, dig18, dig19, dig20, dig21, dig22, dig23, dig24, dig25, dig26, dig27, dig28, dig29, dig30, dig31, dig32, dig33, dig34, dig35, dig36], start, {loop:true});
}

function showSketchGallery(start)
{
	sketch1 = ["images/artwork/gallery/sketches/5_minutes.png", "Five More Minutes Mom!"];
	sketch2 = ["images/artwork/gallery/sketches/blubberies.png", "Blubberies"];
	sketch3 = ["images/artwork/gallery/sketches/decommissioned_sketch.jpg", "Decommissioned"];
	sketch4 = ["images/artwork/gallery/sketches/dream_machine_sketch.jpg", "Dream Machine"];
	sketch5 = ["images/artwork/gallery/sketches/girl_sketch.jpg", "A Girl"];
	sketch6 = ["images/artwork/gallery/sketches/long_face_series.png", "Why the Long Face?"];
	sketch7 = ["images/artwork/gallery/sketches/on_sale.png", "It Was On Sale"];
	sketch8 = ["images/artwork/gallery/sketches/rdb_logo_sketch.png", "RDB Logo"];
	sketch9 = ["images/artwork/gallery/sketches/shades_sketch.png", "New Shades"];
	sketch10 = ["images/artwork/gallery/sketches/tangled.png", "Tangled"];
	
	jQuery.slimbox([sketch1, sketch2, sketch3, sketch4, sketch5, sketch6, sketch7, sketch8, sketch9, sketch10], start, {loop:true});
}

function showFeaturedGallery(start)
{
	featured1 = ["images/artwork/gallery/paintings/ugh_bunny_2_big.png", "UGH! Bunnies (2 of 2) - Mixed Media on Canvas"];
	featured2 = ["images/artwork/gallery/paintings/not_funny_big.png", "Thats Not Event Funny - Mixed Media on Canvas"];
	featured3 = ["images/artwork/gallery/paintings/decommissioned_enjoy_big.png", "Decommissioned:Enjoy - Mixed Media on Canvas"];
	featured4 = ["images/artwork/gallery/toys/mohawk_big.png", "Mohawk Munny"];
	
	jQuery.slimbox([featured4, featured1, featured2], start, {loop:true});
}