function changeimage1(img,pos){
	if(pos==1){
		document.getElementById(img).src='images/Spotlight On Nature cover 7211 dpi.jpg';
	}else if(pos==2){
		document.getElementById(img).src='images/Spotlight-On-Nature-211.jpg'; 
		}
}

function changeimage4(img,pos){
	if(pos==1){
		document.getElementById(img).src='images/Spotlight On Nature cover 7211 dpi.jpg';
	}else if(pos==2){
		document.getElementById(img).src='Spotlight-On-Nature-211.jpg'; 
		}
}


/****************WRITING*******************/
function w_changeimage5(img,pos){
	if(pos==1){
		document.getElementById(img).src='images/Life-Of-A-Cemetery-1.jpg';
	}else if(pos==2){
		document.getElementById(img).src='images/Life-Of-A-Cemetery-2.jpg'; 
		}
}

function w_changeimage3(img,pos){
	if(pos==1){
		document.getElementById(img).src='images/Moods-1.jpg';
	}else if(pos==2){
		document.getElementById(img).src='images/Moods-2-72-dpi.jpg'; 
		}
}

//*********photography*****************//
function p_changeimage1(img,pos){
	if(pos==1){
		document.getElementById(img).src='images/Canada-Post-1.jpg';
	}else if(pos==2){	
		document.getElementById(img).src='images/Canada-Post-2.jpg';
	}
}
function p_changeimage2(img,pos){
	if(pos==1){
		document.getElementById(img).src='images/Yellow-Pages-1.jpg';
	}else if(pos==2){	
		document.getElementById(img).src='images/Yellow-Pages-2.jpg';
	}
}
function p_changeimage3(img,pos){
	if(pos==1){
		document.getElementById(img).src='images/Ottawa-Tourism-1.jpg';
	}else if(pos==2){	
		document.getElementById(img).src='images/Ottawa-Tourism-2.jpg';
	}
}


function crearAjax()
{
	var xmlhttp=false;
	try
	{
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e)
	{
		try
		{
		  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (E)
		{
		  xmlhttp = false;
		}
		}
	 
		if (!xmlhttp && typeof XMLHttpRequest!='undefined')
		{
		  xmlhttp = new XMLHttpRequest();
		}
	return xmlhttp;
}


function Content(page, objContent)
	{			
	  contenedor = document.getElementById(objContent);
	  
	  // creamos un nuevo objeto ajax
	  ajax=crearAjax();
	 
	  //cargar el archivo html por el método GET
	  ajax.open("GET", page,true);
	 
	  ajax.onreadystatechange=function(){
	    if (ajax.readyState==4) // Readystate 4 significa que ya acabó de cargarlo
	    {
	      contenedor.innerHTML = ajax.responseText
	    }
	  }
	  ajax.send(null);
	  				 	
}

function deselectedSubMenu(){
	
	var Link = document.getElementsByTagName("a");
		for(x=0;x<Link.length;x++){
			if(Link.item(x).title=='submenu'){
				if (navigator.appName == "Netscape"){ 
					Link.item(x).className ="submenu_normal";
					//Link.item(x).setAttribute("style","background:url(images/small_red.gif);");
				}else if (navigator.appName.indexOf("Explorer") != -1) { 
					Link.item(x).className ="submenu_normal";
					//Link.item(x).style.setAttribute('cssText', 'background:url(images/small_red.gif);');
				} 
				//
			}
		}
	}
function selecteSubmenu(obj){
	deselectedSubMenu();
	//obj.setAttribute("style","background:url(images/small_white.gif);");
	obj.className="submenu_hover";
	//obj.style.setAttribute('cssText', 'background:url(images/small_white.gif);');
}