
function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? parent[movieName] : parent.document[movieName];
 }
 
 var timer_id= 0;
 function navToPage() {
	timer_id= setTimeout('navToPage_timer()', 300);
 }
 
 function navToPage_timer() {
	 var fm= getFlashMovie("FlashNav");
	 if (typeof fm!='undefined' && typeof fm.sendTextToFlash == 'function') {
		fm.sendTextToFlash(gup('pid'));
		if (timer_id > 0) clearTimeout(timer_id);
	 }
 }

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}




