/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


	

	

$(document).ready(function(){ 
                  $("#rac").hide();
                  $("ul#topnav li#go").css({'background' : '#1376c9 url(topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item
                  $("ul#topnav li#go").find("span").show(); //Show the subnav
                    $("ul#topnav li").hover(function() { //Hover over event on list item
                        $(this).css({'background' : '#1376c9 url(topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item
                        $(this).find("span").show(); //Show the subnav
                    } , function() { //on hover out...
                            $(this).css({'background' : 'none'}); //Ditch the background
                            $(this).find("span").hide(); //Hide the subnav
                    });
                   $("#hp").click(function() { //Hover over event on list item
                        $(this).css({'background' : '#1376c9 url(topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item
                       // $(this).find("span").show(); //Show the subnav
                       $("#gl").css({'background' : 'none'}); //Ditch the background
                       $('#rac').show('slow');
                       $('#country').hide();
                       
                        $.ajax({
                          url:'../feed.php?param=ren&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                    });
                $("#gl").click(function() { //Hover over event on list item
                        $(this).css({'background' : '#1376c9 url(topnav_active.gif) repeat-x'}); //Add background color + image on hovered list item
                       // $(this).find("span").show(); //Show the subnav
                       $('#country').show();
                       $('#rac').hide();
                       $("#hp").css({'background' : 'none'}); //Ditch the background
                        $.ajax({
                          url:'../feed.php?param=en&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                    });
                
                      $.ajax({
                          url:'../feed.php?param=en&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  
                  
                  $('a#en').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=en&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
                  $('a#jp').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=jp&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
                  $('a#ch').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=ch&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
                  $('a#th').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=th&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
                  $('a#ren').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=ren&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
                  $('a#rjp').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=rjp&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
                  $('a#rch').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=rch&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
                   $('a#rth').click(function(){
                      $('#content1').hide();
                      $.ajax({
                          url:'../feed.php?param=rth&page=0',
                          success: function(data){
                              $('#content1').html(data);
                          }
                      });
                      $('#content1').show('slow');
                  });
              $('a#close').click(function(){
                  $('#content1').hide('slow');
              })
       });


