// JavaScript Document
<!--
var menuTO = null;

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'inline':(v=='hide')?'none':v; }
    obj.display=v; }
}

function hideAllLayers() {
	MM_showHideLayers("sN1","","hide");
}


function navStartTimer(){
	menuTO = setTimeout('hideAllLayers()',300);
}

function navStopTimer(){
	if(menuTO) clearTimeout(menuTO);
	menuTO = null;
}

function switchClass(obj, state) {
  obj.className = state;
}

function showSWFPreview(currSWF){

var isSelection = currSWF;
var flashObjStr = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' type=application/x-shockwave-flash width='326' height='294' loop=false><PARAM NAME=Movie value="+isSelection+"><embed src="+isSelection+" quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='326' height='294'></embed></object>";
document.getElementById('pIll').innerHTML = flashObjStr;
//alert(document.getElementById('FlashDisplay').innerHTML);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var newwindow = '';

// ------------------------------------------------------------------------

// opens a new window positioned 100px from top and left.
function positionedWindow(url, width, height)
{
   if ( ! newwindow.closed && newwindow.location)
   {
      newwindow.location.href = url;
   }
   else
   {
      newwindow = window.open(url,"positionedWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=yes,menubar=yes,' + 'location=no,status=no,toolbar=yes,left=100,top=100,' + 'xposition=100,yposition=100');
      if ( ! newwindow.opener) newwindow.opener = self;
   }
   if (window.focus)
   {
      newwindow.focus()
   }
   return false;
}

// ------------------------------------------------------------------------

// opens a new window centered on the screen.
function centeredWindow(url, myname, w, h, scroll)
{
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;

   winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=yes,resizable=yes'

   if ( ! newwindow.closed && newwindow.location)
   {
      newwindow.location.href = url;
   }
   else
   {
      newwindow = window.open(url, myname, winprops);
      if ( ! newwindow.opener) newwindow.opener = self;
   }
   if (window.focus)
   {
      newwindow.focus()
   }
   return false;
}


// ------------------------------------------------------------------------

// opens a new window centered on the screen, WITH menu bar, navigation, etc
function centeredFullWindow(url, myname, w, h, scroll)
{
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;

   winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,location=yes toolbar=yes'

   if ( ! newwindow.closed && newwindow.location)
   {
      newwindow.location.href = url;
   }
   else
   {
      newwindow = window.open(url, myname, winprops);
      if ( ! newwindow.opener) newwindow.opener = self;
   }
   if (window.focus)
   {
      newwindow.focus()
   }
   return false;
}


// ------------------------------------------------------------------------

// opens a new window centered on the screen.
// for the online store, it adds the location and menu bars.
function centeredStoreWindow(url, myname, w, h, scroll)
{
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;

   winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=yes,resizable=yes,location=yes,menubar=yes'

   if ( ! newwindow.closed && newwindow.location)
   {
      newwindow.location.href = url;
   }
   else
   {
      newwindow = window.open(url, myname, winprops);
      if ( ! newwindow.opener) newwindow.opener = self;
   }
   if (window.focus)
   {
      newwindow.focus()
   }
   return false;
}


//-->


