$(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
 // (a little sooner than page load)
  	$('#living-in-gp').hide();
  	$('#economic-profile').hide();
	$('#business-statistics').hide();
	$('#business-investment').hide();
	$('#about-edgp').hide();
	$('#media-centre').hide();
	$('.more').hide();
 
 // toggles the slickbox on clicking the noted link 
  $('.CloseBox a').click(function() {
	$('#living-in-gp').slideUp(400);
	$('#economic-profile').slideUp(400);
	$('#business-statistics').slideUp(400);
	$('#business-investment').slideUp(400);
	$('#about-edgp').slideUp(400);
	$('#media-centre').slideUp(400);
	$('#Extra').animate({opacity: 1.0}, 400);
	$('#Extra').slideDown(600);
    return false;
  });
  
 $('.page-item-6 a').click(function() {
	$('#Extra').slideUp(400);
	$('#economic-profile').slideUp(400);
	$('#business-statistics').slideUp(400);
	$('#business-investment').slideUp(400);
	$('#about-edgp').slideUp(400);
	$('#media-centre').slideUp(400);
	$('#living-in-gp').animate({opacity: 1.0}, 400);
	$('#living-in-gp').slideDown(600);
    return false;
  });
  
  $('.page-item-7 a').click(function() {
	$('#Extra').slideUp(400);								
    $('#living-in-gp').slideUp(400);
	$('#business-statistics').slideUp(400);
	$('#business-investment').slideUp(400);
	$('#about-edgp').slideUp(400);
	$('#media-centre').slideUp(400);
	$('#economic-profile').animate({opacity: 1.0}, 400);
	$('#economic-profile').slideDown(600);
    return false;
  });
  
  $('.page-item-8 a').click(function() {
    $('#Extra').slideUp(400);
	$('#economic-profile').slideUp(400);
	$('#living-in-gp').slideUp(400);
	$('#business-investment').slideUp(400);
	$('#about-edgp').slideUp(400);
	$('#media-centre').slideUp(400);
	$('#business-statistics').animate({opacity: 1.0}, 400);
	$('#business-statistics').slideDown(600);
    return false;
  });
  
  $('.page-item-9 a').click(function() {
    $('#Extra').slideUp(400);
	$('#economic-profile').slideUp(400);
	$('#business-statistics').slideUp(400);
	$('#living-in-gp').slideUp(400);
	$('#about-edgp').slideUp(400);
	$('#media-centre').slideUp(400);
	$('#business-investment').animate({opacity: 1.0}, 400);
	$('#business-investment').slideDown(600);
    return false;
  });
  
  $('.page-item-10 a').click(function() {
    $('#Extra').slideUp(400);
	$('#economic-profile').slideUp(400);
	$('#business-statistics').slideUp(400);
	$('#business-investment').slideUp(400);
	$('#living-in-gp').slideUp(400);
	$('#media-centre').slideUp(400);
	$('#about-edgp').animate({opacity: 1.0}, 400);
	$('#about-edgp').slideDown(600);
    return false;
  });
  
  $('.page-item-11 a').click(function() {
    $('#Extra').slideUp(400);
	$('#economic-profile').slideUp(400);
	$('#business-statistics').slideUp(400);
	$('#business-investment').slideUp(400);
	$('#about-edgp').slideUp(400);
	$('#living-in-gp').slideUp(400);
	$('#media-centre').animate({opacity: 1.0}, 400);
	$('#media-centre').slideDown(600);
    return false;
  });
	  
 $(".feature").click(function() {
	as = this.getElementsByTagName("a");
	for (i = 0; i < as.length; i++)
		thelink = as[i].href;
	window.location = thelink;
 });
 
 $(".feature").hover(function() {
	$(this).addClass("hover");
 }, function() {
	$(this).removeClass("hover");
 });

});