var browserName=navigator.appName;
var left_align = 268; // Set the left position to center the greybox
var top_align = 134;  // Set the top position to center the greybox
var DDSPEED = 4;
var DDPOS = 0;
var DDTIMER = 15;

function disp(video, hideid){
		
		if(browserName == "Netscape"){
		  var stop = document.documentElement.scrollTop;  
		  //document.getElementById('ebox1').style.height=document.body.offsetHeight+"px";
		  document.getElementById('slightbox_main').style.position = "fixed";
		  var dispTop = (window.innerHeight - 500) / 2;
		  document.getElementById('slightbox_main').style.top=10+"px";
		}else{
		  document.getElementById('slightbox_main').style.position = "fixed";
		  document.getElementById('slightbox_main').style.top=10+"px";
		}
		
		var bodyHeight = document.body.clientHeight;
		var bodyWidth = document.body.clientWidth;
		var dispLeft = (bodyWidth - 848) / 2;
				
		document.getElementById('ebox1').style.display='block'; 
		//document.getElementById('slightbox_main').style.left=dispLeft+"px";
		document.getElementById('ebox1').style.height=bodyHeight+"px";
		document.getElementById('ebox1').style.width=bodyWidth+"px";
		document.getElementById('ebox1').style.zIndex=100; 
		var innerHeight = stop + 70;
		
		var top_pos = stop+top_align;   
		
		var sleft = window.pageXOffset || document.body.scrollLeft || document.documentElement.scrollLeft;
		var left_pos = sleft+left_align;
		
		var h = document.getElementById('slightbox_main');
		var c = document.getElementById('slightbox_main');
		
		if (document.getElementById('slightbox_main').style.display == "none"){
			var d = 1;	 
			c.style.display = 'block';
		}else{
			var d = -1;
		}
		
		clearInterval(c.timer);
		if(d == 1){
			if(c.maxh && c.maxh <= c.offsetHeight){return}
			else if(!c.maxh){
			  c.style.display = 'block';
			  c.style.height = 'auto';
			  c.style.width = 'auto';
			  c.maxh = 550;
			  c.maxw = 848;
			  c.style.height = '0px';
			  c.style.width = '0px';
			}
			c.timer = setInterval(function(){newddSlide(c,1)},DDTIMER);
		}else{
			h.timer = setTimeout(function(){newddCollapse(c)},50);
		}

	
	
	/*document.getElementById('mediaspace').innerHTML = '<object id="flowplayer" name="flowplayer" width="768" height="432" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="AllowFullScreen" value="true"><param name="AllowScriptAccess" value="always"><param name="wmode" value="Window"><param name="bgcolor" value="#000000"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="Movie" VALUE="flash/flowplayer-3.2.4.swf"><PARAM NAME="Src" VALUE="flash/flowplayer-3.2.4.swf"><param name="flashvars" value=\'config={"key":"$2ca1778baa926c01db6","clip":{"scaling":"orig","autoBuffering":true,"autoPlay":false},"canvas":{"backgroundColor":"#000000"},"plugins":{"controls":{"bufferGradient":"none","buttonColor":"#3394F4","timeColor":"#ffffff","borderRadius":"0","durationColor":"#ffffff","progressColor":"#3394f4","backgroundGradient":"none","progressGradient":"medium","backgroundColor":"#000000","sliderGradient":"none","buttonOverColor":"#e17859","sliderColor":"#000000","bufferColor":"#91c8ff","opacity":1,"play":true,"volume":true,"mute":true,"time":true,"stop":true,"playlist":true,"fullscreen":true}},"playlist":[{"url":"http://www.profishinsea.co.uk/client_area/oddmanout/site/images/splash.jpg","autoPlay":true,"scaling":"fit","autoBuffering":true},{"url":"http://profishinsea.co.uk/client_area/oddmanout/site/'+video+'","autoPlay":false,"scaling":"fit","autoBuffering":true}],"playerId":"player"}\' /><!-- EMBED tag for Netscape Navigator 2.0+ and Mozilla compatible browsers --><embed type="application/x-shockwave-flash" width="768" height="432" allowfullscreen="true" wmode="opaque" src="flash/flowplayer-3.2.4.swf" flashvars=\'config={"key":"$2ca1778baa926c01db6","clip":{"scaling":"orig","autoBuffering":true,"autoPlay":false},"canvas":{"backgroundColor":"#000000"},"plugins":{"controls":{"bufferGradient":"none","buttonColor":"#3394F4","timeColor":"#ffffff","borderRadius":"0","durationColor":"#ffffff","progressColor":"#3394f4","backgroundGradient":"none","progressGradient":"medium","backgroundColor":"#000000","sliderGradient":"none","buttonOverColor":"#e17859","sliderColor":"#000000","bufferColor":"#91c8ff","opacity":1,"play":true,"volume":true,"mute":true,"time":true,"stop":true,"playlist":true,"fullscreen":true}},"playlist":[{"url":"http://www.profishinsea.co.uk/client_area/oddmanout/site/images/splash.jpg","autoPlay":true,"scaling":"fit","autoBuffering":true},{"url":"http://profishinsea.co.uk/client_area/oddmanout/site/'+video+'","autoPlay":false,"scaling":"fit","autoBuffering":true}],"playerId":"player"}\'/></object>';*/
	
	document.getElementById('mediaspace').innerHTML = '<object id="flowplayer" name="flowplayer" width="768" height="432" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="AllowFullScreen" value="true"><param name="AllowScriptAccess" value="always"><param name="wmode" value="Window"><param name="bgcolor" value="#000000"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="Movie" VALUE="flash/flowplayer-3.2.4.swf"><PARAM NAME="Src" VALUE="flash/flowplayer-3.2.4.swf"><param name="flashvars" value=\'config={"key":"$2ca1778baa926c01db6","clip":{"scaling":"orig","autoBuffering":true,"autoPlay":false},"canvas":{"backgroundColor":"#000000"},"plugins":{"controls":{"bufferGradient":"none","buttonColor":"#3394F4","timeColor":"#ffffff","borderRadius":"0","durationColor":"#ffffff","progressColor":"#3394f4","backgroundGradient":"none","progressGradient":"none","backgroundColor":"#000000","sliderGradient":"none","buttonOverColor":"#e17859","sliderColor":"#000000","bufferColor":"#91c8ff","opacity":1,"play":true,"volume":true,"mute":true,"time":true,"stop":true,"playlist":true,"fullscreen":true}},"playlist":[{"url":"http://www.profishinsea.co.uk/client_area/oddmanout/site/images/splash.jpg","autoPlay":true,"scaling":"fit","autoBuffering":true},{"url":"http://www.omotv.co.uk/'+video+'","autoPlay":false,"scaling":"fit","autoBuffering":true}],"playerId":"player"}\' /><!-- EMBED tag for Netscape Navigator 2.0+ and Mozilla compatible browsers --><embed type="application/x-shockwave-flash" width="768" height="432" allowfullscreen="true" wmode="opaque" src="flash/flowplayer-3.2.4.swf" flashvars=\'config={"key":"$2ca1778baa926c01db6","clip":{"scaling":"orig","autoBuffering":true,"autoPlay":false},"canvas":{"backgroundColor":"#000000"},"plugins":{"controls":{"bufferGradient":"none","buttonColor":"#3394F4","timeColor":"#ffffff","borderRadius":"0","durationColor":"#ffffff","progressColor":"#3394f4","backgroundGradient":"none","progressGradient":"none","backgroundColor":"#000000","sliderGradient":"none","buttonOverColor":"#e17859","sliderColor":"#000000","bufferColor":"#91c8ff","opacity":1,"play":true,"volume":true,"mute":true,"time":true,"stop":true,"playlist":true,"fullscreen":true}},"playlist":[{"url":"http://www.omotv.co.uk/images/splash.jpg","autoPlay":true,"scaling":"fit","autoBuffering":true},{"url":"http://www.omotv.co.uk/'+video+'","autoPlay":false,"scaling":"fit","autoBuffering":true}],"playerId":"player"}\'/></object>';
	
	
	
	if (hideid == '1'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>Some choice cuts that show off our ideas, writing, filming and motion graphics production capabilities.</p>";	
	}
	if (hideid == '2'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A mood film that shows the vibe and lifestyle of living at top-drawer residential development, Chelsea Creek. The film's content was echoed in the print and touch-screen assets. </p>";	
	}
	if (hideid == '3'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>One of a series of ten case study films, directed by Odd Man Out, showing Serco's Pulse Award winners. In this story, welder Peter Morrissey shows how he devised a repair to Merlin helicopters that has saved Serco's client both time on the ground and several million pounds to date.</p>";	
	}
	if (hideid == '4'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A marketing film for a refurbished warehouse building in Covent Garden that contains both office and retail space. Odd Man Out devised the creative and sourced the local characters.</p>";	
	}
	if (hideid == '5'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>Volume housebuilder Redrow's first venture into TV advertising that launched their new residential collection. We also made this extended version as a marketing film.</p>";	
	}
	if (hideid == '6'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A film to show at a charity auction in Las Vegas for the first build slot of the convertible version of the DBS. Filmed in one day at the Gaydon Proving Ground and Aston Martin's HQ.</p>";	
	}
	if (hideid == '7'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A promotional film, central to the global launch of the new 51-storey landmark Tower at St George Wharf. We also produced 4,000 branded USB sticks, uploaded with the film.</p>";	
	}
	if (hideid == '8'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>We felt a personal approach was appropriate to market this refurbished Central London HQ building, resulting in a mix of interviews, location filming and carefully directed animated CGIs. The film helped the developer achieve Mayfair's highest ever rent.</p>";	
	}
	if (hideid == '9'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>This was the first time the Gaydon factory had been filmed in detail. As well as the six films for their eLearning training initiative, this customer-facing version is being shown in dealer showrooms around the world.</p>";	
	}
	if (hideid == '10'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A film to promote the 'problem' Pavilions Shopping Centre in Birmingham. It was delivered to twenty-one targeted retailers mounted in a portable DVD player. The response and subsequent take-up was dramatic.</p>";	
	}
	if (hideid == '11'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>The Liberal Democrats wanted to replicate Nick Clegg's 'Town Hall' Q&amp;A sessions. It was divided into two parts and shown on consecutive nights.</p>";	
	}
	if (hideid == '12'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>Filmed during a customer test session at the Paul Ricard circuit over two days.  It was used to create excitement and anticipation for the forthcoming motorsport season.</p>";	
	}
	if (hideid == '13'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>One of five films made for the LTGDC's marketing suite, 'The View', built to attract inward investors to an important region east of London.</p>";	
	}
	if (hideid == '14'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A St George marketing film that needed to show the development's sense of community. The film is split into individual modules on the development's microsite.</p>";	
	}
	if (hideid == '15'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>Shot on the public roads around the N&uuml;rburgring in the days after 2008's 24-hour race, we made two product films of the Coup&eacute; and Roadster, as well as several short specification modules, for the V8 Vantage microsite.</p>";	
	}
	if (hideid == '16'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A fun, short intro film for the development's website, highlighting the property's grass roof.</p>";	
	}
	if (hideid == '17'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>Still at the early stages of the scheme, we interviewed the architect to put the project in the context of the Park's heritage. The footage was combined with the agency's CGI animations and played via touch screen in the project's marketing suite.</p>";	
	}
	if (hideid == '18'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>Shot at Monza in Italy, this film covers the first race in ten years of Don Halliday's rare Alfa Romeo Guilietta SZ Coda Tronca. The car was driven by his daughter, racing driver and equestrian star Liz Halliday.</p>";	
	}
	if (hideid == '19'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A short version of a longer film that reflected the raw excitement of this classic 24-hour race held on the Nordschleife at the N&uuml;rburgring. The film features the first appearance of 'Kermit', a bright green Aston Martin N24 Sportshift.</p>";	
	}
	if (hideid == '20'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>With our creative and script, from brief to delivery took just over one week. The response was such that we produced 2,000 DVDs and 10,000 CD-ROMs for customers and sales force.</p>";	
	}
	if (hideid == '21'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>A film that gives a flavour of the excitement and hospitality at Aston Martin's customer track days, now expanded to take place around the world. Shot at Spa-Francorchamps, Belgium.</p>";	
	}
	if (hideid == '22'){
		document.getElementById('caption').innerHTML = "<p style='width:755px'>Shot on the same weekend of the 24-hour race at the N&uuml;rburgring in 2008, the film covers the opening of Aston Martin's new Test Centre near the famous track.</p>";	
	}
}


