
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("form2.htm", null, "height=650,width=720,resizable=yes,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no");
} 

function Volunteer2_Click() 
{ 
    window.open("newVolunteer.htm", null, "height=500,width=700,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 Comment_Click() 
{ 
    window.open("Comments.htm", null, "height=600,width=400,status=no,toolbar=no,scrollbars=no,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=400,width=400,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");
	 window.open("Comments.htm", null, "height=600,width=400,status=no,toolbar=no,scrollbars=no,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=480,width=500,status=yes,toolbar=no,menubar=no,location=no");
}

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[1]  = 'images/Rot_logos/BBlogowebsite.JPG';
Picture[2]  = 'images/Rot_logos/MCAP_GEN.jpg';
Picture[3]  = 'images/Rot_logos/CR_GWL_clr_E.jpg';
Picture[4]  = 'images/Rot_Logos/gwlra.jpg';
Picture[5]  = 'images/Rot_logos/CSA_Group.JPG';
Picture[6]  = 'images/Rot_logos/DeltaChelseaDT.jpg';
Picture[7]  = 'images/Rot_logos/DufferinNew.jpg';
Picture[8]  = 'images/Rot_logos/GUESS.jpg';
Picture[9]  = 'images/Rot_logos/hawkinsfinal.jpg';
Picture[10] = 'images/Rot_logos/CMYK.jpg';
Picture[11] = 'images/Rot_logos/KPMG.jpg';
Picture[12] = 'images/Rot_logos/SE_Green.jpg';
Picture[13] = 'images/Rot_logos/MF.jpg';
Picture[14] = 'images/Rot_logos/mpcf-v1.jpg';
Picture[15] = 'images/Rot_logos/nissan.jpg';
Picture[16] = 'images/Rot_logos/Rotary.jpg';
Picture[17] = 'images/Rot_logos/BILD.jpg';
Picture[18] = 'images/Rot_logos/SNCLavalin.jpg';
Picture[19] = 'images/Rot_logos/TD.jpg';
Picture[20] = 'images/Rot_logos/THD Canada Foundation.jpeg';
Picture[21] = 'images/Rot_logos/Royale_Kitten.jpg';

//Picture[3]  = 'images/Rot_logos/DE.jpg'; 
//Picture[4]  = 'images/Rot_Logos/logo_dufferin.gif';
//Picture[5]  = 'images/Rot_logos/Duracell.jpg';
//Picture[6]  = 'images/Rot_logos/DSToutput_color_small_H.jpg';
//Picture[7]  = 'images/Rot_logos/enbLogo.gif';
//Picture[9]  = 'images/Rot_logos/IHG.jpg';
//Picture[10] = 'images/Rot_logos/jsrl.jpg';
//Picture[12]  = 'images/Rot_logos/MLSE.jpg';
//Picture[15] = 'images/Rot_logos/RBCFTNrgbPE.png';
//Picture[16] = 'images/Rot_logos/schnieder.jpg';
//Picture[18] = 'images/Rot_logos/youngnak.jpg';

//Picture[2]  = 'images/Rot_logos/colliers.jpg';
//Picture[4]  = 'images/Rot_logos/Daniels Logo.jpg';
//Picture[7]  = 'images/Rot_logos/EFclark.jpg';
//Picture[9]  = 'images/Rot_logos/gthba.jpg';
//Picture[10]  = 'images/Rot_logos/Hewitt.jpg';
//Picture[13] = 'images/Rot_logos/LPCC.bmp';
//Picture[14] = 'images/Rot_logos/mainellafl.gif';
//Picture[17] = 'images/Rot_logos/OnSurveyLogo.jpg';
//Picture[20] = 'images/Rot_logos/rogersfamilylogo.jpg';



// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; 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)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}

/////////////////////////////////////////////////////////////////////////////
///                 END OF Functions for the slideshow                   ////
/////////////////////////////////////////////////////////////////////////////