	
	function openShadowbox(args){
	
		 var defaults = { 
			content:    '<p>test</p>',
			player:     'html',
			title:      'title',
			color:      '#000000',
			thickness:	'1px',
			icon:		"close.png",
			height:		480,
			width: 		640,
			enableKeys: false
		};
				
		var options = $.extend({}, defaults, args); 

		$("#sb-body").css("border", "solid " + options.color + " " + options.thickness);
	    $("#sb-nav").css("height","32px");
	    $("#sb-nav").css("width","32px");
	    $("#sb-info, #sb-info-inner").css("height","34px");
		$("#sb-nav-close").css("height","32px");
		$("#sb-nav-close").css("width","32px");	
		$("#sb-nav-close").css("background-image", "url(js/shadowbox/resources/" + options.icon + ")");
		$("#sb-nav-close").css("background-repeat", "no-repeat");
			    
	    Shadowbox.open( options );
	 
	     
	}




	function displayGallery(options){
	
		var defaults = { 
			//content: 	'/gallery/gallery.php',
			content: 	'/gallery/av/' + options.project + '/index.html',
			player:     'iframe',
			title:      '',
			color:      '#00a2ff',
			thickness:	'1px', 
			icon:		"close_b.png",
			height:		759.808,
			width: 		960
		 };
		 
		 var options = $.extend({}, defaults, options);
		 
		$("#sb-body").css("border", "solid " + options.color + " " + options.thickness);
	    $("#sb-nav").css("height","32px");
	    $("#sb-nav").css("width","32px");
	    $("#sb-info, #sb-info-inner").css("height","34px");
		$("#sb-nav-close").css("height","32px");
		$("#sb-nav-close").css("width","32px");	
		$("#sb-nav-close").css("background-image", "url(js/shadowbox/resources/" + options.icon + ")");
		$("#sb-nav-close").css("background-repeat", "no-repeat");
		
		Shadowbox.open(options);		
		
		
		
	}
	