
/* /_vendors/js/jquery/plugin/jquery.showbox.js */
var SLB_cnt=0;function showBox(url,type)
{if(url)
{if(typeof(is_mobile)!='undefined'&&is_mobile==true)
{$(document).ready(function(){$.mobile.ajaxEnabled=true;$('<a />').attr('href',url).attr({'data-rel':'dialog'}).click();$.mobile.ajaxEnabled=false;});return false;}
$('html').css({'height':'100%'});$('#SLB_film').css({'top':0,'left':0});if(document.documentElement.scrollHeight>document.body.scrollHeight)
{$('#SLB_film').css('height',document.documentElement.scrollHeight);}
else
{$('#SLB_film').css('height',document.body.scrollHeight);}
$('#SLB_content').show();$('#SLB_film').fadeTo('slow',0.4);loading.css({top:$('html').scrollTop()+10+'px'}).show();var resize=(arguments[5])?arguments[5]:true;$('#slb_main').html("<iframe id='SLB_iframe' src='"+url+"' width='"+arguments[2]+"' height='"+arguments[3]+"' class='SLB_center' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' onload='tryReHeight("+resize+");'></iframe>");hideSelect();tryReHeight();}
else
{if(typeof(is_mobile)!='undefined'&&is_mobile==true)
{$('.ui-dialog').dialog('close');return false;}
$('#SLB_content').hide();$('#SLB_film').hide();$('#SLB_film').css({'width':'100%','height':'100%'});$('#slb_main').html("");loading.hide();showSelect();SLB_cnt=0;}}
function SLB_setCenter(obj)
{if(obj)
{var h=(window.innerHeight||self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight);var w=(window.innerWidth||self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);var l=((window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft)+((w-(obj.width||parseInt(obj.style.width)||obj.offsetWidth))/2));var t=((window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)+((h-(obj.height||parseInt(obj.style.height)||obj.offsetHeight))/2));if((obj.width||parseInt(obj.style.width)||obj.offsetWidth)>=w)l=0;if((obj.height||parseInt(obj.style.height)||obj.offsetHeight)>=h)t=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop);$('#SLB_content').css('left',l-32);if(SLB_cnt==0)
{$('#SLB_content').css('top',t);if($('#SLB_content').get(0).offsetHeight>=h-20)
{SLB_cnt++;}}
if(!arguments[1])
{loading.hide();}
else
{$(obj).css({'left':l,'top':t});}}}
function hideSelect()
{$('select').each(function(){$(this).css('visibility','hidden');});}
function showSelect()
{$('select').each(function(){$(this).css('visibility','visible');});}
function tryReHeight(sign)
{var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];var FFextraHeight=parseFloat(getFFVersion)>=0.1?16:0;var currentfr=$('#SLB_iframe').get(0);if(sign==true)
{try{if(currentfr.Document&&currentfr.Document.body.scrollHeight)
{setIframeSize(currentfr.Document.body.scrollHeight);}
else if(currentfr.contentDocument&&currentfr.contentDocument.body.offsetHeight)
{setIframeSize(currentfr.contentDocument.body.offsetHeight+FFextraHeight);}}catch(e){}}
else
{SLB_setCenter($('#slb_main').get(0));}
try{currentfr.contentWindow.focus();}catch(e){}}
function setIframeSize(h,w)
{SLB_cnt=0;if(w)
{$('#SLB_iframe').attr('width',w);}
if(h)
{$('.slb_left').css('height',h);$('.slb_right').css('height',h);$('#SLB_iframe').attr('height',h);}
SLB_setCenter($('#slb_main').get(0));}
$(document).ready(function()
{var prevOnScroll=window.onscroll;window.onscroll=function()
{if(prevOnScroll!=undefined)prevOnScroll();if(document.documentElement.scrollHeight>document.body.scrollHeight)
{$('#SLB_film').css('height',document.documentElement.scrollHeight);}
else
{$('#SLB_film').css('height',document.body.scrollHeight);}
$('#SLB_film').css('width',document.body.scrollWidth);SLB_setCenter($('#slb_main').get(0));}
var prevOnResize=window.onresize;window.onresize=function()
{if(prevOnResize!=undefined)prevOnResize();if(document.documentElement.scrollHeight>document.body.scrollHeight)
{$('#SLB_film').css('height',document.documentElement.scrollHeight);}
else
{$('#SLB_film').css('height',document.body.scrollHeight);}
$('#SLB_film').css('width',document.body.offsetWidth);SLB_setCenter($('#slb_main').get(0));}});
/* /_vendors/js/jquery/plugin/jquery.textshadow.js */
(function($){$.fn.textShadow=function(option){if(!$.browser.msie)return;var IE6=$.browser.version<7;return this.each(function(){var el=$(this);var shadow=el.textShadowParse(this.currentStyle["text-shadow"]);shadow=$.extend(shadow,option);el.textShadowRemove();if(shadow.x==0&&shadow.y==0&&shadow.radius==0)return;if(el.css("position")=="static"){el.css({position:"relative"});}
el.css({zIndex:"0"});if(IE6){el.css({zoom:"1"});}
var span=document.createElement("span");$(span).addClass("jQueryTextShadow");$(span).html(el.html());$(span).css({padding:this.currentStyle["padding"],width:el.width()+1,position:"absolute",zIndex:"-1",color:shadow.color!=null?shadow.color:el.css("color"),left:(-parseInt(shadow.radius)+parseInt(shadow.x))+"px",top:(-parseInt(shadow.radius)+parseInt(shadow.y))+"px"});if(shadow.radius!=0){if(shadow.opacity!=null){$(span).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(shadow.radius)+", enabled='true', makeShadow='true', ShadowOpacity="+shadow.opacity+")");}else{$(span).css("filter","progid:DXImageTransform.Microsoft.Blur(pixelradius="+parseInt(shadow.radius)+", enabled='true')");}}
el.append(span);});};$.fn.textShadowParse=function(value)
{value=String(value).replace(/^\s+|\s+$/gi,'').replace(/\s*!\s*important/i,'').replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,'($1/$2/$3/$4)').replace(/\(\s*([^,\)]+)\s*,\s*([^,\)]+)\s*,\s*([^\)]+)\s*\)/g,'($1/$2/$3)')
var shadow={x:0,y:0,radius:0,color:null};if(value.length>1||value[0].toLowerCase()!='none'){value=value.replace(/\//g,',');var color;if(value.match(/(\#[0-9a-f]{6}|\#[0-9a-f]{3}|(rgb|hsb)a?\([^\)]*\)|\b[a-z]+\b)/i)&&(color=RegExp.$1)){shadow.color=color.replace(/^\s+/,'');value=value.replace(shadow.color,'');}
value=value.replace(/^\s+|\s+$/g,'').split(/\s+/).map(function(item){return(item||'').replace(/^0[a-z]*$/,'')?item:0;});switch(value.length)
{case 1:shadow.x=shadow.y=value[0];break;case 2:shadow.x=value[0];shadow.y=value[1];break;case 3:shadow.x=value[0];shadow.y=value[1];shadow.radius=value[2];break;}
if((!shadow.x&&!shadow.y&&!shadow.radius)||shadow.color=='transparent'){shadow.x=shadow.y=shadow.radius=0;shadow.color=null;}}
return shadow;};$.fn.textShadowRemove=function(){if(!$.browser.msie)return;return this.each(function(){$(this).children("span.jQueryTextShadow").remove();});};})(jQuery);if(typeof Array.prototype.map=='undefined'){Array.prototype.map=function(fnc){var a=new Array(this.length);for(var i=0;i<this.length;i++){a[i]=fnc(this[i]);}
return a;}}
/* /_vendors/js/jquery/plugin/jqPngFix.js */
function jqPngFix(){try{$.each($("img[src$=.png],img[src$=.PNG]"),function(){var img=$(this);img.css({"width":img.width(),"height":img.height(),"filter":"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+img.attr("src")+"', sizingMethod='scale')"});img.attr({"width":img.width(),"height":img.height(),"src":"/_vendors/images/blank.gif"});});}catch(e){}}
/* /_vendors/js/uks/common.js */
function setCookie(name,value,expires)
{var today=new Date();today.setDate(today.getDate()+expires);document.cookie=name+'='+escape(value)+'; path=/; expires='+today.toGMTString()+';';}
function setListCount(key,value)
{setCookie(key,value,365);location.reload();}
function close_layer_popup(obj)
{$('.layer_popup_style').has(obj).remove();}
function strip_tags(input,allowed){allowed=(((allowed||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join('');var tags=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,commentsAndPhpTags=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;return input.replace(commentsAndPhpTags,'').replace(tags,function($0,$1){return allowed.indexOf('<'+$1.toLowerCase()+'>')>-1?$0:'';});}
function sendMessage(id)
{showBox('/message/manager/write/send/'+id,'iframe',650);}
(function($){$.fn.snspost=function(opts){var loc='';opts=$.extend({},{type:'twitter',event:'click',content:'',url:'',summary:'',writer:''},opts);opts.content=encodeURIComponent(opts.content);opts.url=encodeURIComponent(opts.url);switch(opts.type){case'me2day':loc='http://me2day.net/posts/new?new_post[body]='+opts.content+' '+opts.url;if(opts.tag)loc+='&new_post[tags]='+encodeURIComponent(opts.tag);break;case'facebook':loc='http://www.facebook.com/share.php?t='+opts.content+'&u='+opts.url;break;case'yozm':loc='http://yozm.daum.net/api/popup/prePost?sourceid=54&link='+opts.url+'&prefix='+opts.content+'&parameter='+opts.content;break;case'clog':loc='http://csp.cyworld.com/bi/bi_recommend_pop.php?url='+opts.url+'&title_nobase64='+opts.content+'&summary_nobase64='+encodeURIComponent(opts.summary)+'&writer='+encodeURIComponent(opts.writer);break;case'delicious':loc='http://www.delicious.com/save?v=5&noui&jump=close&url='+opts.url+'&title='+opts.content;break;case'twitter':default:loc='http://twitter.com/home?status='+opts.content+' '+opts.url;break;}
this.bind(opts.event,function(){window.open(loc);return false;});};$.snspost=function(selectors,action){$.each(selectors,function(key,val){$(val).snspost($.extend({},action,{type:key}));});};})(jQuery);
