function change_showcase( client, project, image, vLink )
{
	var clientContent = document.getElementById( "clientChange" ).innerHTML = client ;
	var projectContent = document.getElementById( "projectChange" ).innerHTML = project ;
	var screenShot = document.getElementById( "screenShotImg" ).src = image ;		
	
	if( vLink != "" )
	{
		var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "<img src='images/arrow-dots.gif'>&nbsp;&nbsp;&nbsp;<a href='javascript:display_pdf( \""+vLink+"\" ) ;'>View PDF</a>	" ;
	}
	else
	{
		var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "" ;
	}
}

function change_showcase2( client, project, image, vLink )
{
	var clientContent = document.getElementById( "clientChange" ).innerHTML = client ;
	var projectContent = document.getElementById( "projectChange" ).innerHTML = project ;
	var screenShot = document.getElementById( "screenShotImg" ).src = image ;		
	
	if( vLink != "" )
	{
		if( vLink == "post_animation.php" )
		{
			var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "<img src='images/arrow-dots.gif'>&nbsp;&nbsp;&nbsp;<a href='javascript:display_demo2( \""+vLink+"\" ) ;'>View Demo</a>	" ;
		}
		else
		{
			var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "<img src='images/arrow-dots.gif'>&nbsp;&nbsp;&nbsp;<a href='javascript:display_demo( \""+vLink+"\" ) ;'>View Demo</a>	" ;
		}
	}
	else
	{
		var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "" ;
	}
}

function change_showcase3( client, project, image, vLink )
{
	var clientContent = document.getElementById( "clientChange" ).innerHTML = client ;
	var projectContent = document.getElementById( "projectChange" ).innerHTML = project ;
	var screenShot = document.getElementById( "screenShotImg" ).src = image ;		
	
	if( vLink != "" )
	{
		if( vLink == "post_animation.php" )
		{
			var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "<img src='images/arrow-dots.gif'>&nbsp;&nbsp;&nbsp;<a href='javascript:display_demo2( \""+vLink+"\" ) ;'>View Animation</a>	" ;
		}
		else
		{
			var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "<img src='images/arrow-dots.gif'>&nbsp;&nbsp;&nbsp;<a href='javascript:display_demo( \""+vLink+"\" ) ;'>View Animation</a>	" ;
		}
	}
	else
	{
		var pdfLink = document.getElementById( "viewPDF" ).innerHTML = "" ;
	}
}

function display_pdf( pdf )
{		
	window.open("http://www.mad-cow-design.com/"+pdf,'mywindow','width=800,height=650,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes' ) ;		
}

function display_demo( pdf )
{		
	window.open("http://www.mad-cow-design.com/"+pdf,'mywindow','width=864,height=540,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes' ) ;		
}

function display_demo2( pdf )
{		
	window.open("http://www.mad-cow-design.com/"+pdf,'mywindow','width=500,height=390,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes' ) ;		
}
