if (parent.frames.length > 0) {
  var us = self.document.location.href;
  var query = (us.indexOf("?"));

  if (query)
  {
	us = us.substring(0,query);
  }

    parent.location.href = us;
}

//pop-under
function gvpop( type, x, y, url ) {
    var p = window.open( url, '_blank', 'directories=0,height='+y+',width='+x+',hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,toolbar=0' );
    if (p) {	
	if ( type == 'under' ) {
	    p.blur();
	    this.focus();
	} else {
	    p.focus();
	}
    }
    return;
}
//end pop-under