/*
 * common.js
 *
 */
 


// onload event set
//
window.onload = function () { 
	if(typeof fontSize == "object"){
		fontSize.init();
	}
	if(typeof swapImage == "object"){
		swapImage.init();
	}
}


// popup
//
function fWinClosed(winVar) {
var ua = navigator.userAgent
	if( !!winVar )
		if( ( ua.indexOf('Gecko')!=-1 || ua.indexOf('MSIE 4')!=-1 ) && ua.indexOf('Win')!=-1 ) 
				return winVar.closed
			else return typeof winVar.document  != 'object'
	else return true
}
function fOpenWin(theURL,targetName,theW,theH) {
	if(fWinClosed(tWin)){
		var tWin = window;
		tWin = open(theURL,targetName,'scrollbars=yes,resizable=yes,toolbar=no,location=yes,directories=no,status=yes,menubar=no,width='+theW+',height='+theH+'');
		tWin.focus();
	}
}


// accordion
//
$(function(){


$("#accordion ul.body:not(.active)").hide();

$("#accordion p.head").click(function(){
 $(this).toggleClass("selected");
$(this).next("ul.body").slideToggle("slow")
.siblings("ul.body:visible").slideUp("slow");
$(this).toggleClass("active");
});


$("p.head").hover(function(){
$(this).css("cursor","pointer");
},function(){
$(this).css("cursor","default");
 });

});