//---------------
// - studio17.js - 
//		- Copyright (c) 1999 - 2005  Monkey (monkey@subelement17.net)
//		- Yes, you may use this code as is, or parts of it, but leave 
//		- a ref to Code Monkey (monkey@subelement17.net) and subelement17.net
//      - Remember that we have ways to find out where you live :)
//---------------
//Code and Ide from www.13thparallel.net
var DOMStandard = ( document.getElementById && document.getElementsByTagName&& document.getElementsByTagName( "head" )[ 0 ]
				&& document.getElementsByTagName( "head" )[ 0 ].appendChild
				&& document.createElement )
//End of 13thparallel
//We have to to some special hacks for Safari...
var bisSafari = navigator.userAgent.toLowerCase()
var bMoz = bisSafari.split('gecko')
var bIE = bisSafari.split('msie')
var sHoverHand = 'cursor:hand';
if(bIE[1])
	bIE = true;
else
	bIE = false;
if(bMoz[1])
{
	sHoverHand = 'cursor:pointer'
	bMoz = true;
}
else
	bMoz = false;
bisSafari = bisSafari.split('safari')
if(bisSafari[1])
	bisSafari = true;
else
	bisSafari = false;
	
	

var sServerPath = '_xmlhttp_/getXML.php?search=_!sWhat!_&table=_!sTable!_'
var initXMLHTTP = function(sFindString, sdbTable,bReload)
{
     studio17XML.loadXML(sFindString, sdbTable,bReload)
}

var preLoadImages = function()
{
  var aImgs = preLoadImages.arguments;
  document.imgArr = new Array(aImgs.length);
  for(var i=0; i<aImgs.length; i++)
  {
    document.imgArr[i] = new Image();
    document.imgArr[i].src = aImgs[i];
  }
}
//Pre load the small images for the profile navigation.
preLoadImages('_images_/smallbooksnav/book.gif', '_images_/smallbooksnav/book_active.gif','_images_/smallbooksnav/back.gif','_images_/smallbooksnav/next.gif'); 
var expdate = new Date();
expdate.setTime(expdate.getTime()*2 +  (24 * 60 * 60 * 1000 * 365)); 
var setCookie = function(name, value) 
{
	document.cookie = name + "=" + value + "; expires=" + expdate.toGMTString() +  "; path=/";
}
var standAlone = function(sLink)
{
    window.open(sLink,'standalone','width=250,height=400,toolbar=0,menubar=0,location=0,scrollbars=1');
    return false;
}
