function toggle(sElement){		//alert('toggle action fired '+ sElement);		if(!document.getElementById){			return false;			//alert('this funct don\'t work in this stoopid browsa')		}		var oElement=document.getElementById(sElement);		if(oElement.className=="closed"){			oElement.className="open";			//alert('it is set to closed');		}		else{			oElement.className="closed";			//alert('it is set to closed');		}	return false;}//****************************************// this function is used to create an array of functions to execute upon page load//// to register an event with the onloader, sifunction add_load_event(func){	var oOldOnLoad = window.onload;	if(typeof window.onload != 'function'){			window.onload=func;	}		else {		window.onload=function(){			oOldOnLoad();			func();		}	}//alert("loader action added");}//****************************************// //****************************************//this function scans through all anchors and mainatians an array of anchors with the // rel attribute set to 'external'// when any of the anchors stored in the array are clicked, the href URI will open in an // external windowfunction register_external_links(){	if(!document.getElementsByTagName){		return false;	}	var anchors = document.getElementsByTagName("a");	for(var i=0; i<anchors.length; i++){			var anchor = anchors[i];			if(anchor.getAttribute("href") && anchor.getAttribute("rel")==("external")){				anchor.target="_blank";				//alert('external link');			}			else if(anchor.getAttribute("href") && anchor.getAttribute("rel")==("popup")){				anchor.onclick = function (){				window.open(this.href, 'window', 'width=620 ,height=525 ,status=no, toolbar=no, resizable=yes');				return false;				};			//alert('popup link detected\n ready to pop up a window!');			}	}}									//alert('reg external links loaded');//add the function to the window.onload listadd_load_event(register_external_links);// changes the horizontal image on the page depending on the page identifier (id of the body element)function set_horizontal_image(){	//alert('set_horizontal_image fired!');	if(!document.getElementById) return false;	else{		var oWide_img=document.getElementById('horizontal_image');		//alert(oWide_img.src);		var oBody = document.getElementsByTagName('body');		//alert(oBody[0].getAttribute('id'));		var sPage_identifier=oBody[0].getAttribute("id");		if(sPage_identifier=='home'){			oWide_img.src='assets/images/home_horizontal.jpg';		}		else if(sPage_identifier=='events'){			oWide_img.src='../assets/images/horizontal_page_images/events_horizontal.jpg';			oWide_img.alt='Ritchie painting at Ultra in Providence, RI';		}		else if(sPage_identifier=='clients'){			oWide_img.src='../assets/images/horizontal_page_images/clients_horizontal.jpg';		}		else if(sPage_identifier=='contact'){			oWide_img.src='../assets/images/horizontal_page_images/contact_horizontal.jpg';		}else if(sPage_identifier=='links'){			oWide_img.src='../assets/images/horizontal_page_images/links_horizontal.jpg';		}		else if(sPage_identifier=='bio'){				oWide_img.src='../assets/images/horizontal_page_images/bio_horizontal.jpg';		}		else if(sPage_identifier=='gallery'){				oWide_img.src='../assets/images/horizontal_page_images/gallery_horizontal.jpg';		}	}}//add_load_event(set_horizontal_image);