Change content in a set div and url change

This is a two part question ok so

  1. I want to be able to show new content in a set div.
    So after doing some research the best option to use would be some java script.

  2. I want to be able to change how the url for different pages.
    so instead of seeing this:
    g33/index.php?page=2d

I would like to see this:
g33/2d

here is my code for a page:

<body class="2d">
<section>
<div id="smi">
<ul>
<li class="sml"><a href='index.php?page=logos&section=inc/2d'>logos</a></li>
<li class="sml"><a href="index.php?websites">websites</a></li>
<li class="sml"><a href="index.php?tshirts">t-shirts</a></li>
<li class="sml"><a href="index.php?invitations">invitations</a></li>
<li class="sml"><a href='index.php?page=flyers&section=inc/2d'>flyer(s)</a></li>
</ul>
</div>
<div id="cma">
<?php

if(isset($_GET['websites'])){
include('inc/2d/websites.php');

}else if(isset($_GET['tshirts'])){
include('inc/2d/tshirts.php');

}else if(isset($_GET['invitations'])){
include('bin/invitations.php');

}else if(isset($_GET['flyers'])){
include('bin/flyers.php');

// in all other cases include the home page
} else {
include('inc/2d/logos.php');
}
?>
</div>
</section>
</body>

It is currently conflicting with this code:

	<?php
	
	
	$section =& $_GET['section'];
	$page =& $_GET['page'];
	if ($page)
	{
	
		if (
		
		!strpos($page,".")&&
		!strpos($page,"/")
		
		
		)
		{
	
	//check for section
	if (!$section)
		$section = "inc";
		
		$path = $section."/".$page.".php";

		if(file_exists($path))
		{
		 include($path);		 
		}
		else
		{
		 include('inc/404.php');
		}
		
		}
		else
			echo "Not allowed!";

	}
	else
	{
		include('inc/home.php');
	}


	?>
</div>

and in steed of changing the set content i goes to the link.

so what I ended up doing is using tabs in order to load the different content using moo tools

So is this solved now?

yup thank for the reply