//---------------------------------+
//  Developed by Roshan Bhattarai 
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use mouseover / click
// --------------------------------->
$(document).ready(function()
{
	$("#secondpane p.menu_head").click(function()
    {
	     $(this).css({backgroundImage:"url(menu.png)"}).next("div.menu_body").slideDown(700).siblings("div.menu_body").slideUp("slow");
         $(this).siblings().css({backgroundImage:"url(menu.png)"});
	});
});

$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('#container .p_txt').css('font-size');
  $(".resetFont").click(function(){
  $('#container .p_txt').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
  	var currentFontSize = $('#container .p_txt').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
	$('#container .p_txt').css('font-size', newFontSize);
	return false;
  });
});

$(function() {
  $('a.lightbox').lightBox();
});


var alreadyCleaned = false;
function clearDefaultString(object)
            {
                if (!alreadyCleaned)
                {
                    object.value = '';
                    alreadyCleaned = true;
                }

                return false;
            }

function kontakt(frm) {

					if (frm.email.value=="" ||  frm.email.value.indexOf('@', 0) == -1) {
					document.getElementById('mailere').innerHTML="nie poprawny e-mail<br />";
					return false;
					}
					else { document.getElementById('mailere').innerHTML=""; }
}
