$(function(){

$('.blank').click(function(){
	var ua = $.browser;

	if(ua.msie){
		window.open($(this).attr('href') , '' , 'width=579 , height=720 , resizable=no , scrollbars=yes');
	}
	else {
		window.open($(this).attr('href') , '' , 'width=577 , height=707 , resizable=no , scrollbars=yes');
	}
	return false;
});

$id = $("body").attr("id");

if($id == "index"){

i = 0;
$height = new Array();

$(window).load(function(){
$('#gnavi > li dl').each(function(){
	$height[i] = $(this).height();
i++;
});

j = 0 ;
$heighest = 0;

while(j <= $height.length - 1){

var $val = $height[j];

if($heighest <= $val){
	$heighest = $val;
} else {
	$heighest = $heighest;
}

j++;
}

$('#gnavi > li dl').each(function(){
	$height[i] = $(this).height($heighest);
});
});

}

if($id == "academic_information"){
$("#jsas .first .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
});

$("#jsas .last .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
});

$("#ifats .lecture .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
});

$("#literature .no1 .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
}); 

$("#literature .no2 .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
}); 

$("#literature .no3 .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
});
}

if($id == "academic_information"){
$("#no1 .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
}); 

$("#no2 .first .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
});

$("#no2 .last .popup").lightBox({
overlayBgColor: "#fff",
overlayOpacity: 0.5,
containerBorderSize: 10,
imageLoading: "../img/lightbox-ico-loading.gif",
imageBtnPrev: "../img/patient_conference_presentation_popup_prev.gif",
imageBtnNext: "../img/patient_conference_presentation_popup_next.gif",
imageBtnClose: "../img/patient_conference_presentation_popup_close.gif",
fixedNavigation: true
}); 
}

});

