<!--
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {

	var args = changeImages.arguments;

	for (var i=0; i < args.length; i+=2) {
		if ((obj=MM_findObj(args[i]))!=null) 
		{ 
			v=args[i+2];
		
			obj.src = args[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	runSlideShow();
	if (document.images) {
		//Global nav
		header_middle_links_over = newImage("images/header_middle_links-over.gif");
		header_middle_site_index_over = newImage("images/header_middle_site_index-ov.gif");
		header_middle_feedback_over = newImage("images/header_middle_feedback-over.gif");
		header_middle_more_over = newImage("images/header_middle_more-over.gif");
		
		header_bottom_home_over = newImage("images/gnav_home_ro.gif");
		header_bottom_about_over = newImage("images/gnav_about_ro.gif");

		header_bottom_builds_over = newImage("images/gnav_builds_ro.gif");
		header_bottom_restores_over = newImage("images/gnav_restores_ro.gif");
		header_bottom_volunteering_over = newImage("images/gnav_volunteer_ro.gif");
		header_bottom_committees_over = newImage("images/gnav_committees_ro.gif");
		header_bottom_media_over = newImage("images/gnav_media_ro.gif");
		header_bottom_contacts_over = newImage("images/gnav_contacts_ro.gif");
		
		//Left nav 
		menu_partner_over = newImage("images/snav_partners_ro.gif");
		main_building_hopes_habitat_bottom_top_visit_over = newImage("images/main_building_hopes-habitat.gif");
		menu_volunteers_over = newImage("images/snav_volunteers_ro.gif");
		menu_bfaith_over = newImage("images/snav_buildingfaith_ro.gif");
		menu_sponsors_over = newImage("images/snav_sponsors_ro.gif");
		menu_donations_over = newImage("images/snav_donations_ro.gif");
		
		//Botton nav
		bottom_top_dontate_over = newImage("images/bottom_top_dontate-over.gif");
		bottom_top_volunteer_over = newImage("images/bottom_top_volunteer-over.gif");
		habitat_bottom_top_visit_over = newImage("images/habitat_bottom_top_visit-ov.gif");
		
		//Fly out menu
		hfht_over = newImage("images/menu_about_hfht-over.gif");
		hfhc_over = newImage("images/menu_about_hfhc-over.gif");
		hfhi_over = newImage("images/menu_about_hfhi-over.gif");
		present_over = newImage("images/menu_builds_present-over.gif");
		past_over = newImage("images/menu_builds_past-over.gif");
		future_over = newImage("images/menu_builds_future-over.gif");
		res_about_over = newImage("images/menu_res_about-over.gif");
		goods_over = newImage("images/menu_res_goods-over.gif");
		how_over = newImage("images/menu_res_how-over.gif");
		location_over = newImage("images/menu_res_locations-over.gif");
		vol_build_over = newImage("images/menu_comittees_build-over.gif");
		family_over = newImage("images/menu_comittees_family-over.gif");
		communication_over = newImage("images/menu_comittees_com-over.gif");
		faith_over = newImage("images/menu_comittees_faith-over.gif");
		corp_over = newImage("images/menu_comittees_corp-over.gif");
		restore_over = newImage("images/menu_comittees_restore-over.gif");
		staff_over = newImage("images/menu_contacts_staff-over.gif");
		contact_us_over = newImage("images/menu_contacts_contact_us-over.gif");
		events_over = newImage("images/menu_contacts_events-over.gif");
		board_over = newImage("images/menu_contacts_board-over.gif");
		press_over = newImage("images/menu_media_press-over.gif");
		med_media_over = newImage("images/menu_media_media-over.gif");
		photos_over = newImage("images/menu_media_photos-over.gif");
		con_how_over = newImage("images/menu_vol_how-over.gif");
		immediate_over = newImage("images/menu_vol_immediate-over.gif");
		history_over = newImage("images/menu_about_histor-over.gif");
		reports_over = newImage("images/menu_about_reports-over.gif");
		faq_over = newImage("images/menu_about_faq-over.gif");
		boarddirect_over = newImage("images/menu_about_board-over.gif");
		chairs_over = newImage("images/menu_about_chairs-over.gif");

		preloadFlag = true;
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function Blitz_Click() 
{ 
    window.open("newBlitzBuild.htm", null, "height=500,width=650,resizable=yesstatus=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
} 

function Volunteer2_Click() 
{ 
    window.open("newVolunteer.htm", null, "height=500,width=600,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
}

function Volunteer_Click() 
{ 
    //window.open("new.htm", null, "height=500,width=600,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
    window.open("newVolunteer.htm", null, "height=500,width=650,resizable=yes,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
}

function Speaker_Click() 
{ 
    window.open("speaker.htm", null, "height=500,width=517,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
}
    
function Construction_Click() 
{ 
    window.open("construction_application.htm", null, "height=500,width=600,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
}    


function MailList_Click() 
{ 
	window.open("mailing.htm", null, "height=385,width=450,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
}

function Form_Click(formID)
{  
    window.open("ShowFormFile.aspx?FormID=" + formID, null, "height=480,width=500,status=yes,toolbar=no,menubar=no,location=no");
}

function Feedback_Click() 
{ 
	window.open("Feedback.htm", null, "height=400,width=400,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
}

function Item_Click(goodsID)
{  
    window.open("ShowGoods.aspx?GoodsID=" + goodsID, null, "height=480,width=500,status=yes,toolbar=no,menubar=no,location=no");
}


function Gallery_Click(BuildID, GalleryID) 
{ 
	window.open("ShowImage.aspx?BuildID=" + BuildID + "&GalleryID=" + GalleryID, null, "height=380,width=400,status=yes,toolbar=no,menubar=no,location=no,resizable=yes");
}

function Sponsor_Click(SponsorID) 
{ 
	window.open("ShowSponsor.aspx?SponsorID=" + SponsorID, null, "height=480,width=500,status=yes,toolbar=no,menubar=no,location=no"); 
}

function Family_Click(FamilyID) 
{ 
	window.open("ShowFamily.aspx?FamilyID=" + FamilyID, null, "height=480,width=500,status=yes,toolbar=no,menubar=no,location=no");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function URL_Click(strUrl)
{
	window.open(strUrl);
}

/////////////////////////////////////////////////////////////////////////////
///                 Functions for the slideshow                          ////
/////////////////////////////////////////////////////////////////////////////
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!


//Picture[0]  = 'images/logos/logo_NT_WP.gif';
//Picture[1]  = 'images/logos/logo_BS_aww.jpg';
//Picture[2]  = 'images/logos/logo_NT_First.gif';
//Picture[3]  = 'images/logos/logo_NT_Trillium.gif';
//Picture[4]  = 'images/logos/logo_BS_Thier.gif';
//Picture[5]  = 'images/logos/102.jpg';
//Picture[6]  = 'images/logos/oldies.jpg';
//Picture[7]  = 'images/logos/820cham.jpg';
//Picture[8]  = 'images/logos/logo_MB_pmi.gif';


Picture[0]  = 'images/logos/Abitibi_Logo1.png';
Picture[1]  = 'images/logos/BCTCanadalogo.png';
Picture[2]  = 'images/logos/BuiltGreen.png';
Picture[3]  = 'images/logos/Genworth(4C).png';
Picture[4]  = 'images/logos/Halton-Logo.png';
Picture[5]  = 'images/logos/iLevel_small.jpg';
Picture[6]  = 'images/logos/Oakville_Small.png';
Picture[7]  = 'images/logos/sustforestiniti_small.png';
Picture[8]  = 'images/logos/UGspectraLogo.png';
Picture[9]  = 'images/logos/Whirlpool_small.png';


// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
//var jss = 1;
//var jss = Math.floor(5 * Math.random());
var jss= Math.floor( ( 9 - 0 + 1 ) * Math.random() + 0 );
var pss = Picture.length;
var preLoad = new Array();
for (iss = 0; iss < pss+1 ; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}


function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss-1)) jss=0;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}


//function runSlideShow(){
//if (document.all){
//document.images.PictureBox.style.filter="blendTrans(duration=2)";
//document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
//document.images.PictureBox.filters.blendTrans.Apply();}
//jss = Math.floor(5 * Math.random());
//document.images.PictureBox.src = preLoad[jss].src;
////if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
//if (document.all) document.images.PictureBox.filters.blendTrans.Play();
//jss = Math.floor(5 * Math.random());
/////if (jss > (pss)) jss=0;
//tss = setTimeout('runSlideShow()', SlideShowSpeed);
//}



///////////////////////////////////////////////////////////////////////////////////
//                Coomented Sequence display                                     //
///////////////////////////////////////////////////////////////////////////////////
//function runSlideShow(){
//if (document.all){
//document.images.PictureBox.style.filter="blendTrans(duration=2)";
//document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
//document.images.PictureBox.filters.blendTrans.Apply();}
//document.images.PictureBox.src = preLoad[jss].src;
//if (document.all) document.images.PictureBox.filters.blendTrans.Play();
//jss = jss + 1;
//if (jss > (pss)) jss=1;
//tss = setTimeout('runSlideShow()', SlideShowSpeed);
//}

/////////////////////////////////////////////////////////////////////////////
///                 END OF Functions for the slideshow                   ////
/////////////////////////////////////////////////////////////////////////////

//-->