function UrCosmeOneClickVoting(url, result, increase_id) {
		jQuery.get(url, null, function(data) {
			jQuery(result).html(data);
			if(document.getElementById(increase_id)) {
				var num = parseInt(document.getElementById(increase_id).innerHTML);
				document.getElementById(increase_id).innerHTML = num+1;
			}
		});
}

function itemStart(el) {
			el.style.visibility = 'visible';
			jQuery(el).show("bounce", {'times':100}, 200
			);
}

function itemOnLoad(father) {
	var time = 100;
	for(var i=0; i<10; i++) {
		if(!document.getElementById('TopicOption'+i)) {
			continue;
		}
		jQuery(father).find('#TopicOption'+i).each(function() {
			var el = this;
			var run = function(){itemStart(el);};
			setTimeout(run, time);
			jQuery(el).click(function(){
				itemOnClick(father);
			});
			//time += 500;
		});
	}
}

function itemOnMouseOver(el) {
	jQuery(el).find(".item_left").attr('src', 'http://oneclick.urcosme.com/theme/style/portal/images/tag_left_mouseon.gif');
	jQuery(el).find(".item_bg").attr('background', 'http://oneclick.urcosme.com/theme/style/portal/images/tag_bg_mouseon.gif');
	jQuery(el).find(".item_right").attr('src', 'http://oneclick.urcosme.com/theme/style/portal/images/tag_right_mouseon.gif');
}
function itemOnMouseOut(el) {
	jQuery(el).find(".item_left").attr('src', 'http://oneclick.urcosme.com/theme/style/portal/images/item_left.gif');
	jQuery(el).find(".item_bg").attr('background', 'http://oneclick.urcosme.com/theme/style/portal/images/item_bg.gif');
	jQuery(el).find(".item_right").attr('src', 'http://oneclick.urcosme.com/theme/style/portal/images/item_right.gif');
}

function itemEnd(el) {
			jQuery(el).hide("explode", {}, 500
			);
}

function itemOnClick(parentNode) {
	jQuery(parentNode).find('.item').each(function() {
		this.style.visibility = 'hidden';
	});
}


function swapVote(mainUrl, noteUrl, mainID, noteID) {
	//alert(mainUrl);
	jQuery.get(mainUrl, null, function(data) {
		//alert(data);
		jQuery('#'+mainID).html(data);
		//alert(jQuery('#UrCosmeOneCkickTopic').html());
		/*
		jQuery('#'+pathID).html(jQuery('#UrCosmeOneCkickTopic').html());
		jQuery('#'+nameID).html(jQuery('#UrCosmeOneCkickTopicMemberNickname').html());
		var member_id = jQuery('#UrCosmeOneCkickTopicMemberID').attr('value');
		if(document.getElementById(nameID)) {
			var href = document.getElementById(nameID).parentNode;
			jQuery(href).attr('href', '/mypage/index.php?member_id='+member_id);
		}*/
		jQuery('#UrCosmeOneClickHeaderTabPath').html(jQuery('#UrCosmeOneClickHtmlHeaderPath').html());
		var topic_id = document.getElementById('UrCosmeOneClickTopicID').value;
		noteUrl = noteUrl + topic_id;
		jQuery.get(noteUrl, null, function(data) {
			//alert(noteUrl);
			jQuery('#'+noteID).html(data);
		});
	});
	//alert(noteUrl);
}
