/*
MihaiMaga.ro Website framework
(c) Mihai Maga 2008
www.mihaimaga.ro

  Main site JavaScript

*/

$(function(){
	$('ul.jd_menu').jdMenu();
	$('.lightbox').lightBox();
});

function putPageHeader() {
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
		'width', '840',
		'height', '224',
		'src', '../flash/header',
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'transparent',
		'devicefont', 'false',
		'id', 'header',
		'bgcolor', '#ffffff',
		'name', 'header',
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', '../flash/header',
		'salign', ''
	);
}

function XputPageHeader() {
}

$(document).ready(function(){
	$("#accordion").accordion({
		header: 'a.achead',
		alwaysOpen: false,
		autoheight: false
	});
});

$("#accordion").accordion("activate", -1);



$(document).ready(function(){
	var originalFontSize = $('#content').css('font-size');
	$(".resetFont").click(function(){
		$('#content').css('font-size', originalFontSize);
	});

	$(".increaseFont").click(function(){
		var currentFontSize = $('#content').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*1.2;
		$('#content').css('font-size', newFontSize);
		return false;
	});

	$(".decreaseFont").click(function(){
		var currentFontSize = $('#content').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*(1/1.2);
		$('#content').css('font-size', newFontSize);
		return false;
	});
});



