// linker init
ad = $.extend({
notOpenURL:'a[href^="http://www.sakai-ipc.jp/"],a[href^="https://sakai-ipc.jp/"],a[href^="http://www.sakai-ipc.jp/en/"],a[href^="https://www.sakai-ipc.jp/en/"]',
openURL:'a.blank',
extendLink:'',
blankIcon:'<img src="/img/common/icon_blank.gif" alt="別ウィンドウで開きます" class="blank" />',
PDFIcon:'<img src="/img/common/icon_pdf.gif" alt="PDFファイルを開きます" class="pdf" />',
WordIcon:'<img src="/img/common/icon_word.gif" alt="Wordファイルを開きます" class="word" />',
ExcelIcon:'<img src="/img/common/icon_excel.gif" alt="Excelファイルを開きます" class="excel" />',
IconSideSpace:'3px',
ieVerticalSpace:'0.3em',//for ie6
IconHidden:'.button a,#globalNav ul li a,#mainImage a,p#noMark a,#sub_r a',
domain:'http://www.sakai-ipc.jp/'
});

// document ready
$(function(){
initRollOverImages();
contentSwitchFontSize.main();
$('a[href^="#"]').slideScroll();
$('#calendar table td a').tooltip();

$('a[href^="http://"],a[href^="https://"],'+ad.extendLink).linker();
$('a[href^="http://"],a[href^="https://"]').not('a[href$=".pdf"],a[href$=".doc"],a[href$=".docx"],a[href$=".xls"],a[href$=".xlsx"],'+ad.IconHidden+','+ad.notOpenURL).add(ad.openURL).css('text-decoration','none').wrapInner('<span class="anchorIn"></span>').children('span').after(ad.blankIcon);
$('a[href$=".pdf"]').not(ad.IconHidden).wrapInner('<span class="anchorIn"></span>').children('span').after(ad.PDFIcon);
$('a[href$=".doc"],a[href$=".docx"]').not(ad.IconHidden).wrapInner('<span class="anchorIn"></span>').children('span').after(ad.WordIcon);
$('a[href$=".xls"],a[href$=".xlsx"]').not(ad.IconHidden).wrapInner('<span class="anchorIn"></span>').children('span').after(ad.ExcelIcon);
$('img.blank,img.pdf,img.word,img.excel').css({'border':'0','padding-right':ad.IconSideSpace,'padding-left':ad.IconSideSpace});
if($.browser.msie && parseInt($.browser.version, 10) < 7 ){
$('img.blank,img.pdf,img.word,img.excel').css({'padding-top':ad.ieVerticalSpace,'padding-bottom':ad.ieVerticalSpace});
}
$('a[href$=".pdf"],a[href$=".mpg"],a[href$=".doc"],a[href$=".docx"],a[href$=".xls"],a[href$=".xlsx"],a[href$=".wmv"]').css('text-decoration','none').not('a[href^="http://"],a[href^="https://"]').click(function(){
window.open(this.href, '_blank');
return false;
});

$('#assistNav li a,#header p#link_ja,#header p#link_en,#sub_l ul li a img,#sub_l p a img,#sub_r ul li a img,#contents #sidemenu ul#snav li a img,#pNavi p a img,ul#b_Area li a img,p#bnr_search a img,#news_head a img,#contents #sidemenu ul#bnrs li a img,ul#news li a img,#footNav li a,#footer_cnt ul li a').opacityOver();

flatColumns('#main ul.index','li','2','null');
flatColumns('#article div.box ul.inner_box','dl','2','null');

flatColumns('#article ul.indexStyle','li','4','null');

$('#main h3,#main h4,#main .box h3').not('#topicsArea h3,#main .voice h3').wrapInner('<span class="inner" />');
$('#main .box').wrapInner('<div class="inner" />');

$('#topics dt').hover(function(){
$(this).add($(this).next('dd')).addClass('hover');
},function(){
$(this).add($(this).next('dd')).removeClass('hover');
});

$('#topics dd').hover(function(){
$(this).add($(this).prev('dt')).addClass('hover');
},function(){
$(this).add($(this).prev('dt')).removeClass('hover');
});

$('#sub ul').snavActive();

$('#fontSize li').bugFix({act:'hover'});
$('#localNav ul li ul li').bugFix({act:'last'});
$('#main > *,#main .imgBox > *').bugFix({act:'first'});
$('#main ul.index li').bugFix({num:'2'});
$('#main ul.index li').bugFix({act:'hover'});
$('#main .box > div.inner > *').bugFix({act:'first'});
$('#main ul.links > li').bugFix({act:'stripe'});
 
// pngfix function
if(jQuery.browser.msie && parseInt(jQuery.browser.version) == 6){
$(document).pngFix();
$('#main .imgBox .partsL,#main .imgBox .partsR').next('*').addClass('next');
}

// capContain 
$("img.capContain").each(function(){
var icT = $(this).attr("title").split("｜").join("<br />").split('“').join('<em>').split('”').join('</em>'),
icW = $(this).width();
if($(this).parent('a').length){
$(this).parent('a').removeAttr("title").after('<span class="imgCap">'+ icT +'</span>');
$(this).parent('a').next("span.imgCap").width(icW).css("display","block");
}else{
$(this).removeAttr("title").after('<span class="imgCap">'+ icT +'</span>');
$(this).next("span.imgCap").width(icW).css("display","block");
}
});
flatColumns('#article ul.photo3','li','3','null');
 flatColumns('#article ul.photo_jiba','li','6','null');

var notNum = '#topicPath,#pagenation ol';
$("#main #cnt_main #article ol").not(notNum).addClass("numList").each(function(){
$(this).children("li").each(function(i){
i = i+1;
if(i > 9){
$(this).prepend('<span class="num">'+ i +'.' +'</span>');
}else{
$(this).prepend('<span class="num">'+'&nbsp;' + i +'.' +'</span>');
}
});
});

});


