function pixels() {
	backLoc = "pixels";
	backAvailable = false;
		
	var width = Math.floor(($(window).width() / 350)) * 350;
	$.prettyPhoto.open(
		'pixels.html?iframe=true&width='+width+'&height=95%',
		"<span style='color:#84E7FF;'>Argyle Ink</span> » Pixel Gallery",
		"<img src='images/Photoshop.png' title='Adobe Photoshop' height='25' width='25'  /> \
		 <img src='images/Fireworks.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 "
	);
}

function pixelsGallery() {
	backAvailable = true;
	
	path = "pixels/";
	images = [
		path + "lungs.jpg",
		path + "bio.jpg",
		path + "die-ants-die-home.jpg",
		path + "rambo.jpg",
		path + "robert.png",
		path + "current-movement.png",
		path + "loading.jpg",
		path + "2nd_Hit.jpg",
		path + "changing-room.png"
	];
	titles = 		[ "", "", "", "", "", "", "", "", "" ];
	descriptions = 	[ "", "", "", "", "", "", "", "", "" ];
	
	var temp = images.slice(pixelNum-1,images.length);
	images = temp.concat( images.slice(0,pixelNum-1) );
	
	$.prettyPhoto.open(images,titles,descriptions);
}

function vectors() {	
	backLoc = "vectors";
	backAvailable = false;
	
	var width = Math.floor(($(window).width() / 350)) * 350;
	$.prettyPhoto.open(	
		'vectors.html?iframe=true&width='+width+'&height=95%',
		"<span style='color:#84E7FF;'>Argyle Ink</span> » Vector Gallery",
		"<img src='images/Illustrator.png' title='Adobe Illustrator' height='25' width='25' /> \
		 <img src='images/Fireworks.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 "
	);
}

function vectorsGallery() {
	backAvailable = true;
	
	path = "vectors/";
	images = [
		path + "AdamBro.png",
		path + "galaga.jpg",
		path + "levels_comp2.png",
		path + "notion.jpg",
		path + "wedding-photo.jpg",
		path + "title.png",
		path + "bug_comps.png",
		path + "logo.jpg",
		path + "punchout.jpg"
	];
	titles = 		[ "", "", "", "", "", "", "", "", "" ];
	descriptions = 	[ "", "", "", "", "", "", "", "", "" ];
	
	var temp = images.slice(vectorNum-1,images.length);
	images = temp.concat( images.slice(0,vectorNum-1) );
	
	$.prettyPhoto.open(images,titles,descriptions);
}

function _3D() {	
	backLoc = "3D";
	backAvailable = false;
	
	var width = Math.floor(($(window).width() / 350)) * 350;
	if(width > 1050) width = 1050;
	
	var height = $(window).height();
	if(height > 650) height = 580;
	else height = "95%";
	
	$.prettyPhoto.open(
		'3D.html?iframe=true&width='+width+'&height='+height,
		"<span style='color:#84E7FF;'>Argyle Ink</span> » 3D Gallery",
		"<img src='images/after_effects.png' title='Adobe After Effects' height='25' width='25'  /> \
		 <img src='images/Flash.png' title='Adobe Flash' height='25' width='25'  /> \
		 <img src='images/maya.jpg' title='Maya' height='25' width='25'  />"
	);
}

function _3dGallery() {
	backAvailable = true;
	
	path = "3D/";
	images = [
		path + "motorcycle_3D.swf?iframe=true&width=720&height=440",
		path + "ally.html?iframe=true&width=725&height=485",
		path + "sunAndSky10.jpg",
		path + "argyle_img4.jpg",
		path + "exhibition_1.jpg",
		path + "midterm1.jpg"
	];
	titles = 		[ "", "", "", "", "", "" ];
	descriptions = 	[ "", "", "", "", "", "" ];
	
	var temp = images.slice(_3dNum-1,images.length);
	images = temp.concat( images.slice(0,_3dNum-1) );
	
	$.prettyPhoto.open(images,titles,descriptions);
}


function prototypes() {	
	backLoc = "prototypes";
	backAvailable = false;
	
	$.prettyPhoto.open(	
		'prototypes.html?iframe=true&width=1050&height=290',
		"<span style='color:#84E7FF;'>Argyle Ink</span> » Prototypes Gallery",
		"<img src='images/Illustrator.png' title='Adobe Illustrator' height='25' width='25' /> \
		 <img src='images/Fireworks.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 <img src='images/Dreamweaver.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 <img src='images/FlexBuilder.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 <img src='images/Photoshop.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 <img src='images/after_effects.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 <img src='images/InDesign.png' title='Adobe Fireworks' height='25' width='25'  /> \
		 "
	);
}

function code() {	
	backLoc = "code";
	backAvailable = false;
	
	$.prettyPhoto.open(
		'code.html?iframe=true&width=700&height=580',
		"<span style='color:#84E7FF;'>Argyle Ink</span> » Code Gallery",
		"<img src='images/after_effects.png' title='Adobe After Effects' height='25' width='25'  /> \
		 <img src='images/Flash.png' title='Adobe Flash' height='25' width='25'  /> \
		 <img src='images/maya.jpg' title='Maya' height='25' width='25'  />"
	);
}
