﻿if(typeof IGExpando_js_parsed=='undefined'){
var tmrContract=0;
var tmr1=0;
var ex=null;
var browser=navigator.userAgent;
var __expandoInitialized=false;
function init(){
if(__expandoInitialized)
return;
var tmpDiv=document.createElement('div');
tmpDiv.setAttribute('id','silouhette');
tmpDiv.style.border='#999999 thin solid';
tmpDiv.style.visibility='hidden';
document.getElementsByTagName('body')[0].appendChild(tmpDiv);
var As=document.getElementsByTagName('a');
for(i=0;i!=As.length;i++){
var currA=As[i];
if(currA.getAttribute('rel')=='expando'){
switch(currA.getAttribute('expandAction')){
case 'click':
currA.onclick=function(){tryThis(this);};
break;
default:
currA.onmouseover=function(){tryThis(this);};
break;}
currA.onmouseout=function(){ex.hide()};}}
__expandoInitialized=true;}
var expando=function(obj){
init();
this.srcObj=obj;
var srcBounds=Sys.UI.Control.getBounds(this.srcObj);
this.srcTop=srcBounds.y;
this.srcLeft=srcBounds.x;
this.srcWidth=srcBounds.width;
this.srcHeight=srcBounds.height;
this.toObj=document.getElementById(obj.getAttribute('contentId'));
this.toObj.style.visibility='hidden';
this.toObj.style.top='0px';
this.toObj.style.left='0px';
this.toObj.style.display='block';
this.toWidth=parseInt(this.toObj.clientWidth);
this.toHeight=parseInt(this.toObj.clientHeight);
this.toObj.style.display='none';
this.toLeft=0;
this.toTop=0;
this.velocity=1;
this.frames=10;
this.offSetX=0;
this.offSetY=0;
this.currentFrame=0;
this.timer=0;
this.winDims=new bWindow();
this.winDims.init();
this._inAction=false;
this._aborted=false;
this.left=function(){
if((this.srcLeft-this.toWidth)>0){
this.toLeft=this.srcLeft-this.toWidth;}else{
this.toLeft=this.srcLeft+this.srcWidth;}}
this.right=function(){
if((this.srcLeft+this.srcWidth+this.toWidth)<this.winDims.width){
this.toLeft=this.srcLeft+this.srcWidth;}else{
this.hMiddle();}}
this.top=function(){
if((this.srcTop-this.winDims.windowTop-this.toHeight)>0){
this.toTop=this.srcTop-this.toHeight;}else{
this.toTop=this.srcTop+this.srcHeight;}}
this.bottom=function(){
if((this.srcTop+this.srcHeight+this.srcTop)>this.winDims.height)
this.top();
else{
this.toTop=this.srcTop+this.srcHeight;}}
this.vMiddle=function(){
this.toTop=this.srcTop-(this.toHeight-this.srcHeight)/2;}
this.hMiddle=function(){
this.toLeft=(this.winDims.width-this.toWidth)/2;
if(this.toLeft<0)
this.toLeft=0;}
this.setFinalPosition=function(top,left){
this.toTop=parseInt(top);
this.toLeft=parseInt(left);}
this._tmpFn='';
this.zoomer=document.getElementById('silouhette');
if(!this.zoomer){
init();
this.zoomer=document.getElementById('silouhette');}
this.__completionCallback=null;
this.start=function(cancelAutoHide,completionCallback){
this.__completionCallback=completionCallback;
clearTimeout(tmr1);
this.zoomer.style.position='absolute';
this.zoomer.style.top=this.srcTop+'px';
this.zoomer.style.left=this.srcLeft+'px';
this.zoomer.style.width=this.srcWidth+'px';
this.zoomer.style.height=this.srcHeight+'px';
if(!cancelAutoHide){
this.zoomer.onmouseover=function(){ex.cancelContract();};
this._tmpFn=this.srcObj.onmouseover;
this.srcObj.onmouseover='';
this.srcObj.onmouseout=function(){ex.hide();};
this.toObj.onmouseover=function(){ex.cancelContract();};
this.toObj.onmouseout=function(){ex.hide();};}
var thisObj=this;
tmr1=setTimeout(function(){thisObj.expand(thisObj,cancelAutoHide);},200);
this._inAction=true;}
this.cancelContract=function(){
clearTimeout(tmrContract);
this._aborted=false;}
this.cancel=function(){
clearTimeout(tmr1);
this.srcObj.onmouseover=this._tmpFn;
this.zoomer.style.visibility='hidden';}
this.hide=function(){
if(this._inAction){
this._aborted=true;}else{
this._abort();}}
this._abort=function(){
var thisObj=this;
tmrContract=setTimeout(function(){thisObj.contract(thisObj);},200);}
this.contract=function(oExpando){
this.toObj.style.visibility='hidden';
this.zoomer.style.visibility='visible';
this._inAction=true;
oExpando.zoomer.style.top=this.toTop-((this.toTop-this.srcTop)/oExpando.frames*(oExpando.frames-oExpando.currentFrame))+'px';
oExpando.zoomer.style.left=this.toLeft-((this.toLeft-this.srcLeft)/oExpando.frames*(oExpando.frames-oExpando.currentFrame))+'px';
oExpando.zoomer.style.width=this.toWidth-((this.toWidth-this.srcWidth)/oExpando.frames*(oExpando.frames-oExpando.currentFrame))+'px';
oExpando.zoomer.style.height=this.toHeight-((this.toHeight-this.srcHeight)/oExpando.frames*(oExpando.frames-oExpando.currentFrame))+'px';
var thisObj=this;
if(oExpando.currentFrame>2){
oExpando.currentFrame--;
tmr1=setTimeout(function(){thisObj.contract(thisObj);},this.velocity);}else{
oExpando.zoomer.style.visibility='hidden';
oExpando.toObj.style.display='none';
oExpando.toObj.style.left=this.srcLeft;
oExpando.toObj.style.top=this.srcTop;
this.srcObj.onmouseover=this._tmpFn;
this._inAction=false;}}
this.expand=function(oExpando,cancelAutoHide){
oExpando.toObj.style.display='block';
oExpando.zoomer.style.visibility='visible';
oExpando.zoomer.style.top=this.srcTop+((this.toTop-this.srcTop)/oExpando.frames*(oExpando.currentFrame))+'px';
oExpando.zoomer.style.left=this.srcLeft+((this.toLeft-this.srcLeft)/oExpando.frames*(oExpando.currentFrame))+'px';
oExpando.zoomer.style.width=this.srcWidth+((this.toWidth-this.srcWidth)/oExpando.frames*(oExpando.currentFrame))+'px';
oExpando.zoomer.style.height=this.srcHeight+((this.toHeight-this.srcHeight)/oExpando.frames*(oExpando.currentFrame))+'px';
var thisObj=this;
if(oExpando.currentFrame<oExpando.frames-1){
oExpando.currentFrame++;
tmr1=setTimeout(function(){thisObj.expand(thisObj,cancelAutoHide);},this.velocity);}else{
oExpando.zoomer.style.visibility='hidden';
oExpando.toObj.style.left=this.toLeft+'px';
var scrollYPos;
if(typeof window.pageYOffset!='undefined'){
scrollYPos=window.pageYOffset;}
else if(document.compatMode&&document.compatMode!='BackCompat'){
scrollYPos=document.documentElement.scrollTop;}
else{
scrollYPos=document.body.scrollTop;}
if(typeof scrollYPos!='undefined'){
if(scrollYPos>=70)
oExpando.toObj.style.top=scrollYPos+20+'px';
else
oExpando.toObj.style.top=this.toTop+'px';}
oExpando.toObj.style.visibility='visible';
if(this.__completionCallback)
this.__completionCallback();
oExpando.srcObj.onmouseover=function(){ex.cancel();};
if(!cancelAutoHide)
this.srcObj.onmouseout=function(){ex.hide();};
this._inAction=false;}}}
function tryThis(obj){
var type=obj.getAttribute('mode');
ex=new expando(obj);
switch(type){
case 'topRight':
ex.top();
ex.right();
break;
case 'topLeft':
ex.top();
ex.left();
break;
case 'bottomRight':
ex.bottom();
ex.right();
break;
case 'bottomLeft':
ex.bottom();
ex.left();
break;
case 'left':
ex.vMiddle();
ex.left();
break;
case 'right':
ex.vMiddle();
ex.right();
break;
case 'top':
ex.hMiddle();
ex.top();
break;
case 'bottom':
ex.hMiddle();
ex.bottom();
break;
case 'center':
ex.hMiddle();
ex.vMiddle();
break;}
ex.start();}
IGExpando_js_parsed=true;}

