version = "1.30.023";
bookname = "Trial Physics for Scientists and Engineers";
prodID = 12;
installerVersion = "1.30.023";
nativeVersion = "1.30.023";
function writever(){
	document.write(bookname+" version "+version);
	}
copyrightString = "&#169; 2000-2007 Kinetic Books Company";
function writeCopyright(){
 document.write(copyrightString);
}
function noRedirAgent()
{
  var ua = navigator.userAgent.toLowerCase();
  if (ua.indexOf("google")>-1) return true;
  if (ua.indexOf("yahoo")>-1) return true;
  if (ua.indexOf("ask")>-1) return true;
  if (ua.indexOf("msn")>-1) return true;
  return false;
}


function setInstallerCookie(){
  document.cookie = "KBInstallerSes=true;path=/";
//  var today = new Date();
//  var expire = new Date();
//  expire.setTime(today.getTime() + 3600000*24*365);
//  document.cookie = "KBInstaller=20060713;expires="+expire.toGMTString() + ";path=/";
}


function readInstallerCookie()
{
  var theCookie=''+document.cookie;
  var ind=theCookie.indexOf('KBInstallerSes=');
  if (ind==-1) return '';
  var ind1=theCookie.indexOf(';',ind);
  if (ind1==-1) ind1=theCookie.length;
  return unescape(theCookie.substring(ind+'KBInstallerSes='.length,ind1));
}

var val=readInstallerCookie();
if (val == '' && !noRedirAgent())
{
  document.cookie = "KBReqPage=" + escape(window.location.href) + ";path=/";
  window.location.href='/physics/librarycheck.php?src=trialpse';
}
