var offsetfrommouse=[30,15];
var displayduration=0;
var currentimageheight = 500;
var defaultimageheight = 40;
var defaultimagewidth = 40;
a=new Image(100,25); b=new Image(100,25); c=new Image(100,25);
a.src="/images/loading.gif"; b.src="/images/wen.gif"; c.src="/images/bnow.gif";
document.write('<div style="display: none; position: absolute;z-index:110;left:-800px" id="trailimageid"></div>');
function gettrailobj(){if (document.getElementById) return document.getElementById("trailimageid").style; else if (document.all) return document.all.trailimagid.style}function gettrailobjnostyle(){if (document.getElementById) return document.getElementById("trailimageid"); else if (document.all) return document.all.trailimagid}
function truebody(){return (!window.opera && document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body}
function showtrail(imagename,title,description,ratingaverage,ratingnumber,showthumb,height,hres,word){
if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+200;
}
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 520px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #888;">';
if (ratingnumber == 0){ratingaverage = 0;}
cameraHTML = ratingaverage + '(' + ratingnumber  + ')';
cameraHTML = '';
newHTML = newHTML + '<H1 class="title_div" style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/0.gif" width="1" height="3"></td></tr><tr><td bgcolor="#D52229"><img src="images/0.gif" width="1" height="5"></td></tr><tr><td><img src="images/0.gif" width="1" height="3"></td></tr></table>';
newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">Has matching MS Word template:&nbsp;</font></td><td><b>' + word + '</b>;&nbsp;</td><td nowrap align="right"><font class="ns2">Backgrounds Size:&nbsp;</font></td><td><b>' + hres + '</b></td></tr></table><table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">   &nbsp;</font></td><td>' + cameraHTML + '</td></tr></table><br/>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;">' + description + '</p><br/>';
newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;"><img src="' + imagename + '" width="425" height="356" border="0"></div>';
newHTML = newHTML + '</div>'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility = "visible"; gettrailobj().display="block";}
function hidetrail(){gettrailobj().visibility="hidden"; document.onmousemove=""; gettrailobj().left="-800px";}
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);

    if (typeof e != "undefined"){
        if (docwidth - e.pageX < defaultimagewidth + 2*offsetfrommouse[0]){
            xcoord = e.pageX - xcoord - defaultimagewidth;
        } else {
            xcoord += e.pageX;
        }
        if (docheight - e.pageY < defaultimageheight + 2*offsetfrommouse[1]){
            ycoord += e.pageY - Math.max(0,(2*offsetfrommouse[1] + defaultimageheight + e.pageY - docheight - truebody().scrollTop));
        } else {
            ycoord += e.pageY;
        }
    } else if (typeof window.event != "undefined"){if (docwidth - event.clientX < defaultimagewidth + 2*offsetfrommouse[0]){xcoord = event.clientX + truebody().scrollLeft - xcoord - defaultimagewidth;} else {xcoord += truebody().scrollLeft+event.clientX}
     if (docheight - event.clientY < (defaultimageheight + 2*offsetfrommouse[1])){ycoord += event.clientY + truebody().scrollTop - Math.max(0,(2*offsetfrommouse[1] + defaultimageheight + event.clientY - docheight));} else {ycoord += truebody().scrollTop + event.clientY;}
    } gettrailobj().left=xcoord+"px"; gettrailobj().top=ycoord+"px"
}

function showtrail2(imagename,title,description,ratingaverage,ratingnumber,showthumb,height,hres,word){
if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+200;
}
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 520px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #888;">';
if (ratingnumber == 0){ratingaverage = 0;}
cameraHTML = ratingaverage + '(' + ratingnumber  + ')';
cameraHTML = '';
newHTML = newHTML + '<H1 class="title_div" style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/0.gif" width="1" height="3"></td></tr><tr><td bgcolor="#D52229"><img src="images/0.gif" width="1" height="5"></td></tr><tr><td><img src="images/0.gif" width="1" height="3"></td></tr></table>';
if(hres != ''){
	newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">Fold Type:&nbsp;</font></td><td><b>' + hres + '</b></td></tr></table>';
}
if(word != ''){
	newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">Page/Background Size:&nbsp;</font></td><td><b>' + word + '</b></td></tr></table>';
}
newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">   &nbsp;</font></td><td>' + cameraHTML + '</td></tr></table><br/>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;">' + description + '</p><br/>';
newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;"><img src="' + imagename + '" border="0"></div>';
newHTML = newHTML + '</div>'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility = "visible"; gettrailobj().display="block";}

