// JavaScript Document

// 03. check incoming vars coming through the url and display the requested page by using the function "changeDisplayState ()"
var url = String(window.location);
var index = url.indexOf("?");
var data = url.substr(index+1);
//
var splitted = data.split("=");
showWhat = splitted[0];
pageId = splitted[1];
//
if(index != -1 && showWhat == "showPage" && pageId != null){
 	changeDisplayState (pageId);
} 
//