// SwitchFontsize
var contentSwitchFontSize = {
conf : {
fontSize     : ["130%","117%","100%"],
switchId     : ["switchFontSizeBig", "switchFontSizeMedium", "switchFontSizeSmall"],
defoSizeId   : "switchFontSizeSmall",
targetAreaId : "main",
cookieName   : "fontSize",
cookieLimit  : 30,
switchWriteArea : "fontSize",
switchHTML      : '<ul><li id="switchFontSizeSmall" style="text-indent:-9999px;">標準</li><li id="switchFontSizeMedium" style="text-indent:-9999px;">大</li><li id="switchFontSizeBig" style="text-indent:-9999px;">特大</li></ul>'
},
main : function(){
contentSwitchFontSize.setHTML();
contentSwitchFontSize.defo();
var i, j, switchItem = contentSwitchFontSize.conf.switchId;
for(i=0;i<switchItem.length;i++){
document.getElementById(switchItem[i]).onclick = contentSwitchFontSize.action;
}
},
setHTML : function(){
var fontsizeSwitch = document.createElement('div');
fontsizeSwitch.id  = "fontsizeControl";
fontsizeSwitch.innerHTML = contentSwitchFontSize.conf.switchHTML;
document.getElementById(contentSwitchFontSize.conf.switchWriteArea).appendChild(fontsizeSwitch);
},
defo : function(){
var i;
var switchId = contentSwitchFontSize.conf.switchId;
var targetAreaId = contentSwitchFontSize.conf.targetAreaId;
var fontSize = contentSwitchFontSize.conf.fontSize;
cookieValue = this.getCookie() || contentSwitchFontSize.conf.defoSizeId;
for(i = 0; i < switchId.length; i++){
if(cookieValue == switchId[i]){
document.getElementById(targetAreaId).style.fontSize = fontSize[i];
}
}
document.getElementById(cookieValue).className ="active";
},
action : function(){
var i;
var switchId = contentSwitchFontSize.conf.switchId;
var targetAreaId = contentSwitchFontSize.conf.targetAreaId
var fontSize = contentSwitchFontSize.conf.fontSize
for(i=0;i<switchId.length;i++){
var switchItem = document.getElementById(switchId[i]);
switchItem.className="";
if(this.id == switchId[i]){
document.getElementById(targetAreaId).style.fontSize = fontSize[i];
}
}
this.className ="active";
contentSwitchFontSize.setCookie(this.id);
},
setCookie: function(data) {
var today = new Date();
today.setTime(today.getTime() + (1000 * 60 * 60 * 24 * Number(this.conf.cookieLimit)));
document.cookie = this.conf.cookieName + '=' + encodeURIComponent(data) + '; path=/; expires=' + today.toGMTString();
},
getCookie: function(m) {
return (m = ('; ' + document.cookie + ';').match('; ' + this.conf.cookieName + '=(.*?);')) ? decodeURIComponent(m[1]) : null;
}
}


