

function changeURL(strPage)
{
	
		
	switch(strPage)
	{
	case "about":
	  parent.window.location = "index.html?pg=about"
	  break;
	case "elibrary":
	  parent.window.location = "index.html?pg=elibrary"
	  break;		
	case "benefits":
	  parent.window.location = "index.html?pg=benefits"
	  break;
	case "endorse":
	  parent.window.location = "index.html?pg=endorse"
	  break;
	case "news":
	  parent.window.location = "index.html?pg=news"
	  break;
	case "contact":
	  parent.window.location = "index.html?pg=contact"
	  break;
	case "videos":
	  parent.window.location = "index.html?pg=videos"
	  break;
	case "techsupport":
	  parent.window.location = "index.html?pg=techsupport"
	  break;
	case "main":
	  parent.window.location = "index.html"
	  break;
	case "wireless_to_rescue":
	  parent.window.location = "index.html?pg=wireless_to_rescue"
	  break;
	case "adaptivecreativity":
	  parent.window.location = "index.html?pg=adaptivecreativity"
	  break; 
	case "one_to_one":
	  parent.window.location = "index.html?pg=one_to_one"
	  break;
	case "improved_performance":
	  parent.window.location = "index.html?pg=improved_performance"
	  break;
	case "save_time":
	  parent.window.location = "index.html?pg=save_time"
	  break;
	case "safe_and_secure":
	  parent.window.location = "index.html?pg=safe_and_secure"
	  break;
	case "todays_education":
	  parent.window.location = "index.html?pg=todays_education"
	  break;
	case "21stcentury":
	  parent.window.location = "index.html?pg=21stcentury"
	  break;
	case "apps":
	  parent.window.location = "index.html?pg=apps"
	  break;
	case "sketchy":
	  parent.window.location = "index.html?pg=sketchy"
	  break;
	case "using_cellphones":
	  parent.window.location = "index.html?pg=using_cellphones"
	  break;
	case "manage":
	  parent.window.location = "index.html?pg=manage"
	  break;
	case "2010ISTE":
	  parent.window.location = "index.html?pg=2010ISTE"
	  break;
	default:
	  window.location = "index.html"
	}	
	
	
				
}

function viewURL(name)
{
		
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";
  	var regex = new RegExp( regexS );
	var results = regex.exec( window.location.href );
 
 	if( results == null )
    	changeSource('main.html');
  	else
	{
    	page = results[1];
	
		
		switch(page)
		{
		case "about":
		  changeSource('about.html');	
		  break;
		case "elibrary":
		  changeSource('elibrary/librarycontent.html');	
		  break;		
		case "benefits":
		  changeSource('benefits.html');
		  break;
		case "endorse":
		  changeSource('endorsements.html');
		  break;
		case "news":
		  changeSource('InTheNews.html');
		  break;
		case "contact":
		  changeSource('contactus.html');
		  break;
		case "videos":
		  changeSource('videos.html');
		  break;
		case "techsupport":
		  changeSource('techsupport.php');
		  break;
		case "wireless_to_rescue":
		  changeSource('wireless_to_rescue.html');
		  document.getElementById("wireless_to_rescue").style.textDecoration = "underline";
		  break;
		case "adaptivecreativity":
		  changeSource('adaptivecreativity.html');
		  document.getElementById("adaptivecreativity").style.textDecoration = "underline";
		  break;
		case "one_to_one":
		  changeSource('one_to_one.html');
		  document.getElementById("one_to_one").style.textDecoration = "underline";
		  break;
		case "improved_performance":
			  changeSource('improved_performance.html');
			  document.getElementById("improved_performance").style.textDecoration = "underline";
		  break;
		case "save_time":
		  changeSource('save_time.html');
		  document.getElementById("save_time").style.textDecoration = "underline";
		  break;
		case "safe_and_secure":
		  changeSource('safe_and_secure.html');
		  document.getElementById("safe_and_secure").style.textDecoration = "underline";
		  break;
		case "todays_education":
		  changeSource('todays_education.html');
		  document.getElementById("todays_education").style.textDecoration = "underline";
		  break;
		case "21stcentury":
		  changeSource('21stcentury.html');
		  document.getElementById("21stcentury").style.textDecoration = "underline";
		  break;
		case "apps":
		  changeSource('applications.html');
		  break;
		case "sketchy":
		  changeSource('sketchy.html');
		  break;
		case "using_cellphones":
		  changeSource('using_cellphones.html');
		  break;
		case "manage":
		  changeSource('manage.html');
		  break;
		case "2010ISTE":
		  changeSource('2010ISTE.html');
		  break;
		default:
		  changeSource('main.html');
		}
	
		
	}
		
}




function changeSource(strPage)
{
	document.getElementById("content_iframe").src=strPage;
}






<!-- 

var timeout = 500; 
var closetimer = 0; 
var ddmenuitem = 0; 

// open hidden layer 
function mopen(id) 
{ 
// cancel close timer 
mcancelclosetime(); 

// close old layer 
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; 

// get new layer and show it 
ddmenuitem = document.getElementById(id); 
ddmenuitem.style.visibility = 'visible'; 

} 
// close showed layer 
function mclose() 
{ 
if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; 
} 

// go close timer 
function mclosetime() 
{ 
closetimer = window.setTimeout(mclose, timeout); 
} 

// cancel close timer 
function mcancelclosetime() 
{ 
if(closetimer) 
{ 
window.clearTimeout(closetimer); 
closetimer = null; 
} 
} 

// close layer when click-out 
document.onclick = mclose; 
//--> 


