
/**
* 
* 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.css" rel="stylesheet" type="text/css" />');
  }

}



/**
* iframe deep-linking:
*
* When iframe html page is indexed by search engine, it is possible
* for users to access the iframe page directly, which is then missing
* the skin of the website. This script checks that parent exists, and
* if it does not, then we redirect to index.html with a deep-link to
* this particular iframe.
*
***/

function parentExists(){

 return (parent.location == window.location)? false : true;

}

var u3 = document.URL;

var li = u3.lastIndexOf('/');
var dl = u3.substring(li+1,u3.length);

//alert(dl);

if(!parentExists()){

 window.location = "index.html#"+escape(dl);

}
