								////////////////////////////
								//Written by: Shane Hahn  //
								//Date: 7/22/2002	      //
								//For: www.crxtech.com	  //
								//This page contains all  //
								//the function defonitions// 
								//that CRXTECH uses       //
								////////////////////////////


function writeHeader() {

  with(document) {
  
  	//Style Sheet.
  	writeln('<link rel="stylesheet" href="crxtech.css">');
		
	//Header Code
	writeln('<img src="images/header.jpg" border="0">');
  }
}


function writeSideBar() {

  with(document) {
		writeln('<table align="left">');
		writeln('<tr><td align="center"><img src="images/crxhonda.gif" width="80" border="0"></td></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="crxtech.html">&nbsp;&nbsp;:: Home</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="crxforum/">&nbsp;&nbsp;:: Forum&nbsp;<img src="images/new.gif" border="0"></a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="swaps.html">&nbsp;&nbsp;:: Engine Swaps</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="crx.html">&nbsp;&nbsp;:: My CRX Info</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="mycrxpics.html">&nbsp;&nbsp;:: My CRX Pics</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="postInfo.html">&nbsp;&nbsp;:: Post Your CRX</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="download.html">&nbsp;&nbsp;:: Free Downloads&nbsp;&nbsp;</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="othercrxs/othercrxs.html">&nbsp;&nbsp;:: Other CRXs Pics&nbsp;&nbsp;</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="history.html">&nbsp;&nbsp;:: CRX History</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="links.html">&nbsp;&nbsp;:: Links</a></nobr></th></tr>');
		writeln('<tr><th class="thTop"><nobr><a class="sidebar" href="hurricane.html">&nbsp;&nbsp;:: Hurricane Isabel</a></nobr></th></tr>');
		
		writeln('</table>');
	}
}




function writeZCLinks() {

  with(document) {
		writeln('<table align="center" class="forumline">');
		writeln('<tr>');
		writeln('<th class="thTop" width="33%"><nobr><a class="sidebar" href="swap_zc.html">&nbsp;&nbsp; ZC Home</a></nobr></th>');
		writeln('<th class="thTop" width="33%"><nobr><a class="sidebar" href="zc_parts.html">&nbsp;&nbsp; ZC Parts List</a></nobr></th>');
		writeln('<th class="thTop" width="33%"><nobr><a class="sidebar" href="whoops.html">&nbsp;&nbsp; ZC Swap General Steps</a></nobr></th>');
		writeln('</tr>');
		writeln('</table><br>');
	}
}





function writeB16Links() {

  with(document) {
		writeln('<table align="center" class="forumline">');
		writeln('<tr>');
		writeln('<th class="thTop" width="33%"><nobr><a class="sidebar" href="swap_b16.html">&nbsp;&nbsp; B16 Home</a></nobr></th>');
		writeln('<th class="thTop" width="33%"><nobr><a class="sidebar" href="b16_parts.html">&nbsp;&nbsp; B16 Parts List</a></nobr></th>');
		writeln('<th class="thTop" width="33%"><nobr><a class="sidebar" href="whoops.html">&nbsp;&nbsp; B16 Swap General Steps</a></nobr></th>');
		writeln('</tr>');
		writeln('</table><br>');
	}
}






function writeFooter() {

  with(document) {

  	writeln('<table class="footer" width="100%"><tr><td>Site Design done by: <a href="mailto:Shane@crxtech.com">Shane</a>, Site last updated on: 3-18-2004<BR>');
	writeln('Total page veiws:');
	writeln('<img src="/pphlogger/showhits.php?id=crxtech_com&type=pageviews&st=img"> by');
	writeln('<img src="/pphlogger/showhits.php?id=crxtech_com&type=hits&st=img"> visitors since October, 2002, and');
	writeln('<img src="/pphlogger/showhits.php?id=crxtech_com&type=todayviews&st=img"> pageviews by');
	writeln('<img src="/pphlogger/showhits.php?id=crxtech_com&type=today&st=img"> visitors today.<BR>');
	writeln('<a onclick="siteD();">Site Disclaimer</a></td></tr></table>');
  }  
}

function siteD() {
	alert('This is a site for informational use only, and CRXtech.com is not held responsible for any consequences which may arise from the use of any information on this site.')
}





