Conditionally jump to a certain page(id) on a single document - how?

Conditionally jump to a certain page(id) on a single document - how?

Hi there, I'm working on my first Jquery Mobile app (later to be compiled using Phonegap).
I have a single HTML document with a number of individual pages on it, all with a data-role of page and an id.

At present when I load my document into Firefox the top most page shows, as you would expect. However is there a way to have a conditional statement that can display other pages apart from the first page. I have the old problem of wanting to skip the first page once the user has interacted with it (variables get set on the first page).

So basically I'm looking for something like this:

if (1==1){//goto the first page
}
else{//goto the second page
}

Cheers.