Cufon.replace('#menu ul li a, #submenu ul li a, .popup h3', { fontFamily: 'Doradani Lt', hover: true });

Cufon.replace('h2 span', { fontFamily: 'Doradani Rg', hover: true });







$(document).ready(function() {

						   

$(function() {

	var zIndexNumber = 1000;

	$('.list-pops li').each(function() {

		$(this).css('zIndex', zIndexNumber);

		zIndexNumber -= 10;

	});

});



$("#menu ul li").mouseenter(function(){

	$(this).find(".sub").slideDown("fast");

	$(this).addClass("current-dynamic");

	Cufon.refresh();

}).mouseleave(function(){

	$(this).parent().find(".sub").slideUp("fast");

	$(this).parent().find("li").removeClass("current-dynamic");

	Cufon.refresh();

});



$("#banner ul").cycle({

			fx:     'fade', 

			cleartype: true,

			cleartypeNoBg: true,

			speed:  300, 

			timeout: 6000,

			continuous: 0

});



$("#submenu > ul > li:last-child").addClass("last-child");

$(".list-items ul li:nth-child(4n)").addClass("remove");



$(".list-pops ul li .show-pop img").hover(function(){

	

	$(this).parent().parent().find(".popup").show();

	

});

$(".list-pops ul li").mouseleave(function(){
										  
	$(this).find(".popup").hide();

});


$(".list-pops ul li .popup .close").click(function(){

	

	$(this).parent().hide();

	return false;

	

});



/* autoclear function for inputs */

$('.autoclear').click(

function() {

if (this.value == this.defaultValue) {

this.value = '';

}

}

);

$('.autoclear').blur(

function() {

if (this.value == '') {

this.value = this.defaultValue;

}

}

);					   



});




