function loadIframe(iframeName, url, heading) {
	menu_div = document.getElementById("infrastructure_menu");
	if (heading.substring(0,26) == 'Institute > Infrastructure')
	{
		menu_div.style.display = "block";
	}
	else
	{
		menu_div.style.display = "none";
	}

	contents_div = document.getElementById("contents");
	iframe_contents_div = document.getElementById("iframe_contents");
	if ((heading.substring(0,13) == 'Photo Gallery') || (heading.substring(0,4) == 'News') || (heading.substring(0,16) == 'Placement > News') || (heading.substring(0,12) == 'Abode > News'))
	{
		contents_div.style.display = "none";
		
	}
	else
	{
		contents_div.style.display = "block";
		
	}

	var i = 0;
	if (heading == 'Institute') {i = 1;}
	if (heading == 'Institute > Infrastructure > Classrooms') {i = 2;}
	if (heading == 'Institute > Infrastructure > Labs') {i = 3;}
	if (heading == 'Institute > Infrastructure > Library') {i = 4;}
	if (heading == 'Institute > Infrastructure > Auditorium') {i = 5;}
	if (heading == 'Institute > Infrastructure > Facilities') {i = 6;}
	if (heading == 'Institute > Infrastructure > Hostels') {i = 7;}
	if (heading == 'News & Notices') {i = 8;}
	if (heading == 'Admissions'){i = 9;}
	if (heading == 'Academics'){i = 10;}
	if (heading == 'Placement'){i = 11;}	
	if (heading == 'Help Desk'){i = 12;}	
	if (heading == 'Help Desk > Contact Us'){i = 13;}	
	if (heading == 'Placement > Career & Guidance Cell'){i = 14;}
	if (heading == 'Placement > Placement Procedure'){i = 15;}
	if (heading == 'Placement > Our Partners'){i = 16;}
	if (heading == 'Placement > Alumni'){i = 17;}
	if (heading == 'Abode > Introduction'){i = 18;}
	if (heading == 'Abode > Faculty Resource Center'){i = 19;}
	if (heading == 'Abode > Developing Entrepreneurship'){i = 20;}
	if (heading == 'Abode > Social Platform'){i = 21;}
	if (heading == 'Abode > Corporate Consultancy'){i = 22;}
	if (heading == 'Abode > Student Profiling'){i = 23;}




	switch(i)
	{
		case 1 :
		{
			loadIframe('iframe_contents', 'text_institute_historical.html',' ');
			break;			
		}
		
		case 2 :
		{
			loadIframe('iframe_contents', 'text_institute_infrastructure_classrooms.html','Institute > Infrastructure ');
			break;			
		}
		
		case 3 :
		{
			loadIframe('iframe_contents', 'text_institute_infrastructure_labs.html','Institute > Infrastructure ');
			break;			
		}
		
		case 4 :
		{
			loadIframe('iframe_contents', 'text_institute_infrastructure_library.html','Institute > Infrastructure ');
			break;			
		}
		
		case 5 :
		{
			loadIframe('iframe_contents', 'text_institute_infrastructure_auditorium.html','Institute > Infrastructure ');
			break;			
		}
		
		case 6 :
		{
			loadIframe('iframe_contents', 'text_institute_infrastructure_facilities.html','Institute > Infrastructure ');
			break;			
		}
		
		case 7 :
		{
			loadIframe('iframe_contents', 'text_institute_infrastructure_hostels.html','Institute > Infrastructure ');
			break;			
		}
		
		case 8 :
		{
			loadIframe('iframe_contents', 'text_notices.html','Notices');
			break;			
		}
		
		case 9 :
		{
			loadIframe('iframe_contents', 'text_admissions_courses_offered.html',' ');
			break;			
		}

		case 10 :
		{
			loadIframe('iframe_contents', 'text_academics_academic_system.html',' ');
			break;			
		}
	
		case 11 :
		{
			loadIframe('iframe_contents', 'text_placement_career_guidance_cell.html',' ');
			break;			
		}
	
		case 12 :
		{
			loadIframe('iframe_contents', 'text_helpdesk_faq.html',' ');
			break;			
		}

		case 13 :
		{
			loadIframe('iframe_contents', 'text_helpdesk_contact_us.html',' ');
			break;			
		}

		case 14 :
		{
			loadIframe('iframe_contents', 'text_placement_career_guidance_cell.html',' ');
			break;			
		}
		case 15 :
		{
			loadIframe('iframe_contents', 'text_placement_procedure.html',' ');
			break;			
		}
		case 16 :
		{
			loadIframe('iframe_contents', 'text_placement_our_partners.html',' ');
			break;			
		}
		case 17 :
		{
			loadIframe('iframe_contents', 'text_placement_our_alumni.html',' ');
			break;			
		}
		case 18 :
		{
			loadIframe('iframe_contents', 'text_abode_introduction.html',' ');
			break;			
		}
		case 19 :
		{
			loadIframe('iframe_contents', 'text_abode_faculty_resource_center.html',' ');
			break;			
		}
		case 20 :
		{
			loadIframe('iframe_contents', 'text_abode_entrepreneurship_development.html',' ');
			break;			
		}
		case 21 :
		{
			loadIframe('iframe_contents', 'text_abode_social_platform.html',' ');
			break;			
		}
		case 22 :
		{
			loadIframe('iframe_contents', 'text_abode_corporate_consultancy.html',' ');
			break;			
		}
		case 23 :
		{
			loadIframe('iframe_contents', 'text_abode_student_profiling.html',' ');
			break;			
		}

		default:
		{
		}
	}
	
    if ( window.frames[iframeName] ) {
        window.frames[iframeName].location = url;   
        return false;
    }
    return true;
}
