It's not clear what you are asking. But if you are trying to get the id of the page, you would do something like this:
var activepage = $.mobile.pageContainer.pagecontainer("getActivePage");
if(activepage[0].id == "page-1")
{ /* do something here */ }