$(document).ready(function() {
	//BUTTON
	$(".button").each(function() {
		var text = $(this).children("a").text();
		$(this).children("a").html("<div>" + text + "</div><span>&nbsp;</span>");
		});
	$(".button").hover(function() {
		$(this).children("a").children("div").css("background","url('/images/button.jpg') bottom left no-repeat");
		$(this).children("a").children("span").css("background","url('/images/button.jpg') bottom right no-repeat");
			}, function(){
				$(this).children("a").children("div").css("background","url('/images/button.jpg') top left no-repeat");
				$(this).children("a").children("span").css("background","url('/images/button.jpg') top right no-repeat");
				});
	//ORDER BUTTON
	$("#tFrame .menuTop .items .orderButton").hover(function(){
		$(this).css("background","url('/images/order_menu.png') bottom right no-repeat");
			}, function(){
				$(this).css("background","url('/images/order_menu.png') top right no-repeat");
		});
	//POSITION IMAGE BOX
	$("#mFrame #boxes .box .image").each(function() {
		width = 288 - Number($(this).children("img").attr("width")) - 5;
		if($.browser.msie && $.browser.version=="6.0")
			height = Number($(this).children("img").attr("height")) * Number(-1);
		else
			height = Number($(this).children("img").attr("height")) * Number(-1) + 5;
		$(this).css("top",height + "px");
		$(this).css("left",width + "px");
		});
	//HOVER BOX
	$("#mFrame #boxes .box").hover(function(){
		$(this).css("border","1px solid #228ADA");
		$(this).css("cursor","pointer");
			}, function(){
				$(this).css("border","1px solid #C9E2F6");
		});
	//FAQS
	$("#faqs .faq .answer").hide();
	$("#faqs .faq .question").click(function() {
		if ($(this).next(".answer").is(":visible"))
			{
			$(this).children("div").css("background","url('/images/arrow_faq.gif') top left no-repeat")
			$(this).next(".answer").hide();
			}
		else
			{
			$(this).children("div").css("background","url('/images/arrow_faq.gif') bottom left no-repeat")
			$(this).next(".answer").show();
			}
		});
});
