

function window_open()
{
var newWindow;
var urlstring = 'extra/popwincal/Calendar.htm'
newWindow = window.open(urlstring,'','height=200,width=280,toolbar=no,minimize=no,status=no,memubar=no,location=no,scrollbars=no')
}

function changeOverImage(str)
{
	if(str == "courses")
     	{  
		document.courses.src = "image/courses_l2_but_over.gif"
	}
	
	if(str == "home")
     	{  
		document.home.src = "image/home_but_over.gif"
	}

	if(str == "projects")
     	{  
		document.projects.src = "image/projects_but_over.gif"
	}
	
	if(str == "photographer")
     	{  
		document.photographer.src = "image/photographer_but_over.gif"
	}			

	if(str == "contact_us")
     	{  
		document.contact_us.src = "image/contactUs_but_over.gif"
	}			


	if(str == "rates")
     	{  
		document.rates.src = "image/rate_but_over.gif"
	}			


	if(str == "opportunities")
     	{  
		document.opportunities.src = "image/opportunities_but_over.gif"
	}			

	if(str == "others")
     	{  
		document.others.src = "image/others_but_over.gif"
	}			
			
	
}	


function changeOutImage(str)	
{
	
	if(str == "courses")
     	{  
		document.courses.src = "image/course_up.gif"
	}
	
	if(str == "home")
     	{  
		document.home.src = "image/home_up.gif"
	}
	
	if(str == "projects")
     	{  
		document.projects.src = "image/projects_but_up.gif"
	}
	
	if(str == "photographer")
     	{  
		document.photographer.src = "image/photographer_up.gif"
	}			

	if(str == "contact_us")
     	{  
		document.contact_us.src = "image/contact_up.gif"
		
	}
			
	if(str == "rates")
     	{  
		document.rates.src = "image/rate_up.gif"
	}			


	if(str == "opportunities")
     	{  
		document.opportunities.src = "image/opportunities_up.gif"
	}			

	if(str == "others")
     	{  
		document.others.src = "image/others_up.gif"
	}			

}	

      		
     
var b_out; 
var target; 
var counter=0; 
var recount=false;
 
window.setInterval("stopwatch()", 200); 

function showMenu(id) 
{ 
	counter=0; 
	recount=false; 
	b_out=false; 
	target=id; 

	if(id==1) 
	{ 
		document.all.photographer_list.style.visibility="visible"; 
		document.all.courses_list.style.visibility="hidden"; 
	} 
	else if(id==2) 
	{ 
		document.all.courses_list.style.visibility="visible"; 
		document.all.photographer_list.style.visibility="hidden"; 
	} 

	else if(id==3) 
	{ 
		document.all.courses_list.style.visibility="hidden"; 
		document.all.photographer_list.style.visibility="hidden"; 
	} 

} 


function hideMenu(intV) 
{ 
	b_out=true; 
	
	if(recount==false) 
	{ 
		counter=intV; 
		
		if(intV!=0) recount=true; 
		
	} 
} 

function stopwatch() 
{ 
	
	if(counter>=3 && b_out==true) 
	{ 
		hide(); 
		counter=0; 
		b_out=false;
	} 
	
	else if(b_out==true) 
	{ 
		counter++; 
	} 
} 

function hide() 
{ 
		if(target==1) document.all.photographer_list.style.visibility="hidden"; 
	else if(target==2) document.all.courses_list.style.visibility="hidden"; 
	
	recount=false; 
} 
     
function resizePreview()   
{   
if (parseInt(navigator.appVersion)>3) 
{
 if (navigator.appName=="Netscape") {
  window.innerWidth = 700;
  window.innerHeight = 500;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  document.body.offsetWidth = 700 ;
  document.body.offsetHeight = 500;
 }
}
}


function refresh()
{
    window.location.reload( false );
}
