
/**
* 
* Detect versions of FF less than 3, so we can fix some CSS problems
* Namely, layering bug between iframes and flash.
*
***/

var isFF = detectMacXFF();

if(isFF)
{

  var verFF = getFFVersion();

  // render style sheet for ff < 3.0
  if(verFF<3)
  {
	//alert("Firefox version is less than 3.");
     document.writeln('<link href="/styles_ff_body.css" rel="stylesheet" type="text/css" />');
  }

}



/**
* iframe deep-linking:
*
* Pretty much same this as iframe.js, except this time we expect
* the variable "deepLinkUrl" to be set to the url that we should
* redirect to. This is used for iframe windows that are 2 nodes 
* deep (grandchildren). You actually want to deeplink to the child 
* frame. The only way to know the correct url is to set it on the 
* html page.
*
***/

function parentExists(){

 return (parent.location == window.location)? false : true;

}

var dl = document.URL;

if(!parentExists()){

 window.location = "index.html#"+escape(deepLinkUrl);

}
