// ¾ÆÄÚµð¾ð °ü·Ã -  ¹æºñ¼¾ÅÍ faq 
$(document).ready(function() {
	if($("#faqViewList").size() > 0) {
	$( "#faqViewList" ).accordion({
		active: false,
		header: 'h3',
		collapsible: true,
		autoHeight: false,
		navigation: true
	});
	}
});


/* ÆË¾÷ ÇÔ¼ö °øÅë */

function commonPopup(url, target , option , e){
	var ex = null;
	try {
		ex = e || window.event;
		ex.returnValue = false;
	}catch(excp){
	}

	window.open(url,target,option);
}


/* ÅÇ : È¸¿ø°¡ÀÔ - ½Ç¸íÀÎÁõ ¹× ¾ÆÀÌÇÉ ÀÎÁõ ¼±ÅÃ */
var radioTabSelect ="1";    //È°¼ºÈ­ µÇ¾î ÀÖÀ» ÅÇ¹øÈ£
function realNameRadio(radioTab){
	if(radioTabSelect != radioTab){
		document.getElementById('radioView'+radioTabSelect).style.display = 'none';
		document.getElementById('radioView'+radioTab).style.display = '';
	    radioTabSelect = radioTab;
	}
		//alert(radioTabSelect);
}

$(function() {

/*
	$('input[type=text]').each(function(){
		var oInput = $(this);
		var oText = oInput.attr('value');
		oInput.focus(function(){
			if(oInput.attr('value') == oText){
				oInput.attr('value', '');
			}
		});
		oInput.blur(function(){
			if(oInput.attr('value') == ''){
				oInput.attr('value', oText);
			}
		});
	});
*/
	//
	$('a', '.cancer').bind('focus mouseover', function(event){
		var oImg = $(this).find('img:first');
		var oSrc = oImg.attr('src');
		oImg.attr('src', oSrc.replace('Off.gif', 'On.gif'));
	});
	$('a', '.cancer').bind('blur mouseout', function(event){
		var oImg = $(this).find('img:first');
		var oSrc = oImg.attr('src');
		oImg.attr('src', oSrc.replace('On.gif', 'Off.gif'));
	});

	$('a', '.cancerMainList').bind('focus mouseover', function(event){
		var oImg = $(this).find('img:first');
		var oSrc = oImg.attr('src');
		oImg.attr('src', oSrc.replace('Off.gif', 'On.gif'));
	});
	$('a', '.cancerMainList').bind('blur mouseout', function(event){
		var oImg = $(this).find('img:first');
		var oSrc = oImg.attr('src');
		oImg.attr('src', oSrc.replace('On.gif', 'Off.gif'));
	});
});
