function make_image(data) {
		var link = $('<a>');
		link
			.attr('href', data.image)
			.addClass("image direct portfolio")
			.data('id', data.id);

		var image_container = $('<div class="img_container">').appendTo(link);
		image_container
				.css('height','270px')
				.css('overflow','hidden');

		var thumbnail = $('<img>').appendTo(image_container);
		thumbnail
			.attr('src', data.thumbnail)
			.attr('alt', data.title)
			.css('width','100%');

		var desc = $('<div class="desc">').appendTo(link);
		var header = $('<p>').appendTo(desc);
		header
			.text(data.title);
		var para = $(data.description).appendTo(desc);

		return link;
	}
/*
	*** script for showing each gallery in Portfolio Gallery
	*/
script for showing each gallery in Portfolio Gallery
script for showing each gallery in Portfolio Gallery
function make_image(data) {
		var link = $('<a>');
		link
			.attr('href', data.image)
			.addClass("image direct portfolio")
			.data('id', data.id);
		var image_container = $('<div class="img_container">').appendTo(link);
		image_container
				.css('height','270px')
				.css('overflow','hidden');
		var thumbnail = $('<img>').appendTo(image_container);
		thumbnail
			.attr('src', data.thumbnail)
			.attr('alt', data.title)
			.css('width','100%');
		var desc = $('<div class="desc">').appendTo(link);
		var header = $('<p>').appendTo(desc);
		header
			.text(data.title);
		var para = $(data.description).appendTo(desc);
		return link;
	}
function make_image ( data ) { var link = $ ( '<a>' ) ; link . attr ( 'href' , data . image ) . addClass ( "image direct portfolio" ) . data ( 'id' , data . id ) ; var image_container = $ ( '<div class="img_container">' ) . appendTo ( link ) ; image_container . css ( 'height' , '270px' ) . css ( 'overflow' , 'hidden' ) ; var thumbnail = $ ( '<img>' ) . appendTo ( image_container ) ; thumbnail . attr ( 'src' , data . thumbnail ) . attr ( 'alt' , data . title ) . css ( 'width' , '100%' ) ; var desc = $ ( '<div class="desc">' ) . appendTo ( link ) ; var header = $ ( '<p>' ) . appendTo ( desc ) ; header . text ( data . title ) ; var para = $ ( data . description ) . appendTo ( desc ) ; return link ; }
script for showing each gallery in Portfolio Gallery
script for showing each gallery in Portfolio Gallery