/*
flatheights.js---------------------------------------------------------------------------
Version: 2007-08-01
Copyright (c) 2007, KITAMURA Akatsuki
$.changeLetterSize.addHandler(func)
*/
$.changeLetterSize={handlers:[],interval:1000,currentSize:0};(function($){var self=$.changeLetterSize;var ins=$('<ins>M</ins>').css({display:'block',visibility:'hidden',position:'absolute',padding:'0',top:'0'});var isChanged=function(){ins.appendTo('#main');var size=ins[0].offsetHeight;ins.remove();if(self.currentSize==size)return false;self.currentSize=size;return true;};$(isChanged);var observer=function(){if(!isChanged())return;$.each(self.handlers,function(i,handler){handler();});};self.addHandler=function(func){self.handlers.push(func);if(self.handlers.length==1){setInterval(observer,self.interval);}};})(jQuery);(function($){var sets=[];var flatHeights=function(set){var maxHeight=0;set.each(function(){var height=this.offsetHeight;if(height>maxHeight)maxHeight=height;});set.css('height',maxHeight+'px');};$.fn.flatHeights=function(){if(this.length>1){flatHeights(this);sets.push(this);}
return this;};$.changeLetterSize.addHandler(function(){$.each(sets,function(){this.height('auto');flatHeights(this);});});})(jQuery);function flatColumns(flatParent,flatTarget,columNum,notElem){$(flatParent).each(function(){var sets=[],temp=[];if(columNum==2){$(this).find(flatTarget).not(notElem).each(function(i){temp.push(this);if((i+1)%2==0&&i!=0){sets.push(temp);temp=[];}});if(temp.length)sets.push(temp);}else if(columNum==3){$(this).find(flatTarget).not(notElem).each(function(i){temp.push(this);if(i%3==2){sets.push(temp);temp=[];}});if(temp.length)sets.push(temp);}else if(columNum==4){$(this).children(flatTarget).not(notElem).each(function(i){temp.push(this);if((i+1)/4>=1&&(i+1)%4==0){sets.push(temp);temp=[];}});if(temp.length)sets.push(temp);}else if(columNum==5){$(this).children(flatTarget).not(notElem).each(function(i){temp.push(this);if((i+1)/5>=1&&(i+1)%5==0){sets.push(temp);temp=[];}});if(temp.length)sets.push(temp);}else if(columNum==6){$(this).children(flatTarget).not(notElem).each(function(i){temp.push(this);if((i+1)/6>=1&&(i+1)%6==0){sets.push(temp);temp=[];};});if(temp.length)sets.push(temp);};$.each(sets,function(){$(this).flatHeights();});});}



// Rollover
function initRollOverImages() {
var image_cache = new Object();
$("#globalNav li a img,#contents .button img,img.imgover,#pageTop a img,#sub_r p a img").each(function(i) {
var imgsrc = this.src;
var dot = this.src.lastIndexOf('.');
var imgsrc_ro = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
image_cache[this.src] = new Image();
image_cache[this.src].src = imgsrc_ro;
$(this).hover(
function() { if(!$(this).hasClass("active")){this.src = imgsrc_ro;} },
function() {if(!$(this).hasClass("active")){this.src = imgsrc; }})
});
}

// opacityOver
$.fn.opacityOver = function(){
return this.each(function(){
$(this).hover(function(){
$(this).animate({'opacity':0.6},{duration:0,queue:false});
},function(){
$(this).animate({'opacity':1},{duration:0,queue:false});
});
});
};

//localNavi
$.fn.snavActive = function(){
var pagePath = location.href.replace(ad.domain,'/');
return this.each(function(){
$(this).find('a').each(function(){
if(pagePath.search($(this).attr('href').replace(ad.domain,'/')) >=0){
$(this).addClass('now');
}
});
});
};


