/**
 * 
 * @version 
 * @author 
 */


$(function(){
	
	$('#pagetop a').click(function(){
		pageTop();
		return false;
	});
	
	//$('.pngfix').pngfix();
	
});


function pageTop(){
	var x = document.documentElement.scrollLeft || document.body.scrollLeft || 0;
	var y = document.documentElement.scrollTop || document.body.scrollTop || 0;

	window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));

	if (x > 0 || y > 0) {
		window.setTimeout("pageTop()", 50);
	}
}

function clickList(target){
	var parentel = $(target).parent();
	
	parentel.mouseover(function(){
		$(this).addClass('clicklist');
	});
	parentel.mouseout(function(){
		$(this).removeClass('clicklist');
	});
	parentel.click(function(){
		var loc = $(this).find('a').attr('href');
		var target = $(this).find('a').attr('target');
		if(target == '_blank') window.open(loc);
		else window.location.href = loc;
		return false;
	});
}




