/*pull down script*/
$(document).ready(function() {
		$("#gNav ul li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
	if (document.all) {
		$("#gNav ul li").hoverClass ("sfHover");
	}

});
  
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};


/*pluginSet script*/
function pluginSet() {
	/*scrollTo settings*/
	$('.pageTop').localScroll({speed:500});
	
	/*qTip settings*/
	//top pagge
	$('#newsBt').qtip({
		position: {
			adjust: { x: -30, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#c1e5f9',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#0076c0'
			  }
		}
	  });
	$('#bazarBt').qtip({
		position: {
			adjust: { x: -30, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#fdf3e3',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#e99910'
			  }
		}
	  });
	$('#kanacocoBt').qtip({
		position: {
			adjust: { x: -30, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#eef4cc',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#94c239'
			  }
		}
	  });
	$('#iconNews').qtip({
		position: {
			adjust: { x: -40, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#c1e5f9',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#0076c0'
			  }
		}
	  });
	$('#iconBazar').qtip({
		position: {
			adjust: { x: -45, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#fdf3e3',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#e99910'
			  }
		}
	  });
	$('#iconKanacoco').qtip({
		position: {
			adjust: { x: -20, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#eef4cc',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#94c239'
			  }
		}
	  });
	//second page
	$('#headNews').qtip({
		position: {
			adjust: { x: -30, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#c1e5f9',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#0076c0'
			  }
		}
	  });
	$('#headBazar').qtip({
		position: {
			adjust: { x: -30, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#fdf3e3',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#e99910'
			  }
		}
	  });
	$('#headKanakoko').qtip({
		position: {
			adjust: { x: -17, y: -20 } 
		},
		style: { 
			  width: 130,
			  padding: 5,
			  background: '#eef4cc',
			  color: 'black',
			  textAlign: 'left',
			  border: {
				 width: 1,
				 color: '#94c239'
			  }
		}
	  });
}