\n";*/
PrintPage.document.write("\n
\n\n\n\n\n\n\n"+CSS+"\n\n" + document.getElementById("title_header").innerHTML + "
" + Obj.innerHTML + "\n");
PrintPage.document.close();
PrintPage.document.title = document.domain;
PrintPage.print(PrintPage.location.reload());
});
$('#Top').mouseover(function() {
SubMenu_hide();
});
$('#Contents, #LeftMenu').mouseover(function() {
if(jQuery.browser.version != '7.0' && jQuery.browser.version != '6.0'){
SubMenu_hide();
}
});
$('#Main08').click(function() {
SubMenu_hide();
$("#SubMenu08").show();
$("#SubMenu09").show();
});
$('#SubMenu09').click(function() {
SubMenu_hide();
$("#SubMenu08").hide();
$("#SubMenu09").hide();
});
});
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
}
if(pos=="imsi") {
LeftPosition=10;TopPosition=10;
} else if(pos=="imsib"){
LeftPosition=300;TopPosition=10;
} else if(pos=="imsia"){
LeftPosition=50;TopPosition=10;
} else if(pos=="imsic"){
LeftPosition=800;TopPosition=10;
} else if(pos=="imsid"){
LeftPosition=50;TopPosition=200;
} else if(pos=="imsie"){
LeftPosition=400;TopPosition=10;
} else if((pos!="center" && pos!="random") || pos==null){
LeftPosition=0;TopPosition=0;
}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
if(win.focus){win.focus();}
}
function SubMenu_hide(){
for(i=1;i<=7;i++){
$("#SubMenu0" + i).hide();
}
$("#SubMenu10").hide();
}
function SubMenu_show(sel){
SubMenu_hide();
if(sel == '10'){
$("#SubMenu10").show();
}else{
$("#SubMenu0" + sel).show();
}
}
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32312462-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
var currentFontSize ;
$(document).ready(init);
function init(){
$("#C_Txt span a").css('cursor','pointer').click(clickHandler);
var init_font=(font_getCookie("cookie_font")) ? font_getCookie("cookie_font"):'12';
// var init_font=($.cookie("cookie_font"))?$.cookie("cookie_font"):'12';
$("#ct").css("font-size", init_font+"px");
}
function clickHandler(e) {
e.preventDefault();
var whichClicked = $(this).attr("id");
currentFontSize = parseInt($("#ct div, #ct td, #ct th, #ct span, #ct p").css("font-size"));
switch(whichClicked){
case "larger" :
if(currentFontSize<36) setFontSize(4) ;
else alert('가장 큰 글자 크기입니다. ');
break ;
case "smaller" :
if(currentFontSize>12) setFontSize(-4) ;
else alert('가장 작은 글자 크기입니다. ');
break ;
}
}
function setFontSize($size) {
var totalFontSize = currentFontSize + $size ;
//폰트 사이즈 예외 처리할 id 나 class 구분값 정의
var pageOut="";
pageOut+=".category div, .history_y div, .title_bg div";
$("#ct div, #ct td, #ct th, #ct span, #ct p").not(pageOut).css("font-size", totalFontSize+"px");
font_setCookie("cookie_font",totalFontSize);
}
function font_setCookie(name, value){
var todayDate = new Date();
var expiredays = 365;
document.domain = "endocrinology.or.kr"
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; domain=endocrinology.or.kr; expires=" + todayDate.toGMTString() + ";"
}
function font_getCookie(name){
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length ){
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}
function detail(url){
window.open(url, 'detail','width=765,height=750,marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=30,left=30');
}
function openLayer(idName,tpos,rpos){
var pop = document.getElementById(idName);
pop.style.display = "block";
pop.style.top = tpos + "px";
pop.style.right = rpos + "px";
}
function closeLayer(idName){
var pop = document.getElementById(idName);
pop.style.display = "none";
}
function popup_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
//-->
> 학술행사 > 국내외 행사일정