/**
 * @author Administrator
 */
function initilizePage(){
	$("#pressMenu > li >a").eq(2).css("color","#c3e09c");
	//prepare links
	$("#keys").find("li").each(function(j){
		var linkStr = '<a href="#'+$(this).html().toLowerCase()+'" >'+$(this).html()+'</a>';
		$(this).empty();
		$(this).append(linkStr);
	});
	$("#keys > li").find("a").css({fontSize:"11px",color:"#88c239"});
	
	
	//prepare right-side content
	$("#values >li").css({padding:"15px 0 15px 0",borderBottom:"solid 1px #f0f0f0"});
	$("#content").prepend('<a class="bbtn" href="../press.html">Back</a>');
	$('.bbtn').css({height:"20px",width:"527px",textAlign:"right"}).css("float","right");
	$("#content").find("h1").eq(0).css({fontSize:"18px",margin:"0 0 15px 0",padding:"0", color:"#585859"});
	$("#content").find("img").hide();
	$("#content").find("span").hide();
	//$("#content").find("br").remove();
	$("#content").find("h3").css({fontSize:"12px",color:"#585859",margin:"0 0 5px 0"});
	$("#content").find("p").css({fontSize:"11px",color:"#585859"});
	$("#content").find("a").css({fontSize:"11px",color:"#88c239"});
	$("#content").find("h4").css({fontSize:"11px",color:"#585859",margin:"10px 0 0 0"});

	//then image gallery
	$("#gallery").find("h2").css({fontSize:"18px",margin:"0 0 15px 0",padding:"0", color:"#585859"});
	$("#gallery > ul").width(527);
	$("#gallery > ul").find("li").css("float","left").css({margin:"0 15px 15px 0"});
	$("#gallery").append('<div style="clear:both"></div>');
	$("#gallery").find("a").attr("class","thickbox");
	
	tb_init('a.thickbox, area.thickbox, input.thickbox');
	imgLoader = new Image();// preload image
  	imgLoader.src ="../../img/loadingAnimation.gif";
	
//	$("#links").remove();

	$("#links").prepend('<h2>Links</h2>');
	$("#links").find("h2").css({fontSize:"18px",margin:"0 0 15px 0",padding:"0", color:"#585859"});
	$("#links").find("a").css("float","left");
	$("#links").find("a").css({fontSize:"11px",color:"#88c239", margin:"0 15px 15px 0"});

	
}