// JavaScript Document
var $pre_short,$pre_full;
var $org_ul_height ;
$(function(){
	$('div.ver_acc_panel ul li div.full_content').hide();
	$('div.ver_acc_panel ul li div.short_content').bind('mouseover',short_contentOnmouseOverCallback);
	$('div.ver_acc_panel ul li div.short_content').bind('click',short_contentOnClickCallback);
	$('div.ver_acc_panel ul li div.full_content img').bind('mouseover',imgOnmouseOverCallback);
	//$('#front_page_widget').bind('mouseleave',front_page_widgetOnmouseLeaveCallback);
	
	});

function short_contentOnmouseOverCallback(result)
{
	
	var $_parent_li = this.parentNode.parentNode;
	var $_parent = this.parentNode;
	
	if($org_ul_height == null) $org_ul_height = $($_parent_li).height();
	
	var $ul_height = $($_parent_li).height() ;
	var $_full_div_height = $($_parent).find('.full_content').height();
	var $_this_height = $(this).height();
	
	$($_parent_li).height($org_ul_height + ($_full_div_height - $_this_height ))
	
	$($_parent).find('.full_content').show();
	$($_parent).find('.full_content').bind('mouseleave',parent_contentOnmouseLeaveCallback);
	$(this).hide();
	//if($pre_full != null)
	//	$($pre_full).hide();
	//	else
		//$pre_full = $($_parent).find('.full_content');
	/*if($pre_short != null )
		$($pre_short).show();
		
		$pre_short = this; */
	}
function short_contentOnClickCallback(result)
{
	//alert('test abc ');
	}			
function short_contentOnmouseLeaveCallback()
{
//$(this).css('display','');

	
	}	
function parent_contentOnmouseLeaveCallback()
{
	var $_parent_li = this.parentNode.parentNode;
	var $ul_height = $($_parent_li).height() ;
	var $_full_div_height = $($_parent).find('.full_content').height();
	var $_this_height = $(this).height()
	
	var $_parent = this.parentNode;
	
	$($_parent_li).height($org_ul_height - ($_full_div_height - $_this_height ))
		
	$($_parent).find('.short_content').show();	
	
	$(this).hide();
	
	}	
function imgOnmouseOverCallback()
{
	$(this).css('padding','4px 9px');$(this).css('margin','0px 10px');
	$(this).bind('mouseleave',imgOnmouseLeaveCallback);
	}	
	
function imgOnmouseLeaveCallback()
{
	$(this).css('padding','4px');$(this).css('margin','0px 15px');
	}	
	
function front_page_widgetOnmouseLeaveCallback()
{
		//if($pre_full != null)
		//$($pre_full).hide();
	}	
