
var Lightbox={showShareThis:function(){try{throw("wmode transparency issue");var o=new SWFObject();if(parseInt(o.installedVer.major)==9&&parseInt(o.installedVer.minor)==0&&parseInt(o.installedVer.rev)<115){throw("wmode transparency issue requires native behavior");}
if(!window.shareobj){window.shareobj=SHARETHIS.addEntry({title:"Share",summary:"share button"},{button:false});}
var shareobj=window.shareobj;if(!$("overlay")){var overlay=document.qtag("overlay",{id:"overlay",style:"display:none;"});document.body.appendChild(overlay);}
var sp=document.qtag("span",{innerHTML:"<a href='javascript:void(0);'></a>"});shareobj.attachButton(sp);$('overlay').show();shareobj.popup();this.center(SHARETHIS.wrapper.id,354,450);listen(SHARETHIS.closebutton,"click",function(){$('overlay').hide();if(document.player.xstate()=="paused")
document.player.xplay();});}catch(e){var shareobj=SHARETHIS.addEntry({title:"Share",summary:"share button"},{button:false,popup:true});shareobj.popup();}},setLightboxDimensions:function(width,height){var windowSize=this.getPageDimensions();if(width){if(width<windowSize[0]){$('box').style.width=width+'px';}else{$('box').style.width=(windowSize[0]-50)+'px';}}
if(height){if(height<windowSize[1]){$('box').style.height=height+'px';}else{$('box').style.height=(windowSize[1]-50)+'px';}}},getPageDimensions:function(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=windowWidth;}else{pageWidth=xScroll;}
arrayPageSize=new Array(windowWidth,windowHeight,pageWidth,pageHeight)
return arrayPageSize;},center:function(element,width,height){try{element=document.getElementById(element);}catch(e){return;}
width=width||element.offsetWidth;height=height||element.offsetHeight;var windowSize=this.getPageDimensions();var window_width=windowSize[0];var window_height=windowSize[1];$('overlay').style.height=windowSize[3]+'px';element.style.position='absolute';element.style.zIndex=99;var scrollY=0;if(document.documentElement&&document.documentElement.scrollTop){scrollY=document.documentElement.scrollTop;}else if(document.body&&document.body.scrollTop){scrollY=document.body.scrollTop;}else if(window.pageYOffset){scrollY=window.pageYOffset;}else if(window.scrollY){scrollY=window.scrollY;}
var setX=(window_width-width)/2;var setY=(window_height-height)/2+scrollY;setX=(setX<0)?0:setX;setY=(setY<0)?0:setY;element.style.left=setX+"px";element.style.top=setY+"px";}}
function showShareThisLightbox(){if(document.player.xstate()=="playing")
document.player.xpause();Lightbox.showShareThis();}