function initMenu() {
  $('#_menu ul').hide();
  $('#_menu ul:first').hide();
  $('#_menu li a').hover(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#_menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
//$(document).ready(function() {initMenu();});
 $(document).ready(function(){
	$('#_menu li li li').addClass('third');
 
	$('#_menu li.parent').click(
		function() {
			$(this).find('li').not('li.third').show('slow');
			},
		function() {
//			$(this).find('li').hide('slow');
			}			
		);
		$('#_menu li li.parent').click(
		function() {
			$(this).find('li.third').show('slow');
			},
		function() {
//			$(this).find('li').hide('slow');
			}			
		);
		

		
		
 
 }); 
 
 
function ShowMenu1(){
	$('#m1 .I1, .I2, .I3').show('slow');
}
function ShowMenu2(){
	$('#m2 .M2I1, .M2I2, .M2I2, .M2I3, .M2I4, .M2I5').show('slow');
}
function ShowMenu3(){
	$('#m2 .M2I1, .M2I2, .M2I2, .M2I3, .M2I4, .M2I5').show('slow');
	$('#m3 li').show('slow');
}

function HomePageLoder(){
	$('#homeLink').hide();
}


function FooterText(){
	var str;	 
		str ='&nbsp;Copyright &copy; 2009. Nordian.Net'	
	document.write(str)
}
function snetwork(){
	var str;	 
		str ='<img src="images/snetwork.png" />'	
	document.write(str)
}

function TopMenuItems(){
	var str;	 
	
		str =  '<ul class="menu" id="_menu">'
		str += '<li id="homeLink" class="parent item2"><a href="index.html"><span>Home</span></a></li>'
		str += '<li  class="parent item3"><a href="about_us.html"><span>About Us</span></a>'
		str += '</li>'
		str += '<li class="parent item3"><a href="product.html"><span>Products</span></a>'
		str += '  <ul id="m2">'
		str += '	<li class="parent item11 M2I1 "><a href="books.html"><span>Books / Manuals</span></a>'
		str += '	</li>'
		str += '	<li class="parent item11 M2I2 "><a href="e_books.html"><span>E-Books </span></a></li>'
		str += '	<li class="parent item11 M2I3 "><a href="m_books.html"><span>M-Books</span></a></li>'
		str += '	<li class="parent item11 M2I4"><a href="learningsystem.html"><span>Distance / Blended Learning Platform</span></a> </li>'
		str += '	<li class="parent item11 M2I5"><a href="questionbank.html"><span>Online Exam Preparation Question Bank</span></a> </li>'
		str += '  </ul>'
		str += '</li>'
		str += '<li class="item4"><a href="https://nordian.storesecured.com/" target="_blank"><span>Webshop</span></a></li>'
		str += '<li class="item4"><a href="projects.html"><span>Leonardo Projects</span></a></li>'
		str += '<li class="item5"><a href="contactus.html"><span>Contact Us </span></a></li>'
		str += '</ul>'

				
	document.write(str)
}







// end Menu Functions

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