// slideScroll
$.fn.slideScroll = function(){
return this.click(function(){
var slidingTarget = $.support.boxModel ? navigator.appName.match(/Opera/) ? "html" : "html,body" : "body";
var targetPos = $(this.hash).offset().top;
$(slidingTarget).animate({scrollTop:targetPos},{duration:400,easing:'easeOutQuad',queue:false});
return false;
});
};

(function($) {
// bugFix
$.fn.bugFix = function(options){
if((($.browser.msie && $.browser.version < 9) || ($.browser.mozilla && parseFloat($.browser.version.substr(2,3)) < 9.1)) && this.length){
return new BugFix(this,options);
}else{
return false;
};
};

var BugFix = function(_select, options){
this.temp = {
act : 'side', // or hover or stripe or first or last
num : null
};

$.extend(this.temp, options || {});
this.target = $(_select);
this.events();
};

BugFix.prototype = {
events:function(){
var action = this.temp.act;
if(action == 'side'){
this.side();
}else if(action == 'hover' && $.browser.msie && $.browser.version < 7){
this.hover();
}else if(action == 'stripe'){
this.stripe();
}else if(action == 'first'){
this.first();
}else if(action == 'last'){
this.last();
}
},
hover:function(){
this.target.hover(function(){
$(this).addClass('hover');
},function(){
$(this).removeClass('hover');
});
},
side:function(){
var num = this.temp.num+"n";
this.target.filter(':nth-child('+num+')').addClass('side');
},
stripe:function(){
varparent = this.target.parent();
tag = this.target[0].tagName;
$(parent).children(tag).each(function(i){
if((i+1)%2-1==0 || i==0){
$(this).addClass('odd');
}
});
},
first:function(){
this.target.filter(':first-child').addClass('first');
},
last:function(){
this.target.filter(':last-child').addClass('last');
}
};

// linker
$.fn.linker = function(){
return this.click(function(e){
e.preventDefault();

if($(this).find("a").length){
var targetAnc=$(this).find("a");
}else if($(this).next("dd").find("a").length){
var targetAnc=$(this).next("dd").find("a");
}else if($(this).prev("dt").find("a").length){
var targetAnc=$(this).prev("dt").find("a");
}else{
var targetAnc=$(this);
};

if($(targetAnc).attr("href")==undefined){
$(this).css('cursor','auto');
return false;
}else if($(targetAnc).is('[href$=".pdf"],[href$=".doc"],[href$=".docx"],[href$=".xls"],[href$=".xlsx"]')){
window.open($(targetAnc).attr("href"),"_blank");
}else if($(targetAnc).is('a[href^="http://"]')==false && $(targetAnc).is('a[href^="https://"]')==false){
window.location.href=$(targetAnc).attr("href");
}else if($(targetAnc).filter(ad.notOpenURL).length && !$(targetAnc).is(ad.openURL)){
window.location.href=$(targetAnc).attr("href");
}else if($(targetAnc).is(ad.openURL)){
window.open($(targetAnc).attr("href"),"_blank");
}else{
window.open($(targetAnc).attr("href"),"_blank");
};
});
};

})(jQuery);

$.fn.tooltip=function(){
return this.each(function(){
vartipTitle = $(this).attr('title'),
tipContent = tipTitle.split('&lt;').join('<').split('&gt;').join('>').split('&#34;').join('"');
$(this).hover(function(e){
e.preventDefault();
$(this).attr('title','');
$('body').append(
'<div class="tooltip"><div class="toolInner">'+tipContent+'</div></div>'
);
vartipHeight = $('.tooltip').height(),
tipWidth = $('.tooltip').width();
$('.toolInner')
.css({
"-moz-border-radius":"5px",
"-webkit-border-radius":"5px",
"border-radius":"5px"
});
$('.tooltip')
.css({
'opacity':0.85,
"top":e.pageY-tipHeight-20,
"left":e.pageX-(tipWidth/2)
});
$(this)
.mousemove(function(e){
$('.tooltip')
.css({
"top":e.pageY-tipHeight-20,
"left":e.pageX-(tipWidth/2)
});
return false;
});
},function(){
$('.tooltip')
.remove();
$(this).attr('title',tipContent);
});
});
}

