// Copyright (C) Thomas Legault 2008 - All Rights Reserved

function writePrintLink()
{var pageUrl=" "+window.location;if(pageUrl.indexOf("?")==-1)
{pageUrl+="?";}
else
{var codeIndex=pageUrl.indexOf("print");if(codeIndex==-1)
{pageUrl+="&";}
else
{var nextValIndex=pageUrl.indexOf("&",codeIndex);if(nextValIndex==-1)
{pageUrl=pageUrl.substring(0,codeIndex);}
else
{var temp=pageUrl.substring(0,codeIndex-1);temp+=pageUrl.substring(nextValIndex,pageUrl.length);pageUrl=temp;}}}
pageUrl+="print=1";document.write("<a class='print' href='"+pageUrl+"' target='_new'>"+LINK_PRINT+"</a>");}
PositionX=100;PositionY=50;defaultWidth=500;defaultHeight=500;var AutoClose=true;if(parseInt(navigator.appVersion.charAt(0))>=4){var isNN=(navigator.appName=="Netscape")?1:0;var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;function popImage(imageURL,imageTitle){if(isNN){imgWin=window.open('about:blank','',optNN);}
if(isIE){imgWin=window.open('about:blank','',optIE);}
with(imgWin.document){writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');writeln('width=300-(document.body.clientWidth-document.images[0].width);');writeln('height=300-(document.body.clientHeight-document.images[0].height);');writeln('window.resizeTo(width,height);}');writeln('else {');writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');if(!AutoClose)writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor="#FFFFFF" scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');close();}}
function onShowContentItemsLetter(contentTypeInstanceId,letter)
{var letters="abcdefghijklmnopqrstuvwxyz";var otherLetter="0";var letterDiv;for(var l=0;l<letters.length;l++)
{letterDiv=document.getElementById(contentTypeInstanceId+"_div_"+letters[l]);if(letter!=letters[l])
{letterDiv.style.display="none";}
else
{letterDiv.style.display="";}}
letterDiv=document.getElementById(contentTypeInstanceId+"_div_"+otherLetter);if(letterDiv!=null)
{if(letter!=otherLetter)
{letterDiv.style.display="none";}
else
{letterDiv.style.display="";}}}
