//PeterboroughDirect.com - Version 1.0
// Author: JMX Consulting     http://www.jmx.ca



var iframepop='width="560px" height="285px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'
var iframeinf='width="720px" height="400px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'
var iframesml='width="630px" height="310px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" vscrollbar="yes" hscrollbar="no"'

var ie5=document.all
var dom=document.getElementById
var ns4=document.layers

var cWin=null

var fPOP=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]="#2424FF"	//MouseOver Listing Menu - (blue)//Links
bCOL[8]="#800080"	//MouseOver Listing Menu - (DarkOrange)//Links
bCOL[9]="#242424"	                  //MouseOver Listing Menu - (Gray)//Links


fPOP[0]="img/TS101.jpg"
fPOP[1]="img/TS102.jpg"
fPOP[2]="img/TS103.jpg"
fPOP[3]="img/TS104.jpg"

fPOP[4]="img/TS201.jpg"
fPOP[5]="img/TS202.jpg"
fPOP[6]="img/TS203.jpg"
fPOP[7]="img/TS204.jpg"
fPOP[8]="img/TS205.jpg"
fPOP[9]="img/TS206.jpg"

fPOP[11]="img/TS301.jpg"
fPOP[12]="img/TS302.jpg"
fPOP[13]="img/TS303.jpg"
fPOP[14]="img/TS304.jpg"
fPOP[15]="img/TS305.jpg"
fPOP[16]="img/TS306.jpg"

fPOP[17]="img/TS401.jpg"
fPOP[18]="img/TS402.jpg"
fPOP[19]="img/TS403.jpg"


function lPOP(n,id,box,p){
	if (document.getElementById) document.getElementById(id).src=fPOP[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){
	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=="mBODY") 
		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")')}






    