function showtrail3(imagename,title,description,ratingaverage,ratingnumber,showthumb,height,hres,word){

if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+200;
}
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 520px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #888;">';
if (ratingnumber == 0){ratingaverage = 0;}
cameraHTML = ratingaverage + '(' + ratingnumber  + ')';
cameraHTML = '';
newHTML = newHTML + '<H1 class="title_div" style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/0.gif" width="1" height="3"></td></tr><tr><td bgcolor="#D52229"><img src="images/0.gif" width="1" height="5"></td></tr><tr><td><img src="images/0.gif" width="1" height="3"></td></tr></table>';
if(hres != ''){
	newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">Page / Background Size:&nbsp;</font></td><td><b>' + hres + '</b></td></tr></table>';
}
newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">   &nbsp;</font></td><td>' + cameraHTML + '</td></tr></table><br/>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;">' + description + '</p><br/>';
newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;"><img src="' + imagename + '" width="425" height="390" border="0"></div>';
newHTML = newHTML + '</div>'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility = "visible"; gettrailobj().display="block";}

function showtrail4(imagename,title,description,ratingaverage,ratingnumber,showthumb,height,hres,word){
if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+200;
}
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 520px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #888;">';
if (ratingnumber == 0){ratingaverage = 0;}
cameraHTML = ratingaverage + '(' + ratingnumber  + ')';
cameraHTML = '';
newHTML = newHTML + '<H1 class="title_div" style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/0.gif" width="1" height="3"></td></tr><tr><td bgcolor="#D52229"><img src="images/0.gif" width="1" height="5"></td></tr><tr><td><img src="images/0.gif" width="1" height="3"></td></tr></table>';
newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">   &nbsp;</font></td><td>' + cameraHTML + '</td></tr></table><br/>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;">' + description + '</p><br/>';
newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;"><img src="' + imagename + '" width="512" border="0" style="border:thin solid #666666; padding:3px;"></div>';
newHTML = newHTML + '</div>'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility = "visible"; gettrailobj().display="block";}

function showtrail5(imagename,title,description,ratingaverage,ratingnumber,showthumb,height,hres,word){
if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+200;
}
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 520px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #888;">';
if (ratingnumber == 0){ratingaverage = 0;}
cameraHTML = ratingaverage + '(' + ratingnumber  + ')';
cameraHTML = '';
newHTML = newHTML + '<H1 class="title_div" style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/0.gif" width="1" height="3"></td></tr><tr><td bgcolor="#D52229"><img src="images/0.gif" width="1" height="5"></td></tr><tr><td><img src="images/0.gif" width="1" height="3"></td></tr></table>';
newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">   &nbsp;</font></td><td>' + cameraHTML + '</td></tr></table><br/>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;">' + description + '</p><br/>';
newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;"><img src="' + imagename + '" width="425" height="356" border="0"></div>';
newHTML = newHTML + '</div>'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility = "visible"; gettrailobj().display="block";}

function showtrail6(imagename,title,description,ratingaverage,ratingnumber,showthumb,height,hres,word){
if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+200;
}
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 520px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #888;">';
cameraHTML = ratingaverage + '(' + ratingnumber  + ')';
cameraHTML = '';
newHTML = newHTML + '<H1 class="title_div" style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/0.gif" width="1" height="3"></td></tr><tr><td bgcolor="#D52229"><img src="images/0.gif" width="1" height="5"></td></tr><tr><td><img src="images/0.gif" width="1" height="3"></td></tr></table>';
newHTML = newHTML + '<table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap align="right"><font class="ns2">   &nbsp;</font></td><td>' + cameraHTML + '</td></tr></table><br/>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;">' + description + '</p><br/>';
newHTML = newHTML + '<div align="center" style="padding: 8px 2px 2px 2px;"><img src="' + imagename + '" width="425" height="356" border="0"></div>';
newHTML = newHTML + '</div>'; gettrailobjnostyle().innerHTML = newHTML; gettrailobj().visibility = "visible"; gettrailobj().display="block";}
