function menuCode(){menuArray=[

["Invisible Jack | VFX Short","nNqekrS2z3U","<p> This short film was made for a individual VFX assessment project at the Northumbria university. The students were instrcted to demonstrate skills Matchmoving, Keying, Effects production, intergration and compositing. Total Production and postproduction duration - 6 Weeks</p> <br /><p>Software : Adobe After Effects, Adobe Photoshop, Voodoo.</p>","N/A","N/A</p>","N/A</p>","N/A</p>"],

["Invisible Jack | Shot Breakdown","iJHz_yQS-9k","<p>Shot breakdown of the VFX short, Invisible Jack.</p> <br /><p> Software : After Effects, Photoshop.</p>","N/A","N/A</p>","N/A</p>","N/A</p>"],

["Compositing showreel | 2011","shdo9UXciB8","<p>This compositing showreel includes shot breakdowns of few projects which involved great amount of compositing work. </p> <br /><p>Software : Maya.</p>","N/A","N/A</p>","N/A</p>","N/A</p>"],

["Animated Motion Variants","mi4kxxiSaP0","<p> This animated clip was made for an animation research assesment project at the Northumbria university. All the variants were made using a single keyframed walk cycle. The Idea was inspired by a reserch paper by Jonathan Eisenmann, Matt Lewis, Bryan Cline, Available at http://accad.osu.edu/Projects/Evo/</p> <br /><p>Software : Maya.</p>","N/A","N/A</p>","N/A</p>","N/A</p>"],

["Showreel 2005 - 2009","3I8PzeEA-U0","<p> The showreel for 2005-2009, includes featured work in Compositing, Motion Graphics, and 2D/3D Animation.</p><br /><p> Software: Adobe After Effects, Adobe Photoshop, Adobe Illustrator, Adobe Premiere, Maya, Boujou</p>","Showreel_2005_2009_","mpg4 HQ 80mb</p>","low Res 18mb</p>","41mb</p>"],

["ITN Station Animation","e_XrcjR2gNI","<p The Station Animation made for ITN, the monthly format for February 2007.</p><p> The &acute;matrix&acute; like text effect was made with After Effects expressions. The rendered sequence was then used as a texture map in Maya. The wire like animation in the end was created with Trapcode 3D stroke.<p>","Station_Animation_","mpg4 HQ 11mb</p>","8mb</p>","7mb</p>"],

["Rajawaliya Theme","fk1y6479g_0","<p> This animation was made for the program &acute;Rajawaliya&acute; (The lineage of Kings) telecasted on ITN, February 2006.</p> <br /><p>Software : Maya, Adobe After Effects and Adobe.</p>","rajawaliya_","mpg4 HQ 10mb</p>","6mb</p>","6mb</p>"],

["Oya Magenam - BnS","IEaVem0fcH8","<p> The post production work of this music video was very complex and challenging. 2D animations was done by Madhawa Nagahawatta of Studio Yaagee while Irshad Nadheem & Chamika Jinadasa worked as Rotoscoping artists.</p> <br /> <p>Software :  Adobe After Effects, Adobe Photoshop, Adobe Illustrator, Maya 7, Anime Studio Pro, Boujou </p>","bns_","mpg4 HQ 75mb</p>","46mb</p>","38mb</p>"],

["Shanida Wasana","aNK_jZq7Ozg","<p> This is the TV commercial made for the national lotteries board, for the &acute;Shanida Wasana&acute; lottery Re-launch in 2009. The entire commercial was rotoscoped. Backgrounds were created with Photoshop. The Video was shot with Sony XDCAM Ex-1 on 1080 50i format.</p><br /><p> </p><p> Software : After Effects, Photoshop, Adobe Premiere </p>","shanida_","HD720 34mb</p>","10mb</p>","9mb</p>"],

["Biz News Trailer - 2007","D6asSMU6l7Q","<p> The promotional trailer made for &acute;ITN Biz News&acute; in 2007. Maya 3d Camera data has been used in After Effects with 3D video layers to create the camera movement.</p><br /><p>Software :  Maya, Adobe After Effects, Adobe Photoshop.</p>","biz_news_2007_","mpg4 HQ 5mb</p>","4mb</p>","4mb</p>"],

["Biz News Theme","eKt2u4BTYgg","<p &acute;ITN Biz News&acute;  main theme made in 2007. This theme was animated entirely in Adobe After Effects.</p><br /> <p> Software : Adobe after Effects, Adobe Photoshop.</p>","Biz_Theme_","mpg4 HQ 6mb</p>","4mb</p>","3mb</p>"],

["Biz News Key Background","HrAeJcatNB0","<p> The key background made for &acute;Biz News&acute;  in 2007. This was entirely animated with Adobe After Effects.</p><br /> <p> Software : Adobe after Effects, Adobe Photoshop.</p>","Biz_BG_","mpg4 HQ 5mb</p>","3mb</p>","2mb</p>"],

["Gajaba Super Cross 2006","B8mrF_ei33M","<p> The main theme animation made for &acute;Gajaba Super Cross 2006&acute;.</p><p>Note : The audio track has been disabled due to copyright factors. Please download the audio enabled video</p><br /><p><p>Software : Maya, Adobe After Effects, Adobe Photoshop, Adobe Premier</p> ","Gajaba_2006_","15mb</p>","mpg4 HQ 9mb</p>","8mb</p>"],

["Gajaba Super Cross 2007","Q-_xsEGqMzs","<p> The main theme animation made for &acute;Gajaba Super Cross 2007&acute;. The Car models was taken from a model library. This entire sequence was made with Maya&acute;s playblast output and colour graded with After Effects.</p><br /><p>Software : Maya 7, Adobe After Effects, Adobe Photoshop</p>","Gajaba_2007_","mpg4 HQ 9mb</p>","5mb</p>","5mb</p>"],

["School Boy Cricketer","xM6Q8K-0ARw","<p> This is the main theme animation made for the sports program &acute;School Boy Cricketer&acute;.</p><br /><p>Software : Maya 7, Adobe After Effects, Adobe Photoshop </p>","SBC_","mpg4 HQ 5mb</p>","3mb</p>","3mb</p>"],

["Children&acute;s Programmes","2NW5bjCoEwM","<p> This is the common promotional Trailer made for all children&acute;s programs at ITN in 2006.</p><br /><p> The Background artwork was done by Mr. Sunil Zoysa of the Set Department at ITN. This is one of my first match moving and compositing works.</p><br /><p>Software : Maya 6.0, Adobe After Effects, Adobe Photoshop</p>","childrens_belt_","mpg4 HQ 18mb</p>","9mb</p>","9mb</p>"],

["Lahiru Madala","WMIZxJ8vf9s","<p>&acute;Laharu Madala&acute; children&acute;s program promotional trailer made for ITN. All the backgrounds were drawn with Illustrator and animated In After Effects. The Sequence in the bubble on 0:20 is live action video with Photoshop&acute;s &acute;Cutout&acute; filter applied.</p><br /><p>Software : Adobe After Effects, Adobe Illustrator, Maya, Adobe Photoshop</p>","laharu_madala_","mpg4 HQ 16mb</p>","9mb</p>","8mb</p>"],

["Color Brite Paints","ckI3iQyzTHA","<p> This is a TV commercial made for &acute;Color Brite Paints&acute;. Some backgrounds were reconstructed, while a color change effect was given to some shots. </p><br /><p>Director : Sunanda Weerasinghe</p> </p><br /> <p>Software :Adobe After Effects, Adobe Photoshop,</p> ","colour_brite_","mpg4 HQ 11mb</p>","7mb</p>","6mb</p>"],

["ITN Monthly Theme","KhlpVGOfbPQ","<p> Monthly theme animations made for ITN. The base concept of this is the matrix like text effect is that it is made with expressions and text layers in After Effects 6.5.</p><br /> <p>Software : Adobe After Effects, Maya, Adobe Photoshop</p>","monthly_theme_","mpg4 HQ 9mb</p>","5mb</p>","5mb</p>"],

["Nimthera Theme","DKt87nd35Y8","<p> Main Theme made for &acute;Nimthera&acute;, a musical program at ITN. The Background was created with ink splatters and &acute;Vector Blur&acute; effect.</p> <br /> <p>Software : Adobe After Effects, Adobe Illustrator</p>","nimthera_","mpg4 HQ 5mb</p>","3mb</p>","3mb</p>"],

["Norman Mahinda","aTWGBOAvRmk","<p> The main theme for a talk show on ITN. Character drawings was done by Mr. Sunil Zoysa of the Set Department at ITN. Then all the designs were re-drawn in Illustrator, splitting them into layers, in order to import them to Flash. The Characters were animated using Flash&acute;s motion tween.</p><br /><p>Software : Flash 8, Illustrator, After Effects.</p>","norman_mahinda_","mpg4 HQ 3mb</p>","3mb</p>","4mb</p>"],

["Liyawaruna Theme","4wciI7cmVhw","<p> This is the Theme made for the 2008 Women&acute;s Day programs. The video was edited by Rukshan Chandraratne.  </p><br /> <p> Software : Adobe After Effects, Adobe Photoshop, Adobe Illustrator</p>","liyawaruna_","mpg4 HQ 7mb</p>","5mb</p>","4mb</p>"],

["Stock Market Update","GGlLTM5bSsc","<p> The promotional trailer for the &acute;Stock market update highilights&acute;. 3D Camera Data was imported from Maya to After Effects for the final composite. Text animations were done in After Effects.</p> <br /> <p>Software : Maya 7, Adobe After Effects</p>","stock_market_","mpg4 HQ 6mb</p>","3mb</p>","3mb</p>"],

["Riviresa 2006 Trailer","_zEwZZr2gjs","<p> This promotional trailer was made for the &acute;Riviresa&acute; Program telecasted on ITN in 2006.</p><br /> <p> Software : Adobe After Effects, Adobe Photoshop</p>","Riviresa_","2mb</p>",null,null],];

i=0;

type=["h264","flv","wmv"];

for(i=0;i<=23;i++){
	
	a=menuArray[i][0];
	b=menuArray[i][1];
	c=menuArray[i][2];
	d=menuArray[i][3];
	e=menuArray[i][4];
	f=menuArray[i][5];
	g=menuArray[i][6];
	variables=["","",""];
	v1=v2=v2=null;
	j=0;
	
	for(j=0;j<=2;j++){
		
		url="files/video/"+d+type[j];
		
		cCode="pageTracker._trackEvent(&acute;video&acute;,&acute;"+a+"&acute;, &acute;"+type[j]+"&acute;)";
		
		linkCode="<p><a title=&quot;&acute;"+type[j]+"&acute;&quot; onClick=&quot;"+cCode+"&quot;  href=&quot;"+url+".zip&quot;>"+type[j]+"</a> ";
		
		variables[j]=linkCode};
		
		var downCode;
		
		if(e){v1=variables[0]+e+"</p>";
		downCode=v1};if(f){v2=variables[1]+f+"</p>";
		downCode=downCode+v2};
		if(g){v3=variables[2]+g+"</p>";
		downCode=downCode+v3};
		i=i++;
		document.write('<div class="cont-entry" style="background-image:url(images/'+b+'_fade.jpg)"> <a onclick="loadNewVideo(\''+b+'\' , \''+a+'\', \''+c+'\' , \''+downCode+'\' )"> <img src="images/'+b+'.jpg" border="0" width="60" height="50" alt="'+a+'" title="'+a+'" style="opacity:0;filter:alpha(opacity=00)" id="thumb_'+i+'" onmouseover="fadeIn(thumb_'+i+')" onmouseout="fadeOut(thumb_'+i+')"	 /></a> </div>')}};
		
		function volumeCode(){i=1;for(i=1;i<=10;i++){
			
			document.write('<div class="vol-tick" id="vol-'+i+'"> <a href="javascript:void(0)" onmouseup="setVolume('+(i*10)+');"><img height="10" width="4" src="images/null.png"  border="0"/></a> </div>')}document.write('<div class="vol-val"> <span id="volume">--</span> </div>')
		
		}
	
	function seekCode(){
		i=1;
		for(i=1;i<=150;i++){
			
			document.write('<div class="seek-tick" id="seek-'+i+'"> <a href="javascript:void(0)" onmouseup="seekTo('+(i)+');"><img height="10" width="3" src="images/null.png"  border="0"/></a> </div>')}}
			
			function setMute(){
				
				if(sound){
					
				mute();
				$('div.vol-but').css('background-image','url(images/bt-mute.png)');
				sound=false
				}
				
				else{unMute();
				sound=true;
				$('div.vol-but').css('background-image','url(images/bt-audio.png)')}
				
			};
				
			function setPlay(){
					
				a=getPlayerState();
					if(a==0||a==2){
					
					play();$('div.play').css('background-image','url(images/bt-pause.png)')
					
					}
						
					else if(a==1){pause();
					$('div.play').css('background-image','url(images/bt-play.png)')
					}
				}
						
				function fadeIn(a){
						$(a).stop().animate({"opacity":"1"},500)
				};
						
				function fadeOut(a){
						
						$(a).stop().animate({"opacity":"0"},500)
				};
						
				function changeTitle(title,dis,down){
						
					if(title){document.getElementById("port-title").innerHTML=title}
						
					if(title){document.getElementById("disTitle").innerHTML=title}
					
					
					if(dis){document.getElementById("dis").innerHTML=dis}
							
					if(down){document.getElementById("down").innerHTML=down}
						
				$("#port-dis").animate({"opacity":"1"},500);
				
				
};
