//<ImageLoader



function writeHostedImage()
{var u="undefined";var h=200;var w=200;var img=new Image();img.src=hostedimageSRc;var unsupportedBrowser=clientBrowserSniffer();if(typeof(img.height)!=u)
if(img.height>1&&img.height<h)
h=img.height;if(typeof(img.width)!=u)
if(img.width>1&&img.width<w)
w=img.width;var s='<table width=204 border=0 cellpadding=0 cellspacing=0 height=204>';s+='<tr><td colspan=3 width=204 height=2 bgcolor="#DCDCFE"><img src="';s+=viSpcrPic+'" width=204 height=2></td></tr><tr><td width=2 height=200 ';s+='bgcolor="#DCDCFE"><img src="'+viSpcrPic+'" width=2 height=200></td>';s+='<td width=200 align=center><a href="#photohosting"><img src="';s+=hostedimageSRc+'" width='+w.toString()+' align=middle border=0 ';if(is.mac)
{s+='name=SelfHostedImage height='+h.toString()+'></a></td><td width=2 bgcolor="#DCDCFE"><img src="';s+=viSpcrPic+'" width=2></td></tr><tr><td colspan=3 width=204 height=2 bgcolor="#DCDCFE"><img src="'+viSpcrPic;}
else if(!unsupportedBrowser)
{if(!is.ie||(is.ver>=5))
{s+='name=SelfHostedImage height='+h+'></a></td><td width=2 height=200 bgcolor="#DCDCFE"><img src="';s+=viSpcrPic+'" width=2 height=200></td></tr><tr><td colspan=3 width=204 height=2 bgcolor="#DCDCFE">';s+='<img src="images/spacer.gif';}
else
{s+='name=SelfHostedImage onload="hostedImageLoaded(this);"></a></td><td width=2 height=200 bgcolor="#DCDCFE"><img src="';s+=viSpcrPic+'" width=2 height=200></td></tr><tr><td colspan=3 width=204 height=2 bgcolor="#DCDCFE"><img src="'+viSpcrPic;}}
else
{s+='height=200></a></td><td width=2 height=200 bgcolor="#DCDCFE"><img src="';s+=viSpcrPic+'" width=2 height=200></td></tr><tr><td colspan=3 width=204 height=2 bgcolor="#DCDCFE"><img src="'+viSpcrPic;}
s+='" width=204 height=2></td></tr></table>';document.open();document.write(s);document.close();}

function update(url,index,isSuper)
{currentIndex=index;currentIsSuper=isSuper;document['Big'].src=url;visibleState="hidden";}

