var backLoc;
var backAvailable = false;
var goingBack;
var pixelNum;
var vectorNum;
var _3dNum;

var video;
function closeComplete() {
	//console.log(video);
	if(!goingBack) {
		if		(video == "rader") 				raderVideo(); 
		else if	(video == "currentmovement") 	currentMovementVideo();
		else if	(video == "visqueen") 			visqueenVideo();
		else if	(video == "customball") 		customballVideo();
		else if	(video == "notion") 			notionVideo();
		else if	(video == "geary") 				gearyVideo(); 
		else if	(video == "changingroom") 		changingRoomVideo();
		else if	(video == "robertivers") 		robertiversVideo();
		else if	(video == "local638") 			local638Video();
		else if	(video == "masterful") 			masterfulVideo(); 
		else if	(video == "staging") 			stagingVideo();
		else if	(video == "writeforcollege") 	writeforcollegeVideo();
		else if	(video == "jquery") 			jqueryScripts();
		else if	(video == "php") 				phpScripts(); 
		else if	(video == "as") 				asScripts();
		else if	(video == "css") 				cssScripts();
		else if	(video == "syntaxbros") 		syntaxBrosGame();
		else if	(video == "dieantsdie") 		dieAntsDieGame();
		else if	(video == "wegesture")	 		weGestureSite();
		else if	(video == "sociallogik")	 	sociallogikVideo();
		else if	(video == "air")	 			airVideo();
		else if	(video == "pixelgallery") 		pixelsGallery();
		else if	(video == "vectorgallery") 		vectorsGallery();
		else if	(video == "3dgallery") 			_3dGallery();
		
		video = "";
	} else {
		goingBack = false;
		
		if		(backLoc == "web") 				web();
		else if	(backLoc == "mobile") 			mobile();
		else if	(backLoc == "games") 			games();
		else if	(backLoc == "prototypes") 		prototypes();
		else if	(backLoc == "code") 			code();
		else if	(backLoc == "pixels") 			pixels();
		else if	(backLoc == "vectors") 			vectors();
		else if	(backLoc == "3d") 				_3D();
		
		backAvailable = false;
	}
}

function goback() {
	goingBack = true;
	$.prettyPhoto.close();
}

function rader() 			{ video = "rader"; 				$.prettyPhoto.close(); }
function currentmovement() 	{ video = "currentmovement"; 	$.prettyPhoto.close(); }
function visqueen() 		{ video = "visqueen"; 			$.prettyPhoto.close(); }
function customball() 		{ video = "customball"; 		$.prettyPhoto.close(); }
function notion() 			{ video = "notion";	 			$.prettyPhoto.close(); }
function geary() 			{ video = "geary";	 			$.prettyPhoto.close(); }
function changingroom()		{ video = "changingroom";	 	$.prettyPhoto.close(); }
function robertivers() 		{ video = "robertivers";		$.prettyPhoto.close(); }
function local638() 		{ video = "local638";	 		$.prettyPhoto.close(); }
function masterful() 		{ video = "masterful";	 		$.prettyPhoto.close(); }
function staging() 			{ video = "staging";	 		$.prettyPhoto.close(); }
function writeforcollege() 	{ video = "writeforcollege";	$.prettyPhoto.close(); }
function jquery() 			{ video = "jquery"; 			$.prettyPhoto.close(); }
function php() 				{ video = "php"; 				$.prettyPhoto.close(); }
function actionscript() 	{ video = "as"; 				$.prettyPhoto.close(); }
function css3() 			{ video = "css";	 			$.prettyPhoto.close(); }
function syntaxbros() 		{ video = "syntaxbros";	 		$.prettyPhoto.close(); }
function dieantsdie() 		{ video = "dieantsdie";	 		$.prettyPhoto.close(); }
function wegesture() 		{ video = "wegesture";	 		$.prettyPhoto.close(); }
function sociallogik() 		{ video = "sociallogik";	 	$.prettyPhoto.close(); }
function air() 				{ video = "air";	 			$.prettyPhoto.close(); }
function pixelsgallery(n)	{ video = "pixelgallery";		$.prettyPhoto.close(); 			pixelNum = n; }
function vectorsgallery(n)	{ video = "vectorgallery";		$.prettyPhoto.close(); 			vectorNum = n; }
function _3dgallery(n)		{ video = "3dgallery";			$.prettyPhoto.close(); 			_3dNum = n; }