// easing
$.extend($.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
return $.easing[$.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c, d) {
return c*(t/=d)*t + b;
},
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
},
easeInBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*(t/=d)*t*((s+1)*t - s) + b;
},
easeOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
}
});




/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "pngFix"
 * Version: 1.1, 11.09.2007
 * by Andreas Eberhard, andreas.eberhard@gmail.com
 *                      http://jquery.andreaseberhard.de/
 *
 * Copyright (c) 2007 Andreas Eberhard
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([237-9n-zA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(s(m){3.fn.pngFix=s(c){c=3.extend({P:\'blank.gif\'},c);8 e=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 5.5")!=-1);8 f=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 6.0")!=-1);p(3.browser.msie&&(e||f)){3(2).B("img[n$=.C]").D(s(){3(2).7(\'q\',3(2).q());3(2).7(\'r\',3(2).r());8 a=\'\';8 b=\'\';8 g=(3(2).7(\'E\'))?\'E="\'+3(2).7(\'E\')+\'" \':\'\';8 h=(3(2).7(\'F\'))?\'F="\'+3(2).7(\'F\')+\'" \':\'\';8 i=(3(2).7(\'G\'))?\'G="\'+3(2).7(\'G\')+\'" \':\'\';8 j=(3(2).7(\'H\'))?\'H="\'+3(2).7(\'H\')+\'" \':\'\';8 k=(3(2).7(\'V\'))?\'float:\'+3(2).7(\'V\')+\';\':\'\';8 d=(3(2).parent().7(\'href\'))?\'cursor:hand;\':\'\';p(2.9.v){a+=\'v:\'+2.9.v+\';\';2.9.v=\'\'}p(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}p(2.9.x){a+=\'x:\'+2.9.x+\';\';2.9.x=\'\'}8 l=(2.9.cssText);b+=\'<y \'+g+h+i+j;b+=\'9="W:X;white-space:pre-line;Y:Z-10;I:transparent;\'+k+d;b+=\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;\';b+=\'J:K:L.t.M(n=\\\'\'+3(2).7(\'n\')+\'\\\', N=\\\'O\\\');\';b+=l+\'"></y>\';p(a!=\'\'){b=\'<y 9="W:X;Y:Z-10;\'+a+d+\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;">\'+b+\'</y>\'}3(2).hide();3(2).after(b)});3(2).B("*").D(s(){8 a=3(2).11(\'I-12\');p(a.A(".C")!=-1){8 b=a.13(\'url("\')[1].13(\'")\')[0];3(2).11(\'I-12\',\'none\');3(2).14(0).15.J="K:L.t.M(n=\'"+b+"\',N=\'O\')"}});3(2).B("input[n$=.C]").D(s(){8 a=3(2).7(\'n\');3(2).14(0).15.J=\'K:L.t.M(n=\\\'\'+a+\'\\\', N=\\\'O\\\');\';3(2).7(\'n\',c.P)})}return 3}})(3);',[],68,'||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle'.split('|'),0,{}))

$(function() {
// banner slide
$('#banners').wrapInner('<div id="carousel"></div>');
$('#banners #carousel').before('<a href="#" class="prev"><img src="img/common/btn_prev.gif" width="10" height="59" alt="Prev" /></a><a href="#" class="next"><img src="img/common//btn_next.gif" width="10" height="59" alt="Next" /></a>');
$("#banners #carousel").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
visible : 5,
auto:4000,
speed:600,
easing: "easeOutQuad"
});

$('#banners a.prev img,#banners a.next img').live('mouseover',function(){
$(this).animate({opacity:0.5},{duration:300,queue:false});
}).live('mouseout',function(){
$(this).animate({opacity:1},{duration:300,queue:false});
});
$('#banners ul li img').hover(function(){
$(this).animate({opacity:0.5},{duration:300,queue:false});
},function(){
$(this).animate({opacity:1},{duration:300,queue:false});
});
});
//jCarousel Lite
(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul",c),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else curr=a}b=true;ul.animate(animCss=="left"?{left:-(curr*g)}:{top:-(curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());b=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);