function hide(id){
	document.getElementById('s'+id).style.display='none';
	document.getElementById('ebox1').style.display='none';
	document.getElementById('mediaspace').innerHTML = '';
	document.getElementById('slightbox_main').style.height = '0';
	document.getElementById('slightbox_main').style.width ='0';
}

function mveditbox() {
	var stop =window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
	document.getElementById('ebox1').style.top=stop+"px";
	
	var tot = stop+top_align;  
	document.getElementById('s'+id).style.top= tot+"px";	
	
	document.getElementById('ebox1').style.height = document.body.clientHeight+"px";
}

// incrementally expand/contract the dropdown and change the opacity //
function newddSlide(c,d){
	var currh = c.offsetHeight;
	var currw = c.offsetWidth;
	var bodyHeight = document.body.clientHeight;
	var bodyWidth = document.body.clientWidth;
	var currl = (bodyWidth - 848) / 2;
	var dist;
	if(d == 1){
		dist = (Math.round((550 - currh) / DDSPEED));
		distw = (Math.round((848 - currw) / DDSPEED));
		distl = (Math.round((currl) / DDSPEED));
		distl = distl - 10;
	}else{
		dist = (Math.round(currh / DDSPEED));
		distw = (Math.round(currw / DDSPEED));
		currh-=4;
	}
	if(dist <= 1 && d == 1){
		dist = 1;
	}
	c.style.height = currh + (dist * d) + 'px';
	c.style.width = currw + (distw * d) + 'px';
	c.style.left = currl + (dist * d) + 'px';
	c.style.top = 10 + (dist * d) + 'px';
	if((currh + (dist * d)) < 1){
		c.style.display = 'none';	
	}
	
	
	if(c.style.height < 550+'px' || c.style.height == ''){
		document.getElementById('mediaspace').style.display = 'none';
		document.getElementById('caption').style.display = 'none';
		document.getElementById('close').style.display = 'none';
		document.getElementById('lightbox_btm').style.display = 'none';
	}else{
		document.getElementById('mediaspace').style.display = 'block';
		document.getElementById('caption').style.display = 'block';
		document.getElementById('close').style.display = 'block';
		document.getElementById('lightbox_btm').style.display = 'block';
	}
	/*c.style.opacity = currh / 512;
	c.style.filter = 'alpha(opacity=' + (currh * 100 / 512) + ')';*/
	if((currh < 2 && d != 1) || (currh > (550 - 2) && d == 1)){
	clearInterval(c.timer);
	}
}

