var portfolio = new Array(
 new Array("BUZNOFF.COM Video Tutorials",
        "BUZNOFF.COM",
        "buznoff.jpg",
        "<b>BUZNOFF.COM</b> is a proof-of-concept web site for video tutorials. The site features user generated video tutorials, an online community, tagging, search, and commenting and raking by viewers. The system allows video file uploads in multiple formats and uses server-side software to perform video format conversion and screenshot creation for the video."
 ),
 new Array("United Nations Democracy Fund",
	"United Nations",
	"un.jpg",
	"<b>United Nations Democracy Fund</b> needed web-based software for proposal submission and management. ElGraph created an advanced online application that is available in different languages, uses AJAX error checking, dynamically changes requirements based on user input, and is extremely fast-loading for users in remote parts of the world. The administrative interface includes tools to list/search/sort submitted proposals, annotate submissions, run reports, and manage applications' status."
 ),
 new Array("Cliff Cards",
	"Cliff Cards",
	"cliffcards.jpg",
	"<b>Cliff Cards</b> is a proof-of-concept web site allows people to send postcards to friends, relatives, and business partners using images taken by their mobile phones and submitted via mobile email or MMS to the site. The site uses advanced technology to process MMS and mobile email messages from top service providers such as Verizon Wireless, AT&amp;T, and Sprint. Cards are generated automatically using server-side image manipulation software, and are automatically uploaded to digital printer's order fulfillment systems where they are printed and mailed.</p>"
 ),
 new Array("PrintOnDemand.com",
	"PrintOnDemand.com",
	"pod.jpg",
	"<b>PrintOnDemand.com</b> (recently acquired by LuLu.com) is a community portal for digital printers. This high traffic site provides daily news and features virtual tradeshow, intelligent location-based printer search engine, member registration and management system for both digital printers and virtual tradeshow exhibitors, PayPal payment system integration, event planner calendar, news module, and many more advanced features. </p>"
 ),
 new Array("American University",
	"American University",
	"au.jpg",
	"<b>American University's</b> Political Direct Mail Archive is the database of over 10,000 samples of direct mail. The system created by ElGraph Design Group, Inc. features user registration, access control, and sophisticated search and browsing modules that allow to locate and view direct mail samples. Administrative tools include modules for user account management and record management.</p>"
 ),
 new Array("AGIS",
	"AGIS",
	"agis.jpg",
	"<b>AssistGuide Information Services</b> is an information portal for caregivers who look after the aging. The site has a vast amount of information organized by topics with a clear navigational structure. ElGraph Design Group, Inc. worked with the AGIS team to make this website a success.</p>"
 ),
 new Array("Bella Pictures",
	"Bella Pictures",
	"bella.jpg",
	"<b>Bella Pictures</b> provides wedding photography services and provides powerful online tools to clients and photographers. ElGraph Design Group, Inc. has created modules for client account administration, photo upload and management, scheduling, and many others.</p>"
 ),
 new Array("Vino Volo",
	"Vino Volo",
	"vinovolo.jpg",
	"<b>Vino Volo</b> serves high-end wine in major airports in the USA. VinoVolo.com is a full-featured e-commerce store with a powerful administrative panel. The system accounts for U.S. wine shipping restrictions and supports shipments from multiple warehouses spread throughout the country. Now one can enjoy wine in the stores as well as order it online. Wine can be selected based on various criteria, such as taste, winery, complexity, and much more. The website also offers a wine club membership with recurring billing, so customers can enjoy their favorite wines every month.</p>"
 ),
 new Array("Mobility Leader",
	"Mobility Leader",
	"mleader.jpg",
	"<b>Mobility Leader</b> is a portal for HR professionals who specialize in workforce mobility. The site is packed with community facilitating features such as forums, instant messenger, online meetings integrated with WebEx, video library, custom-built survey module, and content rating system.</p>"
 )
);

function showProject(projectNum) {
        $('#header h1').html(portfolio[projectNum][0]);
        $('#descr p').html(portfolio[projectNum][3]);
        $('#screen').attr('src','/img/showcase/' + portfolio[projectNum][2]);
	$('.on').removeClass('on');
	$('#link' + projectNum).addClass('on');
}

$('document').ready(function(){
	// show portfolio links
	$.each(portfolio,function(i,obj){
		$('#projectLinks').append(
			'<a class="ourwork" id="link' + i + '" href="javascript:showProject(' + i + ');">' +
			obj[1] +
			'</a><br/>'
		);
	});

	// add shadow
        $('.showcase').dropShadow({
                color   : '#000000',
                left    : 3,
                top     : 3
        });

	// show the first project
	showProject(0);

	// preload images
	var imageArray = new Array();
	$.each(portfolio,function(i,obj){
    		imageArray[i] = $('<img>').attr('src', '/img/showcase/' + obj[2]);
	});
});