//Date Code
function writeDate(){
	// Array of day names
	var dayNames = new Array(
	"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	
	// Array of month Names
	var monthNames = new Array(
	"January","February","March","April","May","June","July","August","September","October","November","December");
	
	var now = new Date();
	document.write(dayNames[now.getDay()] + ", " +
	monthNames[now.getMonth()] + " " + now.getDate() + ",  " +
	now.getFullYear());
}
//End of date code.



// Set slideShowSpeed (milliseconds)
	var slideShowSpeed = 5000
	
	// Duration of crossfade (seconds)
	var crossFadeDuration = 5
	
	// Specify the image files
	var Pic = new Array() // don't touch this
	// to add more images, just continue
	// the pattern, adding to the array below
	
	Pic[0] = 'http://www.crxtech.com/images/intro.jpg'
	Pic[1] = 'http://www.crxtech.com/images/intro1.jpg'
	Pic[2] = 'http://www.crxtech.com/images/intro2.jpg'
	Pic[3] = 'http://www.crxtech.com/images/intro3.jpg'
	Pic[4] = 'http://www.crxtech.com/images/intro4.jpg'
	Pic[5] = 'http://www.crxtech.com/images/intro5.jpg'
	Pic[6] = 'http://www.crxtech.com/images/intro6.jpg'
	Pic[7] = 'http://www.crxtech.com/images/intro7.jpg'
	Pic[8] = 'http://www.crxtech.com/images/intro8.jpg'
	Pic[9] = 'http://www.crxtech.com/images/intro9.jpg'
	
	// =======================================
	// do not edit anything below this line
	// =======================================
	
	var t
	var j = 0
	var p = Pic.length
	
	var preLoad = new Array()
	for (i = 0; i < p; i++){
	   preLoad[i] = new Image()
	   preLoad[i].src = Pic[i]
	}
	
	function runSlideShow(){
	   if (document.all){
	      document.images.SlideShow.style.filter="blendTrans(duration=2)"
	      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
	      document.images.SlideShow.filters.blendTrans.Apply()      
	   }
	   document.images.SlideShow.src = preLoad[j].src
	   if (document.all){
	      document.images.SlideShow.filters.blendTrans.Play()
	   }
	   j = j + 1
	   if (j > (p-1)) j=0
	   t = setTimeout('runSlideShow()', slideShowSpeed)
	}

//End of slide show code.
































/* -----------------------------------------------
   POWER PHLOGGER - v.2.2.2b
   (c) 2000-2002 www.phpee.com
   contact: webmaster@phpee.com
  ------------------------------------------------ */

// ----------------------------------------------------------
// SETTINGS:
// here should be your username you received from pphlogger.inter-z.net
// Do not edit this file manually!! Use the one you got in your
// confirmation-email or the one from PowerPhlogger's settings
// section.
   id = "crxtech_com";
// If you're using a frameset and are not getting correct 
// referrers, please uncomment the following line:
   // pp_frames = TRUE;
// ----------------------------------------------------------


// define some defaults -------------------------------------
if(showme==null) var showme='n';
if(st==null)     var st='js';    // st means show-type :)


// get the user agent name ----------------------------------
v = navigator.appName;

// get the screen resolution --------------------------------
c=0;
if (v != "Netscape") c = screen.colorDepth;
else c = screen.pixelDepth;

// get the screen size --------------------------------------
s = screen.width+"x"+screen.height;

// get the document's title ---------------------------------
t = escape(document.title);

// get the document's referrer -------------------------------
var f = "";

// if pp_frames is true then try getting the framed referral (without error checking)
if (typeof(pp_frames) != "undefined")
	if (pp_frames)
		f = top.document.referrer;

// get the referral for non-multi-domained-framed sites using a Netscape browser
if ((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined"))
	if (document["parent"] != null) 
		if (parent["document"] != null) // ACCESS ERROR HERE!
			if (parent.document["referrer"] != null) 
				if (typeof(parent.document) == "object")
					f = parent.document.referrer; 

// get the referral for the current document if a framed referral wasn't found
if ((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined"))
	if (document["referrer"] != null) 
		f = document.referrer;

// convert all the unknown's into blank
if ((f == "") || (f == "[unknown origin]") || (f == "unknown") || (f == "undefined"))
	f = "";

// escape the referral
f = escape(f);

// getting data ready to send -------------------------------
r="?id="+id+"&referer="+f+"&r="+s+"&c="+c+"&showme="+showme+"&st="+st+"&title="+t;

// adding logid if called by st='phpjs'
if(jslogid==null) var jslogid = 0;
else r = r + "&jslogid="+jslogid;


if (st=='js') { // calling PowerPhlogger by JavaScript-tag
	if (v != "Microsoft Internet Explorer") {
		r = r+"&url="+document.URL; // $HTTP_REFERER problem with NS,...
	}
	document.open();
	document.write("<script language=\"JavaScript\" type=\"text/javascript\" src=\"http://pphlogger.inter-z.net/pphlogger/pphlogger.php"+r+"\"></script>");
	document.close();
} else { // calling PowerPhlogger by IMG-tag
	rand = Math.round(1000*Math.random());
	r = r+"&b="+rand;  //force the page to load the IMG
	document.open();
	document.write("<img src=\"http://pphlogger.inter-z.net/pphlogger/pphlogger.php"+r+"\" alt=\"\" border=\"0\">");
	document.close();
}