<!--
/* Copyright ©2000 Reynald V. Nuñez */
var ie4up, ns6, ns4, dom;
if ( navigator.appName == "Microsoft Internet Explorer" ) 
   ie4up = parseInt ( navigator.appVersion ) >= 4;
else if ( navigator.appName == "Netscape" ) {
   ns6 = parseInt ( navigator.appVersion ) >= 5;
   ns4 = parseInt ( navigator.appVersion ) < 5;
}
dom = ie4up || ns6;

var view;
len = String ( location ).split ( "/" ).length;
loc = "../";
for ( l = 8; l < len; l++ ) loc += "../";
if ( self == top ) view = '<p style = "font:8pt verdana;text-align:right"><a href="' + loc + 'index.aspx?' +
   window.location.href + '">Nav Frame View</a>'
else view = '<p style="font:8pt verdana;text-align:right"><a href="#" onclick="top.location.href=self.location.href">Full Page View</a>'

function swipe ( ) {
if ( ie4up ) {
   pagehead.filters [ 0 ].Apply ( );
   pagehead.style.visibility = "visible";
   pagehead.filters [ 0 ].Play ( );}
}

function load ( f1, p1, f2, p2 ) {
   eval ( "parent." + f1 + ".location = '" + p1 + "'" );
   eval ( "parent." + f2 + ".location = '" + p2 + "'" );
}

function loadfrm ( f1, p1, f2, p2 ) {
   len = String ( parent.main.location ).split ( "/" ).length;
   loc = len<8 ? "" : "../";
   for ( l = 8;l<len;l++ ) loc += "../";
   eval ( "parent." + f1 + ".location = '" + loc+p1 + "'" );
   eval ( "parent." + f2 + ".location = '" + loc+p2 + "'" );
}

function chgText ( what ) {
   if ( ie4up ) descs.innerText = what;
   else if ( ns6 ) 
      document.getElementById ( 'descs' ).childNodes [ 0 ].nodeValue = what;
   else if ( ns4 ) {
      document.d1.document.d2.document.write ( "<center><font face = 'Arial' point-size = 11>" + what + "</font></center>" );
      document.d1.document.d2.document.close ( );
   }
}

function hilite ( n ) {
   document.forms [ n ].elements [ 0 ].focus ( );
   document.forms [ n ].elements [ 0 ].select ( );
}

function showSamp ( sURL ) {
   var win = "top=30, left=30, width=650, height=450, status=yes, scrollbars=yes, resizable=1";
   void window.open ( sURL, "_blank", win )
}

function showSampVar ( sURL, w, h ) {
   var swin = "top=20, left=30, width=" + w + ", height=" + h + ", status=yes, scrollbars=yes, resizable=1";
   void window.open ( sURL, "_blank", swin );
}

function showMax ( sURL ) {
   var w = window.screen.availWidth;
   var h = window.screen.availHeight;
   var mprops = "status=yes, scrollbars=yes";
   var maxWin = window.open ( sURL, "_blank", mprops ) 
   maxWin.resizeTo ( w, h );
   maxWin.moveTo ( 0, 0 );
}

function showKiosk ( sURL ) {
   var kprops = "fullscreen";
   void window.open ( sURL, "_blank", kprops )
}

function showDef ( sURL ) {
   var dprops = "top=20, left=450, width=350, height=350, status=no, scrollbars=yes, resizable=1";
   void window.open ( sURL, "gloss", dprops )
}

function viewSource ( sURL ) {
   location.href = "view-source:" + sURL;
}

function fit ( ) {
   el = document.body;
   elW = el.style.width;
   elH = el.style.height;
   window.resizeTo ( elW, elH );
}

function toggle ( e ) {
   if ( e.style.display == "none" ) e.style.display = "";
   else e.style.display = "none";
}

var srcURL = "";
function chkNav ( srcURL ) {
   if ( dom ) showSamp ( srcURL );
   else {
      alert ( 'This demo requires DOM-compliant browsers ( ie4up, NS5+ ) \n to function properly. You may continue to view it, \n but it may not work as intended.' );
      showSamp ( srcURL );
   }
}

function showPop ( obj ) {
   if ( ns4 ) return;
   else {
      idStr = obj.id;
      idNum = idStr.length == 6 ? idStr.substr ( ( idStr.length-2 ) ) : idStr.substr ( ( idStr.length-1 ) );
      thePop = document.getElementById ( "blurbs" + idNum );
      if ( thePop.style.display == 'none' ) thePop.style.display = 'block';
      else thePop.style.display = 'none';
   }
}

function alerto ( ) {
   alert ( "This demo may not work as expected, \nas your browser does not support or \nis not capable of handling this feature." );
}

function redraw ( ) {
   if ( document.layers ) setTimeout ( "window.onresize = rdraw", 500 );
}

function rdraw ( ) {
   window.location.reload ( );
}

function doClick ( index, id ) {
   var numTabs = 3;
   document.all ( "tab" + id, index ).className = "tab";
   for ( var i = 1; i < numTabs; i++ ) {
      document.all ( "tab" + id, ( index + i ) % numTabs ).className = "backtab";
   }
   document.all ( "code" + id, index ).style.display = "";
   for ( var j = 1; j < numTabs; j++ ) {
      document.all ( "code" + id, ( index + j ) % numTabs ).style.display = "none";
   }
}

function doClick2 ( index, id ) {
   var numTabs = 2;
   document.all ( "tab" + id, index ).className = "tab";
   for ( var i = 1; i < numTabs; i++ ) {
      document.all ( "tab" + id, ( index + i ) % numTabs ).className = "backtab";
   }
   document.all ( "code" + id, index ).style.display = "";
   for ( var j = 1; j < numTabs; j++ ) {
      document.all ( "code" + id, ( index + j ) % numTabs ).style.display = "none";
   }
}

function showCode2 ( id0, id1 ) {
   document.getElementById ( "tab" + id0 ).className = "tab";
   document.getElementById ( "tab" + id1 ).className = "backtab";
   document.getElementById ( "code" + id0 ).style.display = "inline";
   document.getElementById ( "code" + id1 ).style.display = "none";
}

function showCode3 ( id0, id1, id2 ) {
   document.getElementById ( "tab" + id0 ).className = "tab";
   document.getElementById ( "tab" + id1 ).className = "backtab";
   document.getElementById ( "tab" + id2 ).className = "backtab";
   document.getElementById ( "code" + id0 ).style.display = "inline";
   document.getElementById ( "code" + id1 ).style.display = "none";
   document.getElementById ( "code" + id2 ).style.display = "none";
}

function chkImage ( img, cat ) {
   if ( img.width == 1 ) {
      img.src = "/aspxtreme/shop/images/catalog/" + ( cat != "" ?
         "default-" + cat + ".gif" : "default.gif" );
      img.alt = "No image available";
   }
}

function restBorder ( el ) {
   el.style.border = "thin outset #bcd";
}

function sinkBorder ( el ) {
   el.style.border = "thin inset #bcd";
}

function toggleDisp ( divId, imgId ) {
   elDiv = document.all ? document.all [ divId ] : document.getElementById ( divId );
   elImg = document.all ? document.all [ imgId ] : document.getElementById ( imgId );
   if ( elDiv.style.display == "none" ) {
      elDiv.style.display = "block";
      elImg.src = "/aspxtreme/shared/images/less.gif";
      elImg.alt = "Collapse";
   }
   else {
      elDiv.style.display = "none";
      elImg.src = "/aspxtreme/shared/images/more.gif";
      elImg.alt = "Expand";
   }      
}

window.defaultStatus = document.title;
//-->