//PeterboroughDirect.com - Version 1.0
// Author: JMX Consulting     http://www.jmx.ca

myBrowser=navigator.appName
myVersion=navigator.appVersion

var iframepop='width="680px" height="360px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="yes"'
var iframeols='width="718px" height="370px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'
var iframepro='width="618px" height="370px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="yes"'
var iframeinf='width="724px" height="420px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

var ie5=document.all
var dom=document.getElementById
var ns4=document.layers

var cWin=null

var fPOP=new Array()
var catP=new Array()
var bCOL=new Array()


bCOL[0]="#9ACAD0"	//Default All Menu Buttons - (Lightblue) Hex={9A,CA,D0}
bCOL[1]="#DAA520"	//MouseOver Main Menu - (Gold)
bCOL[2]="#1E90FF"	//Default Left Menu + Footer Menu - (Dodgerblue)	//subG + subB + subM
bCOL[3]="#FFCCCC"	//MouseOver Left Menu - (LightRed)
bCOL[4]="#66CDAA "	//MouseOver Footer Menu - (MediumAqua)
bCOL[5]="#8B0000"	//MouseOver SPECIAL Menu (what's hot +close) - (<Darkred)
bCOL[6]="#00FFFF"	//MouseOver Listing Menu - (Cyan)
bCOL[7]="#000080"	//MouseOver Listing Menu - (MidnightBlue)//Links
bCOL[8]="#FF8C00"	//MouseOver Listing Menu - (DarkOrange)//Links
bCOL[9]="#101010"	//MouseOver Listing Menu - (Gray)//Links


fPOP[0]="xWAIT.htm"
fPOP[1]="xABOUT.htm"
fPOP[2]="xLEGAL.htm"
fPOP[3]="xLINKS.htm"
fPOP[4]="xVIRUS.htm"
fPOP[5]="http://www.jmx.ca/cgi-bin/BSCounter/bsimgcount.cgi?what=view&file=cntJMX"
fPOP[6]="xWirePrice.htm"
fPOP[7]="xEMAIL.htm"
fPOP[8]="xSCART.htm"
fPOP[9]="xPOLICES.htm"
fPOP[10]="xDELIVERY.htm"
fPOP[11]="xTAX.htm"
fPOP[12]="xWARR.htm"
fPOP[13]="xRETURN.htm"
fPOP[14]="xREBATE.htm"
fPOP[15]="_500.htm"
fPOP[16]="_501.htm"
fPOP[17]="_502.htm"
fPOP[18]="_503.htm"
fPOP[19]="_504.htm"
fPOP[20]="_505.htm"
fPOP[21]="_506.htm"
fPOP[22]="_507.htm"
fPOP[23]="_508.htm"
fPOP[24]="_509.htm"
fPOP[25]="_510.htm"
fPOP[26]="_511.htm"
fPOP[27]="_550.htm"
fPOP[28]="_551.htm"
fPOP[29]="_552.htm"
fPOP[30]="_553.htm"
fPOP[31]="_554.htm"
fPOP[32]="_555.htm"
fPOP[33]="_556.htm"
fPOP[34]="_557.htm"
fPOP[35]="_558.htm"
fPOP[36]="_559.htm"
fPOP[37]="_560.htm"
fPOP[38]="_561.htm"
fPOP[39]="_562.htm"
fPOP[40]="_563.htm"
fPOP[41]="_564.htm"
fPOP[42]="_565.htm"
fPOP[43]="xGALLERY.htm"


catP[0]=""
catP[1]="About Us"
catP[2]="Legal Notice"
catP[3]="Manufacturers Links"
catP[4]="Antivirus Center"
catP[5]="Website Statistics"
catP[6]="Price List (Parts and Accessories Extra, $0.60/mile charge for all jobs outside city limits)"
catP[7]="JMX Consulting - Mail Form"
catP[8]="SHOPPING CART"
catP[9]="General Policies"
catP[10]="Pickup and Delivery"
catP[11]="Taxes Information"
catP[12]="Warranty Information"
catP[13]="Returns and Refunds"
catP[14]="Rebates Center"
catP[15]="Desktop PC"
catP[16]="Digital Cameras"
catP[17]="Electronics"
catP[18]="Flash Memory"
catP[19]="Gaming Gear"
catP[20]="UPS/Surge Protection"
catP[21]="Monitors"
catP[22]="Point of Sale"
catP[23]="Networking"
catP[24]="Notebooks"
catP[25]="Printers/MFC"
catP[26]="Surveillance"
catP[27]="Accessories"
catP[28]="Case/ Power Supplies"
catP[29]="CPU"
catP[30]="Hard Drives"
catP[31]="Keyboards/ Mice"
catP[32]="Memory"
catP[33]="Motherboards"
catP[34]="Optical Drives"
catP[35]="PCI Cards (add-on cards)"
catP[36]="Software"
catP[37]="Speakers (audio components)"
catP[38]="Video Cards"
catP[39]="FTA Satellite"
catP[40]="Cables"
catP[41]="Media"
catP[42]="Ink & Toner"
catP[43]="Picture Gallery"

function lPOP(n,id,lab,box,p){
	if (document.getElementById) document.getElementById(id).src=fPOP[n]
	if (document.getElementById) document.getElementById(lab).innerHTML = catP[n]
	initbox(p,box)}

function nxLNK(id,vrx){
	if (document.getElementById) document.getElementById(id).src = vrx}

function transport(n){
	if (n==0)window.location="index.htm"
	if (n==99)window.history.back()}

function initbox(n,id){
	if (!dom&&!ie&&!ns4)
	return
	crossobj=(dom)?document.getElementById(id).style : ie5? document.all.dropin : document.dropin
	scroll_top=(ie5)? truebody().scrollTop : window.pageYOffset
	crossobj.visibility=(dom||ie5)? "visible" : "show"
	crossobj.top=n+scroll_top}

function dismissbox(){
	if (document.getElementById) document.getElementById('iBXF').src=fPOP[0];
	crossobj.visibility="hidden"}

function SwitchMenu(obj,B){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); 
	for (var i=0; i<ar.length; i++){
		if (ar[i].className==B) 
		ar[i].style.display = "none";}
		el.style.display = "block";}}

function truebody(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}

function msOVL(id,c){
	document.getElementById(id).style.backgroundColor=bCOL[c]}

function msOTL(id,c){
	document.getElementById(id).style.backgroundColor=""}

function msOVR(id,c){
	if (document.all||document.getElementById){
	id.style.color=bCOL[c]}}

function msOUT(id,c){
	if (document.all||document.getElementById){
	id.style.color=bCOL[c]}}

function bookmarksite(title, url){
	if (document.all)
	window.external.AddFavorite(url, title);
	else if (window.sidebar)
	window.sidebar.addPanel(title, url, "")}

function mWin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;scrollbars:0;status:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=0,scrollbars=0")')}







    