function dispVideo(){
	
	var i;
	var k;
	var rannum;
	var rannum2;
	
	for(i = 1; i < 2; i++) {
		rannum = Math.random()*20;
		rannum = Math.round(rannum);
		if(rannum == 0 || rannum == '0'){
			rannum = 1;	
		}
	}
	for(k = 1; k < 2; k++) {
		rannum2 = Math.random()*20;
		rannum2 = Math.round(rannum2);
		if(rannum2 == 0 || rannum2 == '0'){
		 	rannum2 = 1;  
		}
		if(rannum2 == rannum){
			rannum2 = Math.random()*20;
			rannum2 = Math.round(rannum2);
			if(rannum2 == 0 || rannum2 == '0'){
				rannum2 = 1;  
			}
		}
	}
	
	
	if(rannum == '1'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/OMO_Promo_2010.mp4\",\"1\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/OMO_Promo_2010.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Odd Man Out Promo Reel</p>';
	}
	if(rannum == '2'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/ChelseaCreek_Short.mp4\",\"2\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/ChelseaCreek.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Chelsea Creek</p><p><span style="color:#3394f4;">Client:</span> St George Central London</p>';
	}
	if(rannum == '3'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/Serco_Morrissey.mp4\",\"3\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Serco_Morrissey.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Pulse Awards Case Studies 2009</p><p><span style="color:#3394f4;">Client:</span> Serco</p><p><span style="color:#3394f4;">Production Company:</span> CS Live</p>';
	}
	if(rannum == '4'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/Seven_Dials.mp4\",\"4\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Seven_Dials.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Seven Dials Warehouse</p><p><span style="color:#3394f4;">Client:</span> Schroders</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum == '5'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/Redrow_Marketing.mp4\",\"5\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Redrow_Marketing.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> New Heritage Collection</p><p><span style="color:#3394f4;">Client:</span> Redrow Homes</p><p><span style="color:#3394f4;">Agency:</span> Think BDW</p>';
	}
	if(rannum == '6'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/AM_DBSVolante.mp4\",\"6\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_DBSVolante.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> DBS Volante Teaser</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum == '7'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/Tower_SGW.mp4\",\"7\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Tower_SGW.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> The Tower, One St George Wharf</p><p><span style="color:#3394f4;">Client:</span> St George South London</p>';
	}
	if(rannum == '8'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/12SJS.mp4\",\"8\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/12SJS.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> 12 St James\'s Square</p><p><span style="color:#3394f4;">Client:</span> D2 Private</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum == '9'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/AM_Factory.mp4\",\"9\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_Factory.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Factory Tour</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum == '10'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/Pavilions.mp4\",\"10\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Pavilions.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Pavilions</p><p><span style="color:#3394f4;">Client:</span> UBS Global Asset Management</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum == '11'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/LibDems.mp4\",\"11\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/LibDems.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> European Election Broadcast 2009</p><p><span style="color:#3394f4;">Client:</span> Liberal Democrats</p><p><span style="color:#3394f4;">Co-producer:</span> SeaBlue Media</p>';
	}
	if(rannum == '12'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/AM_Ricard.mp4\",\"12\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_Ricard.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Racing Preview 2008</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum == '13'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/LTGDC_RiversideRegen.mp4\",\"13\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/LTGDC_RiversideRegen.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> The View</p><p><span style="color:#3394f4;">Client:</span> London Thames Gateway DC</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum == '14'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/BeaufortPark.mp4\",\"14\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/BeaufortPark.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Beaufort Park</p><p><span style="color:#3394f4;">Client:</span> St George Central London</p>';
	}
	if(rannum == '15'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/AM_V8Vantage.mp4\",\"15\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_V8Vantage.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> V8 Vantage product film</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum == '16'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/DrapersGardens.mp4\",\"16\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/DrapersGardens.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Drapers Gardens</p><p><span style="color:#3394f4;">Client:</span> Exemplar/Canary Wharf Group</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum == '17'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/SundridgePark.mp4\",\"17\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/SundridgePark.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Sundridge Park</p><p><span style="color:#3394f4;">Client:</span> Millgate Homes</p><p><span style="color:#3394f4;">Agency:</span> Think BDW</p>';
	}
	if(rannum == '18'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/Monza_2010.mp4\",\"18\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Monza_2010.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Monza InterEuropa Cup 2010</p><p><span style="color:#3394f4;">Client:</span> Debby Halliday</p>';
	}
	if(rannum == '19'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/AM_N24_2007.mp4\",\"19\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_N24_2007.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> N&uuml;rburgring 24-hours 2007</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum == '20'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/CloseInvoices_Ideal.mp4\",\"20\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/CloseInvoices_Ideal.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> \'Ideal\'</p><p><span style="color:#3394f4;">Client:</span> Close Invoice Finance</p>';
	}
	if(rannum == '21'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/AM_OnTrack.mp4\",\"21\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_OnTrack.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> \'On-Track\'</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum == '22'){
		document.getElementById('innerJWP1').innerHTML = "<a onclick='disp(\"videos/mp4/AM_TestCentre.mp4\",\"22\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_TestCentre.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc1').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Test Centre launch </p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	
	
	if(rannum2 == '1'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/OMO_Promo_2010.mp4\",\"1\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/OMO_Promo_2010.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Odd Man Out Promo Reel</p>';
	}
	if(rannum2 == '2'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/ChelseaCreek_Short.mp4\",\"2\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/ChelseaCreek.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Chelsea Creek</p><p><span style="color:#3394f4;">Client:</span> St George Central London</p>';
	}
	if(rannum2 == '3'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/Serco_Morrissey.mp4\",\"3\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Serco_Morrissey.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Pulse Awards Case Studies 2009</p><p><span style="color:#3394f4;">Client:</span> Serco</p><p><span style="color:#3394f4;">Production Company:</span> CS Live</p>';
	}
	if(rannum2 == '4'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/Seven_Dials.mp4\",\"4\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Seven_Dials.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Seven Dials Warehouse</p><p><span style="color:#3394f4;">Client:</span> Schroders</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum2 == '5'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/Redrow_Marketing.mp4\",\"5\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Redrow_Marketing.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> New Heritage Collection</p><p><span style="color:#3394f4;">Client:</span> Redrow Homes</p><p><span style="color:#3394f4;">Agency:</span> Think BDW</p>';
	}
	if(rannum2 == '6'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/AM_DBSVolante.mp4\",\"6\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_DBSVolante.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> DBS Volante Teaser</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum2 == '7'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/Tower_SGW.mp4\",\"7\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Tower_SGW.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> The Tower, One St George Wharf</p><p><span style="color:#3394f4;">Client:</span> St George South London</p>';
	}
	if(rannum2 == '8'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/12SJS.mp4\",\"8\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/12SJS.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> 12 St James\'s Square</p><p><span style="color:#3394f4;">Client:</span> D2 Private</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum2 == '9'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/AM_Factory.mp4\",\"9\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_Factory.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Factory Tour</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum2 == '10'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/Pavilions.mp4\",\"10\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Pavilions.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Pavilions</p><p><span style="color:#3394f4;">Client:</span> UBS Global Asset Management</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum2 == '11'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/LibDems.mp4\",\"11\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/LibDems.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> European Election Broadcast 2009</p><p><span style="color:#3394f4;">Client:</span> Liberal Democrats</p><p><span style="color:#3394f4;">Co-producer:</span> SeaBlue Media</p>';
	}
	if(rannum2 == '12'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/AM_Ricard.mp4\",\"12\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_Ricard.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Racing Preview 2008</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum2 == '13'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/LTGDC_RiversideRegen.mp4\",\"13\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/LTGDC_RiversideRegen.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> The View</p><p><span style="color:#3394f4;">Client:</span> London Thames Gateway DC</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum2 == '14'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/BeaufortPark.mp4\",\"14\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/BeaufortPark.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Beaufort Park</p><p><span style="color:#3394f4;">Client:</span> St George Central London</p>';
	}
	if(rannum2 == '15'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/AM_V8Vantage.mp4\",\"15\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_V8Vantage.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> V8 Vantage product film</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum2 == '16'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/DrapersGardens.mp4\",\"16\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/DrapersGardens.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Drapers Gardens</p><p><span style="color:#3394f4;">Client:</span> Exemplar/Canary Wharf Group</p><p><span style="color:#3394f4;">Agency:</span> Sectorlight</p>';
	}
	if(rannum2 == '17'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/SundridgePark.mp4\",\"17\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/SundridgePark.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Sundridge Park</p><p><span style="color:#3394f4;">Client:</span> Millgate Homes</p><p><span style="color:#3394f4;">Agency:</span> Think BDW</p>';
	}
	if(rannum2 == '18'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/Monza_2010.mp4\",\"18\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/Monza_2010.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Monza InterEuropa Cup 2010</p><p><span style="color:#3394f4;">Client:</span> Debby Halliday</p>';
	}
	if(rannum2 == '19'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/AM_N24_2007.mp4\",\"19\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_N24_2007.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> N&uuml;rburgring 24-hours 2007</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum2 == '20'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/CloseInvoices_Ideal.mp4\",\"20\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/CloseInvoices_Ideal.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> \'Ideal\'</p><p><span style="color:#3394f4;">Client:</span> Close Invoice Finance</p>';
	}
	if(rannum2 == '21'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/AM_OnTrack.mp4\",\"21\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_OnTrack.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> \'On-Track\'</p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	if(rannum2 == '22'){
		document.getElementById('innerJWP2').innerHTML = "<a onclick='disp(\"videos/mp4/AM_TestCentre.mp4\",\"22\")'><img style=\"border:solid 1px #b8b7b4; padding:2px;\" src=\"images/thumbnails/AM_TestCentre.jpg\" /><img style=\"position:absolute; left:85px; top:40px;\" src=\"images/thumbnails/play_button.png\" /></a>";
		document.getElementById('innerDesc2').innerHTML = '<p><span style="color:#3394f4;">Project:</span> Test Centre launch </p><p><span style="color:#3394f4;">Client:</span> Aston Martin</p>';
	}
	
}
