/**********************************************************************************************



***********************************************************************************************/

$(document).ready(function() {

	//
	$('a[rel=_blank]').click(function(){
		this.target = "_blank";
	});

	$('#header').remove().insertBefore('div.wrapper-content');

	//
	if (($.browser.msie)){

	}

	//
	if (($.browser.msie) && ($.browser.version == "8.0")){

		//
		$('html').addClass('ie8');

	}

	//
	if (($.browser.msie) && ($.browser.version == "7.0")){

		//
		$('html').addClass('ie7');

		//
		$('input[type="text"]').focus(function() {
			$(this).addClass('focus');
		});
		$('input[type="text"]').blur(function() {
			$(this).removeClass('focus');
		});

	}


	if (($.browser.msie) && ($.browser.version == "6.0")){

		//
		$('html').addClass('ie6');

		//
		$('input[type="text"]').focus(function() {
			$(this).addClass('focus');
		});
		$('input[type="text"]').blur(function() {
			$(this).removeClass('focus');
		});

		//
		$("#navigation li").hover(
			function () {
				$(this).addClass("hover");
			},
			function () {
				$(this).removeClass("hover");
			}
		);

		//
		$('input[type=text]').addClass("text");
		$('input[type=password]').addClass("text");
		$('input[type=button]').addClass("button");
		$('input[type=reset]').addClass("reset");
		$('input[type=submit]').addClass("submit");
		$('input[type=radio]').addClass("radio");
		$('input[type=checkbox]').addClass("checkbox");
		$('input[type=file]').addClass("file");
		$('input[type=image]').addClass("image");

		//
		//$('#navigation li ul').addClass("fixPNG");
		$('#footer .bottom .content .right form fieldset input[type="submit"]').addClass("fixPNG");
		$('#footer .top .content .logo').addClass("fixPNG");
		$('.home .image .mask').addClass("fixPNG");
		$('.icons li a').addClass("fixPNG");
		$('.button').addClass("fixPNG");
		$('#header a.terrafirma').addClass("fixPNG");
		DD_belatedPNG.fix('.fixPNG');

	}
	
	//ACCORDION BUTTON ACTION	
	$('h3.accordionButton').click(function() {
		$('div.accordionContent').slideUp('normal');	
		$(this).next().slideDown('normal');
	});
 
	//HIDE THE DIVS ON PAGE LOAD	
	$("div.accordionContent").hide();

});
