
var offsetfrommouse=[10,10];var displayduration=0;var defaultimageheight=375;var defaultimagewidth=375;var currentimageheight=375;var timer;function gettrailobj(){if(document.getElementById)
return document.getElementById("preview_div").style
else if(document.all)
return document.all.preview_div.style}
function gettrailobjnostyle(){if(document.getElementById)
return document.getElementById("preview_div")
else if(document.all)
return document.all.preview_div}
function truebody(){return(!window.opera&&document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function hidetrail(){gettrailobj().display="none";document.onmousemove=""
gettrailobj().left="-500px"
clearTimeout(timer);}
function showtrail(imagename,title,width,height){i=imagename
t=title
w=width
h=height
timer=setTimeout("show('"+i+"',t,w,h);",200);}
function show(imagename,title,width,height){var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-offsetfrommouse[0]
var docheight=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight)
if((navigator.userAgent.indexOf("Konqueror")==-1||navigator.userAgent.indexOf("Firefox")!=-1||(navigator.userAgent.indexOf("Opera")==-1&&navigator.appVersion.indexOf("MSIE")!=-1))&&(docwidth>650&&docheight>500))
{if((navigator.userAgent.indexOf("Konqueror")==-1||navigator.userAgent.indexOf("Firefox")!=-1||(navigator.userAgent.indexOf("Opera")==-1&&navigator.appVersion.indexOf("MSIE")!=-1))&&(docwidth>650&&docheight>500))
{width+=30
height+=55
defaultimageheight=height
defaultimagewidth=width
document.onmousemove=followmouse;newHTML='<div class="border_preview"> ';newHTML=newHTML+'<div id="loader_container" align="center"><div id="loader" align="center"><h2 class="title_loadtmp" align="center">Loading ...</h2></div></div>';newHTML=newHTML+'<div class="preview_temp_load"><img onload="javascript:remove_loading();" src="'+imagename+'" width="375" height="375"></div>';newHTML=newHTML+'</div>';if(navigator.userAgent.indexOf("MSIE")!=-1&&navigator.userAgent.indexOf("Opera")==-1&&navigator.userAgent.indexOf("Firefox")==-1){newHTML=newHTML+'<iframe src="about:blank" scrolling="no" frameborder="0" width="'+width+'" height="'+height+'"></iframe>';}
gettrailobjnostyle().innerHTML=newHTML;gettrailobj().display="block";}}}
function followmouse(e){var xcoord=offsetfrommouse[0]
var ycoord=offsetfrommouse[1]
var docwidth=document.all?truebody().scrollLeft+truebody().clientWidth:pageXOffset+window.innerWidth-15
var docheight=document.all?Math.min(truebody().scrollHeight,truebody().clientHeight):Math.min(window.innerHeight)
var myTrueBodyScrollTop=(truebody().scrollTop)?truebody().scrollTop:document.body.scrollTop;if(typeof e!="undefined"){if(docwidth-e.pageX<495){xcoord=e.pageX-xcoord-495;}else{xcoord+=e.pageX;}
if(docheight-e.pageY<(currentimageheight+330)){ycoord+=e.pageY-Math.max(0,(330+currentimageheight+e.pageY-docheight-myTrueBodyScrollTop));}else{ycoord+=e.pageY;}}else if(typeof window.event!="undefined"){if(docwidth-event.clientX<495){xcoord=event.clientX+truebody().scrollLeft-xcoord-495;}else{xcoord+=truebody().scrollLeft+event.clientX}
if(docheight-event.clientY<(currentimageheight+330)){ycoord+=event.clientY+myTrueBodyScrollTop-Math.max(0,(330+currentimageheight+event.clientY-docheight));}else{ycoord+=myTrueBodyScrollTop+event.clientY;}}
if(ycoord<0){ycoord=ycoord*-1;}
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"}
var t_id=setInterval(animate,20);var pos=10;var dir=12;var len=10;function animate()
{var elem=document.getElementById('progress');if(elem!=null){if(pos==0)len+=dir;if(len>32||pos>79)pos+=dir;if(pos>79)len-=dir;if(pos>79&&len==0)pos=0;elem.style.left=pos;elem.style.width=len;}}
function remove_loading(){this.clearInterval(t_id);var targelem=document.getElementById('loader_container');targelem.style.display='none';targelem.style.visibility='hidden';var t_id=setInterval(animate,60);}
