$(function(){

//  initilize
    var menu_num = 0;
    $("#menu0").find('.label').animate({width:'260', opacity:'0.8'}, 'slow', function(){
      $(this).find("div.main_txt").fadeIn('slow');});
    $("div.main_txt").hide();
    $("#info_panel").hide();



    var details0 = ["<h1>Grants-in-Aid for Scientific Research <KAKENHI></h1>Grants-in-Aid are awarded to promote creative and pioneering research across a wide spectrum of scientific fields, ranging from the humanities and social sciences to the natural sciences. Grants are awarded to projects organized by individual researchers or research groups at Japanese universities or research institutes engaged in basic research, particularly research in critical fields attuned to advanced research trends.<br><p><a href='../english/e-grants/index.html'>See more information about this program.</a></p>","<h1 style='font-size:10px;letter-spacing: 0.0em;line-height:1.4;'>Program for Promoting Methodological Innovation in Humanities and Social Sciences by Cross-Disciplinary Fusing</h1>Council for Science and Technology in January 2009, mandates the promotion of interdisciplinary joint research of a kind that overcomes the minute subpartitioning of research fields, a problem that impacts Japanese research in the humanities and social sciences, while exponentially advancing research in these domains. Not bound by conventional fields of the humanities and social sciences (HSS), this program seeks to contribute to the development of new HSS disciplines by advancing joint research that fuses diverse fields, synergizing their various wellsprings of knowledge and methodology.<br><p><a href='../j-ibunya/index.html'>See more information about this program(Japanese version only).</a></p>","<h1 style='font-size:11px;line-height:1.3'>Program for Promotion of Humanities and Social Sciences to Satisfy Policy and Social Demands</h1><span style='font-size:11px;'>The Program for Promotion of Humanities and Social Sciences to Satisfy Policy and Social Demands, consisting of the 'Program for Area Studies Based on Needs of Society,' the 'Program for Promoting Social Science Research Aimed at Solutions of Near-Future Problems' and the 'Japan Studies Based on International Collaboration,' supports project-based research in the humanities and social sciences at the university level. It addresses policy and social needs and aims at disseminating the result of the research to the public. In order to revitalize research, the program works for the further development of innovative scholarship. It is for this purpose that the grants are awarded on the basis of open competition, with applications invited from the general public.</span><br><p style='font-size:11px;'><a href='../j-hs/index.html'>See more information about this program(Japanese version only).</a></p>","<h1 style='font-size:11px;line-height:1.3'>Funding Program for World-Leading Innovative R&amp;D on Science and Technology (FIRST Program)</h1>The aim of the FIRST* Program (&yen;100 billion Fund) is to advance the kind of leading-edge research and development that will strengthen Japan’s international competitiveness while contributing to society and people’s welfare through the application of its results.JSPS manages and operates the Fund for financing the FIRST Program and executes the program after the funded R&amp;D projects have been selected.<br><br>*FIRST is the acronym for Funding Program for World-Leading Innovative R&amp;D on Science and Technology.<br><p><a href='../english/e-first/index.html'>See more information about this program.</a></p>","<h1 style='font-size:10px;letter-spacing: 0.0em;line-height:1.4;'>Funding Program for Next Generation World-Leading Researchers(NEXT Program)</h1>Using the Japanese government’s FY 2009 supplemental budget, the Leading-edge Research Promotion Fund was established within the Japan Society for the Promotion of Science (JSPS). JSPS uses it to finance the Funding Program for Next Generation World-Leading Researchers aimed at supporting the researchers who possess the potential to be world leaders in their respective fields.<br><p><a href='../english/e-jisedai/index.html'>See more information about this program.</a></p>","<h1>Leading-edge Research Infrastructure Program</h1>About &yen;30 billion of the &yen;40 billion allocated in the government’s FY2010 budget for the Strategic Fund for Strengthening Leading-edge Research and Development is used to support the establishment and operation of leading-edge research facilities with an aim to strengthening Japan’s overall research capacity. JSPS disburses grants for implementing projects selected by the Ministry of Education, Culture, Sports, Science and Technology (MEXT).<p><a href='/english/e-sentankiban/index.html'>See more information about this program.</a></p>"
    ];

    var details1 = ["<h1>Research Fellowships for Young Scientists</h1> In view of the growing need to foster young researchers who will play an important role in future scientific research activities, JSPS provides a special program under which fellowships are granted to 1) young  Japanese postdoctoral researchers who conduct research activities at Japanese universities or research  institutions on a non-employment basis and to 2) graduate students who conduct research  in Japanese university doctoral programs.<br><p><a href='/english/e-pd/index.html'>See more information about this program.</a></p>","<h1>Postdoctoral Fellowships for Research Abroad</h1>Under this program, fellowships are awarded to young Japanese postdoctoral  researchers for conducting research at foreign universities or research  institutions for a period of two years. The fellowship covers travel expenses, a stipend, and a research grant. In 2000, 100 of these fellowships have been awarded.<br><p><a href='../j-ab/index.html'>See more information about this program.(Japanese version only)</a></p>","<h1> JSPS PRIZE</h1>In order to raise the level of scientific research in Japan to the world's highest standard, it is important to recognize and support young researchers with rich creativity and superlative research ability at an early stage in their careers. To sustain the zeal of such researchers while offering them support in advancing their work, the Japan Society for the Promotion of Science established the JSPS PRIZE in FY2004.<br><p><a href='/english/e-jsps-prize/index.html'>See more information about this program.</a></p>","<h1> JSPS <span style='font-style:italic;'>Ikushi</span> PRIZE</h1>In 2009, JSPS received an endowment from Emperor Akihito on the 20<sup>th</sup> year of his reign. Amidst a severe economic environment in Japanese society, His Majesty’s desire was to encourage and support young scientists who are working diligently to advance their studies and research. In deference to his wishes, JSPS established the <span style='font-style:italic;'>Ikushi</span> Prize program and placed it into operation in FY 2010. It functions to formally recognize outstanding doctoral students who can be expected to contribute to Japan’s future scientific advancement.<br><p><a href='/english/e-ikushi-prize/index.html'>See more information about this program.</a></p>"
];

    var details2 = ["<h1>Providing International Experience and Training to Young Researchers</h1>Click below links to see more information.<br><a style='font-size:10px;' href='/english/e-zunoujunkan2/index.html'>Strategic Young Researcher Overseas Visits Program for Accelerating Brain Circulation</a><br><a style='font-size:11px;' href='/english/e-zunoujunkan/index.html'>Young Researcher Overseas Visits Program for Vitalizing Brain Circulation</a><br><a style='font-size:11px;' href='/english/e-fos/index.html'>Frontiers of Science (FoS) Symposium (JAFoS, JGFoS, JFFoS)</a><br><a style='font-size:11px;' href='/english/e-daikokai/index.html'>Institutional Program for Young Researcher Overseas Visits</a><br><a style='font-size:11px;' href='/english/esf-jsps/index.html'>ESF-JSPS Frontier Science Conference Series for Young Researchers</a><br><a href='/english/e-jg_externship/index.html'>Japanese-German Graduate Externship</a><br><a style='font-size:11px;' href='/english/e-daikokai/01_youngresearchers.html'>Excellent Young Researcher Overseas Visit Program</a><br><a href='/english/e-lindau/index.html'>Travel Grant for Attending Lindau Meetings</a><br><a href='/english/e-itp/index.html'>JSPS International Training Program (ITP)</a><br><a style='font-size:11px;' href='/english/e-hope/index.html'>HOPE Meetings</a><br><a style='font-size:11px;' href='/english/e-asia/sem.htm'>Asia Science Seminar</a></p>","<h1>Inviting Researchers from Other Countries to Japan</h1>Click below links to see more information.<br><p><a href='/english/e-fellow/postdoctoral.html#long'>Postdoctoral Fellowships for Foreign Researchers</a><br><a style='font-size:11px;' href='/english/e-fellow/postdoctoral.html#short'>Postdoctoral Fellowships(Short-term) for North American and European Researchers</a><br><a  style='font-size:11px;' href='/english/e-inv/index.html'>Invitation Fellowship Program for Research in Japan (Short-term, Long-term)</a><br><a href='/english/e-awards/index.html'>JSPS Award for Eminent Scientists</a><br><a href='/english/e-summer/index.html'>JSPS Summer Program</a><br><a href='/english/e-eayouth/index.html'>Invitation Program for East Asian Young Researchers</a></p>","<h1>Supporting International Joint Research, Seminars and Exchanges</h1>Click below links to see more information.<br><a style='font-size:11px;' href='/english/e-bilat/main.html'>Bilateral Programs(Joint Research Projects and Seminars)</a><br><a style='font-size:11px;' href='/english/e-bilat/main.html'>Bilateral Programs(Researcher Exchange Program)</a><br><a style='font-size:11px;' style='font-size:11px;' href='http://oia.cancer.gov/programs-japan-funding.shtml'>The U.S. -Japan Cooperative Cancer Research Program</a><br><a style='font-size:11px;' href='/english/e-bottom/01_a_outline.html'>JSPS-NSF International Collaborations in Chemistry(ICC)</a><br><a style='font-size:11px;' href='/english/e-bottom/01_c_outline.html'>JSPS-NSF Partnerships for International Research and Education (PIRE)</a><br><a style='font-size:11px;' href='/english/e-bottom/index.html'>G8 Research Councils Initiative</a>&nbsp;&nbsp;<a style='font-size:11px;' href='/english/e-asia/e-foresight/foresight.html'>A3 Foresight Program</a><br><a style='font-size:11px;' href='/english/e-meeting/index.html'>International Scientific Meetings in Japan</a><br><a style='font-size:11px;' style='font-size:11px;' href='../j-is/main.html'>Travel Grant for Academic Meetings(Japanese version only)</a><br><a style='font-size:11px;' style='font-size:11px;' href='/english/e-c2c/index.html'>Newly-Revised Core-to-Core Program</a>&nbsp;&nbsp;<a style='font-size:11px;' href='/english/e-core/index.html'>Core University Program</a><br><a style='font-size:11px;' href='/english/e-core_to_core/index.html'>JSPS Core-to-Core Program</a>&nbsp;&nbsp;<a style='font-size:11px;' href='/english/e-aaplat/index.html'>AA Science Platform Program</a><br><a style='font-size:11px;' href='/english/e-acore/index.html'>Asian CORE Program</a>&nbsp;&nbsp;<a style='font-size:11px;' href='/english/e-oda/index.html'>Dispatch of Science and Technology Researchers</a></p>","<h1>Conducting Scientific Exchanges with Asian and African Countries</h1>Click below links to see more information.<br><a style='font-size:11px;' href='/english/e-bilat/main.html'>Bilateral Programs (Joint Research Projects and Seminars)</a><br><a style='font-size:11px;' href='../j-bilat/medical_exchange/index.html'>Bilateral Programs (Japan-China Medical Exchange Program)(Japanese version only)</a><br><a style='font-size:11px;' href='/english/e-bilat/main.html'>Bilateral Programs (Researcher Exchange Program)</a><br><a style='font-size:11px;' href='/english/e-c2c/index.html'>Newly-Revised Core-to-Core Program</a><br><a style='font-size:11px;' href='/english/e-ronpaku/index.html'>RONPAKU (Dissertation PhD) Program</a><br><a style='font-size:11px;' href='/english/e-acore/index.html'>Asian CORE Program</a><br><a style='font-size:11px;' href='/english/e-aaplat/index.html'>AA Science Platform Program</a><br><a style='font-size:11px;' href='/english/e-foresight/index.html'>A3 Foresight Program</a><br><a style='font-size:11px;' href='/english/e-core/index.html'>Core University Program</a><br><a style='font-size:11px;' href='/english/e-asia_seminar/index.html'>Asian Science Seminar</a><br><a style='font-size:11px;' href='/english/asiahorcs/index.html'>Asian Heads of Research Councils: ASIAHORCs</a><br><a style='font-size:11px;' href='/english/e-hope/index.html'>HOPE Meetings</a><br><a style='font-size:11px;' href='/english/e-oda/index.html'>Dispatch of Science and Technology Researchers</a></p>","<h1>Cooperative Programs by Region</h1>Click below links to see more information.<br><p><a href='../j-kokusai/koryu_kunibetu.html'>List of cooperations by region(Japanese version only)</a></p>","<h1>Supporting Researchers' Outreach Activities</h1>Click below links to see more information.<br><p><a href='/english/e-plaza/e-sdialogue/index.html'>Science Dialogue </a></p>","<h1>Other International Programs</h1>Click below links to see more information.<br><p><a href='/english/e-plaza/20_alumni.html'>JSPS Supports Alumni Follow-up Activities(JSPS Alumni Association) </a><br><a href='/english/e-affiliated/index.html'>Japan-Affiliated Research Community Network(JARC-Net)</a><br><br><a style='font-size:11px;' href='/english/e-astrategy/index.html'>Strategic Program for Building an Asian Science and Technology Community</a><br><a href='/english/e-bilat/e-u-kokusen/index.html'>Strategic Fund for Establishing International Headquarters in Universities</a></p>"];

    var details3 = ["<h1>Global COE Program</h1><div style='font-size:11px'>Based on assessments of the \"21st Century COE Program\" and verifications of its results to date carried out by MEXT from FY2002, a decision was made to establish the \"Global COE (Centers of Excellence) Program\". The program will provide funding support for establishing education and research centers that perform at the apex of global excellence to elevate the international competitiveness of the Japanese universities. The program will strengthen and enhance the education and research functions of graduate schools, to foster highly creative young researchers who will go on to become world leaders in their respective fields through experiencing and practicing research of the highest world standard.<br>JSPS has established the \"Global COE Program Committee\" to oversee the grant selection process and COE performance assessment under the program. <br></div><p><a href='/english/e-globalcoe/index.html'>See more information about this program.</a></p>","<h1>Program for Enhancing Systematic Education in Graduate schoolls</h1>Under this program, human resources are not limited to researchers but include talented young people who will go on to play active roles as leaders in the industrial and other sectors of society. Priority support is given to highly effective, systematic initiatives directed at improving education in master’s and doctoral programs at Japanese university graduate schools. Such initiatives are expected to dramatically enhance course curriculum development while promoting internationalization, hence, improving graduate education quality. Program funding is carried by MEXT, with JSPS conducting application screening and grantee selection.<br><p><a href='http://www.jsps.go.jp/j-daigakuin/index.html'>See more information about this program(Japanese version only).</a></p>","<h1>Program for Promoting University Education</h1><div style='font-size:11px'>In Japan, higher education is expected to be effective in fostering talented young people who will be the mainstay of a knowledge-intensive society. As the country approaches an era of mass university enrollment, tertiary educational systems will also need to be responsive to wider diversity in student knowledge, study habits and learning motivation. Under this program, universities, junior colleges and national colleges of technology are eligible to apply for grants to sustain their educational capacity and improve their education quality. Priority financial support is given to adopted applications judged most effective for achieving these goals. Through this targeted support and the widespread dissemination of emulative results, the program aims to contribute to strengthening the guarantee for quality higher education in Japan.</div><p><a href='http://www.jsps.go.jp/j-pue/index.html'>See more information about this program(Japanese version only).</a></p>","<h1>Project for Establishing University Network for Internationalization(Global 30)</h1><div style='font-size:10px'>Rooted in the framework of the \“300,000 International Students Plan,\”  Eenacted by MEXT and other ministries, this project was established in 2009 to elevate the international competitiveness of Japanese tertiary education while fostering students and researchers on internationalized campuses so as to give them the ability to play active roles in the global arena.<br>The selected universities are expected to develop themselves as Japan\’s leading internationalization hubs by providing a high quality of education and an environment that makes it easy for students from other countries to study in Japan.<br>In carrying out this program, JSPS established the \“Global 30 Committee\” to oversee the grant selection process and assess the performance of the program\'s core universities.<br></div><p><a href='/english/e-kokusaika/index.html'>See more information about this program.</a></p>","<h1>World Premier International Research Center Initiative(WPI Program)</h1><div style='font-size:11px'>The World Premier International Research Center Initiative (WPI Program) provides priority support for projects aimed at creating top world-level research centers staffed at their core with the world's most leading researchers. By achieving a very high research standard and providing an excellent research environment, the centers should possess a level of \"global visibility\" that attracts top researchers from around the world.<br>Based on \"3rd Science and Technology Basic Plan\" (issued by Cabinet, March 28, 2006) and \"Comprehensive Strategy for Creating Innovation\" (issued by Council for Science and Technology Policy, June 14, 2006), WPI program was established by MEXT in FY2007. JSPS is commissioned by MEXT to conduct grant selection and project assessment processes and perform other administrative functions in accordance with guidelines established by the Ministry.</div><p><a href='/english/e-toplevel/index.html'>See more information about this program.</a></p>"];

    var details4 = ["<h1 style='font-size:12px;letter-spacing: 0.0em;line-height:1.37;'>HIRAMEKI TOKIMEKI SCIENCE(Welcome to a University Research Lab-Science That Inspires)</h1><div style='font-size:11px'>Established in FY 2005, this program offers opportunities for school children to better understand the meaning of science and its role in their daily lives by visiting and experiencing firsthand a university laboratory. During these visits, the results of research supported by Grants-in-Aid for Scientific Research (Kakenhi) are described in easy-to-understand language.<br>The aim of the program is to promote science study and ultimately to advance research by stimulating the intellectual curiosity of the young participants while cultivating in them a rich sense of creativity, along with a keen awareness of science\'s cultural value and societal importance.<br></div><p><a href='http://www.jsps.go.jp/hirameki/index.html'>See more information about this program(Japanese version only).</a></p>","<h1>Science Dialogue Program</h1>It is a program that provides JSPS Fellows with opportunities to give lectures on their research work at high schools in the vicinity of their Japanese host institutes. These talented young scientists from abroad volunteer to participate in this program.<br>These lectures will, it is expected, stimulate the students\' interest in research, while deepening their international understanding through interaction with the Fellows. As for the Fellows, their participation will give them an opportunity to enjoy an exchange with local community while strengthening their ties with Japan.<br><p><a href='/english/e-plaza/e-sdialogue/index.html'>See more information about this program.</a></p>"];

	var details5 = ["<h1 style='font-size:10px;letter-spacing: 0.0em;line-height:1.4;'>University-Industry Research Cooperation Societally Applied Scientific Linkage and Collaboration</h1>This program works to provide a platform between the academic and industrial sectors for collaboration in both basic and applied research.<br>Established in 1933, the program is operated by an advisory committee of members from both sectors. It seeks to promote cooperation and linkage in areas of science that will exert a positive impact on society.<br><p><a href='/english/e-soc/index.html'>See more information about this program.</a></p>"];

var details6 = ["<h1>International Prize for Biology</h1>The International Prize for Biology was instituted in April of 1985 by the Committee on the International Prize for Biology. It aims to commemorate the sixty-year reign of Emperor Showa and his longtime devotion to biological research and also to offer tribute to the present Emperor His Majesty Emperor Akihito, who has strived over many years to advance the study taxonomy of gobioid fishes while contributing continuously to the developing of this Prize. The award ceremony is held in the presence of His Majesty the Emperor.<br><p><a href='/english/e-biol/index.html'>See more information about this program.</a></p>","<h1>Hideyo Noguchi Africa Prize</h1><div style='font-size:12px'>The spread of infectious diseases presents a common threat to all humankind.  Mindful that Africa faces this scourge most acutely, the Government of Japan established the Hideyo Noguchi Africa Prize in July 2006 in memory of Dr. Hideyo Noguchi (1876-1929) whose belief in medical advancement and self-sacrificing activities in Africa remain a beacon of inspiration to all. Guided by these ideals and mindful of the ominous human suffering persisting in Africa, the region facing the most serious health challenge on the globe, the Prize aims to honour individuals with outstanding achievements in the fields of medical research and medical services to combat infectious and other diseases in Africa, thus contributing to the health and welfare of the African people and of all humankind.<br></div><p><a href='/english/e-noguchiafrica/index.html'>See more information about this program.</a></p>","<h1> JSPS PRIZE</h1>In order to raise the level of scientific research in Japan to the world's highest standard, it is important to recognize and support young researchers with rich creativity and superlative research ability at an early stage in their careers. To sustain the zeal of such researchers while offering them support in advancing their work, the Japan Society for the Promotion of Science established the JSPS PRIZE in FY2004.<br><p><a href='/english/e-jsps-prize/index.html'>See more information about this program.</a></p>","<h1> JSPS <span style='font-style:italic;'>Ikushi</span> PRIZE</h1>In 2009, JSPS received an endowment from Emperor Akihito on the 20<sup>th</sup> year of his reign. Amidst a severe economic environment in Japanese society, His Majesty’s desire was to encourage and support young scientists who are working diligently to advance their studies and research. In deference to his wishes, JSPS established the <span style='font-style:italic;'>Ikushi</span> Prize program and placed it into operation in FY 2010. It functions to formally recognize outstanding doctoral students who can be expected to contribute to Japan’s future scientific advancement.<br><p><a href='/english/e-ikushi-prize/index.html'>See more information about this program.</a></p>","<h1>Donations</h1>JSPS receives contributions for the purpose of supportingresearchers and advancing scientific research. Established within JSPS is a special trust for receiving donations and funding activities. Donations made to JSPS enjoy a tax-exempt status. Contributions are received from corporations, groups and individuals, and are used to carry out various endowed programs.<br><p><a href='http://www.jsps.go.jp/j-donation/index.html'>See more information about this program(Japanese version only).</a></p>"
];

    var details = [details0, details1, details2, details3, details4, details5, details6];


//  mouseover
    $("div.hn_menu_hover").mouseover(function(){
      $(this).addClass('hn_menu_enter');
    }).mouseout(function(){
       $(this).removeClass('hn_menu_enter');
    }).click(function(){
      $('.hn_menu_click').removeClass('hn_menu_click');
      $(this).addClass('hn_menu_click');
    });

    $(".label").mouseover(function(){
      $(this).addClass('over');
    }).mouseout(function(){
      $(this).removeClass('over');
    }).click(function(){
      $(this).removeClass('over');
      if($(this).attr('class') == "label right" || $(this).attr('class') == "label righttwo" ){
         var thisindex = $(this).index() + 5;
      }else{var thisindex = $(this).index();}
      $('div#info_panel_html').html(details[menu_num][thisindex]);
	  if($(this).hasClass('small3') || $(this).hasClass('righttwo')|| $(this).hasClass('lefttwo')){
		  $('div#info_panel').addClass('panel2');
		  }else{
			  $('div#info_panel').addClass('panel1');
			  }
			  

      $('div#info_panel').animate({height:'206px', opacity:'0.96'}, '1.0');

    });

    $("div#panel_close").click(function(){  
      $('div#info_panel').animate({height:'0', opacity:'0.0'}, '1.0',function(){$(this).hide()}); 
		  $('div#info_panel').removeClass('panel2');
      $('div#info_panel_html').html("");
    });



//  animation
    $("ul#hn_menu li.normal").click(function(){

      if($('div#info_panel').attr('height') != 0){
		  $('div#info_panel').removeClass('panel2');
          $('div#info_panel').animate({height:'0', opacity:'0.0'}, '1.0', function(){$(this).hide()});  
      }
      $("ul#hn_menu li.selected").removeClass('selected').removeClass('selected2').removeClass('selected3');
      $(this).addClass('selected');

	if($(this).hasClass('normal2')){
            $(this).addClass('selected2');
        }
	if($(this).hasClass('normal3')){
            $(this).addClass('selected3');
        }
      str_hide = "#menu" + menu_num.toString();
      menu_num = $(this).index();
      $(str_hide).find("div.main_txt").fadeOut('slow');
	$(str_hide).fadeOut('slow', function(){
        str_show = "#menu" + menu_num.toString();
      $(str_show).fadeIn('slow');
      $(str_show).find('.label').hide();
      $(str_show).find('.label').animate({width:'260', opacity:'0.8'}, 'slow', function(){
      $(str_show).find("div.main_txt").fadeIn('slow');});

    });
});

});
