var	imgBanner = new Array("http://www.billp.com/images/fbwinpatrol1.gif",
							"http://www.billp.com/images/fbwinpatrol2.gif",
							"http://www.billp.com/images/fbwinpatrol3.gif",
							"http://www.billp.com/images/fbwinpatrol4.gif",
							"http://www.billp.com/images/fbwinpatrol5.gif",
							"http://www.billp.com/images/fbwinpatrol6.gif",
							"http://www.billp.com/images/fbwinpatrol7.gif",
							"http://www.billp.com/images/fbwinpatrol8.gif",
							"http://www.billp.com/images/fbwinpatrol9.gif",
							"http://www.billp.com/images/fbwinpatrol10.gif",
							"http://www.billp.com/images/fbwinpatrol11.gif",
							"http://www.billp.com/images/fbwinpatrol12.gif",
							"http://www.billp.com/images/fbwinpatrol18.gif",
							"http://www.billp.com/images/fbwinpatrol15.gif",
							"http://www.billp.com/images/fbwinpatrol16.gif",
							"http://www.billp.com/images/fbwinpatrol17.gif",
							"http://www.billp.com/images/fbwinpatrol14.gif"
							);
	var iCurrent = 0;	var	iCount = 16;

function days2go(date1,date2)
{
    var days =
        Date.UTC(date1.getYear(),date1.getMonth(),date1.getDate(),0,0,0)
      - Date.UTC(date2.getYear(),date2.getMonth(),date2.getDate(),0,0,0);
    return days/1000/60/60/24;
    
}
function min2go(date1,date2)
{
    var days =
        Date.UTC(date1.getYear(),date1.getMonth(),date1.getDate(),date1.getHours(),date1.getMinutes(),0)
      - Date.UTC(date2.getYear(),date2.getMonth(),date2.getDate(),date2.getHours(),date2.getMinutes(),0);
      
    return days/1000/60;
    
}

function UpdateSlide(){
	var imgObject;	iCurrent++;
	if(iCurrent > 15 )	{
		iCurrent = 0;
	}
	imgObject = document.images['theShow'];	imgObject.src = imgBanner[iCurrent];
	}		 
function StartShow(){
	iCurrent = 8;	setInterval("javascript:UpdateSlide()", 12000);
	}

function BillPHeader(){
	document.write("<TR align=left>");
	document.write("<TD width='80%' colspan='2' align=left VALIGN='top'>");
	document.write("<IMG ALT='BillP Studios Logo' BORDER='0' align=left ");
	document.write("SRC='http://www.winpatrol.com/images/banner.jpg' >");
	document.write("</TD> ");
			
	document.write("<TD width='20%' colspan='1'>	");

	document.write('<form action="http://www.google.com/cse" id="cse-search-box" target="_blank">');
	document.write('<div>BillP Studios Search<br>');
	document.write('<input type="hidden" name="cx" value="partner-pub-5216032068438142:24oy9c-eom8" ID="Hidden1">');
	document.write('<input type="hidden" name="ie" value="ISO-8859-1" ID="Hidden2"> <input name="q" size="36" ID="Text1">');
	document.write('<input type="submit" name="sa" value="Search" ID="Submit1">');
	document.write('</div></form>');
	document.write('<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>	');			
	document.write('</TD></TR>');
}


function BillPSocial()
{
	document.write('<P align="center">');
//	document.write('<a href="http://www.facebook.com/group.php?gid=49417927883">');
//	document.write('<img src="http://www.winpatrol.com/images/facebook.jpg" border="0"></a>');
//	document.write('<br><a href="http://www.facebook.com/group.php?gid=49417927883">');
//	document.write('WinPatrol Updates via Facebook</a><br>');
	document.write('</P><br>');
	document.write('<P align="center">');
	document.write('<a href="http://twitter.com/WinPatrol">');
	document.write('<img src="http://www.billp.com/images/twitterbutton1.gif" border="0" align="center"></a>');
	document.write('<BR><br>');
}

function WinPatrolLocalize()
{
	document.write('<div id="MicrosoftTranslatorWidget" style="BORDER-BOTTOM-COLOR: #3a5770; ');
	document.write(' BACKGROUND-COLOR: #78add0; BORDER-TOP-COLOR: #3a5770; MIN-HEIGHT: 0px; WIDTH: 200px; BORDER-RIGHT-COLOR: #3a5770; BORDER-LEFT-COLOR: #3a5770">');
	document.write('<noscript>');
	document.write('<a href="http://www.microsofttranslator.com/BV.aspx?a=http%3a%2f%2fwww.winpatrol.com%2f">')
	document.write('Translate this page</a><br>Translation powered by'); 
	document.write('<a href="http://www.microsofttranslator.com">');
	document.write('Microsoft® Translator</a></noscript></div>');
	document.write('<script id="MicrosoftTranslatorWidgetScript" type="text/javascript" ');
	document.write('src="http://api.microsofttranslator.com/V1/Widget.svc/Embed?appId=F3XuxETyFL0NGv95LEJHOth03oXI2tB2&amp;from=en&amp;layout=ts">');
	document.write('</script>');
					
}

function WinPatrolFunStuff()
{

	document.write('<br>');
	document.write('<b><big>WinPatrol Fun Stuff</big></b><br>');
	document.write('<I>While supply lasts</I><br><br>');
//	document.write('<A href="http://winpatrol.stores.yahoo.net/winpatrol-usb-flash-wristband.html"><IMG border="0" src="http://www.winpatrol.com/images/flashband0.jpg"></A><br>');
//	document.write('1GB USB Wristband \$24.95<br>');
//	document.write('<P align="justify">');
//	document.write('Copy photos, music, and even data from one computer to another. ');
//	document.write('Our portable WinPatrolFlash.exe Edition included.');
//	document.write('</P><br>');
	document.write('<A href="http://winpatrol.stores.yahoo.net/wispsh.html">');
	document.write('<IMG border="0" src="http://www.winpatrol.com/images/sportshirt.jpg" width="180"></A><br>');
	document.write('<A href="http://winpatrol.stores.yahoo.net/wispsh.html">');
	document.write('Scotty Sports Shirt<br>	$24.95</A><br>');
	document.write('<P align="justify">');
	document.write('Look your best and show your support for Scotty the Windows Watch Dog');
	document.write('</P><br>');
}


function BillPMenu()
{	document.write("<TR align=left><TD colspan=3>");
	document.write("<TABLE width='100%' CELLPADDING='5' bgcolor=SkyBlue align=left border=2 bordercolor=000066 rules=rows><TR>");

	document.write	("<TD><A HREF='http://www.billp.com' ");
	document.write	(" ONMOUSEOVER=\"qbar_01.src='http://www.billp.com/images/menuhome0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_01.src='http://www.billp.com/images/menuhome.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_01' SRC='http://www.billp.com/images/menuhome.jpg' BORDER=0 ALT='Home Page'></A></TD>");
	
	document.write	("<TD><A HREF='http://www.billp.com/store.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_04.src='http://www.billp.com/images/menuproducts0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_04.src='http://www.billp.com/images/menuproducts.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_04' SRC='http://www.billp.com/images/menuproducts.jpg' BORDER=0 ALT='Store'></A></TD>");
	document.write	("<TD><A  HREF='http://www.winpatrol.com/download.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_02.src='http://www.billp.com/images/menudownloads0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_02.src='http://www.billp.com/images/menudownloads.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_02' SRC='http://www.billp.com/images/menudownloads.jpg' BORDER=0 ALT='Downloads'></A></TD>");
	document.write	("<TD><A  HREF='http://www.billp.com/contact.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_03.src='http://www.billp.com/images/menucontact0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_03.src='http://www.billp.com/images/menucontact.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_03' SRC='http://www.billp.com/images/menucontact.jpg' BORDER=0 ALT='Contact'></A></TD>");

	document.write	("<TD><A HREF='http://www.billp.com/support.html' ");
	document.write	(" ONMOUSEOVER=\"qbar_05.src='http://www.billp.com/images/menusupport0.jpg'; return true;\" ");
	document.write	(" ONMOUSEOUT=\"qbar_05.src='http://www.billp.com/images/menusupport.jpg'; return true;\"> ");
	document.write	(" <IMG NAME='qbar_05' SRC='http://www.billp.com/images/menusupport.jpg' BORDER=0 ALT='Support'></A></TD>");
	document.write	("</TR></TABLE>");
	
	document.write	("</TR>");
}

function footerMenu()
{
	document.write	("<P align='center'><a href='http://www.billp.com/' target='_top'>Home</a> | ");
	document.write	("<a href='http://www.winpatrol.com/download.html' target='_top'>Downloads</a> | ");
	document.write	("<a href='http://www.billp.com/contact.html' target='_top'>Contact</a> | ");
	document.write	("<a href='http://www.billp.com/store.html' target='_top'>Products</a> | ");
	document.write	("<a href='http://www.billp.com/support.html' target='_top'>Support</a> </P>");

}


function BoxNeedCode()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='mailto:support@WinPatrol.com'>Forget Your PLUS Code?</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("New computer or hard driver failure?<br>Are you a PLUS member and can't find your code?");
	document.write	("<br>Just Email your name to <A href='mailto:support@WinPatrol.com'>support@WinPatrol.com</A> ");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxUpgrade()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'>WinPatrol PLUS Upgrade</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Support for WinPatrol PLUS makes the free versions possible.<br>Your support is appreciated.<br>");


//	document.write	("<h1><font color=green>SPECIAL!!!</font></h1>");
//	document.write	("<B><font color=green>Back to $chool $pecial</font></B><br>Upgrade now and save $10.<br>Use Coupon <b><i>\"grad2010\"</i></b> ");



	document.write	("<br><A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'><B>WinPatrol PLUS</B></A>");
	document.write	(" <A href='http://winpatrol.stores.yahoo.net/winplusmemre.html'><IMG  align=absmiddle  src='http://www.billp.com/images/rarrow.gif'></A>");

	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxMultipleComputers()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/support.html'>Multiple Computers?</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Can I use my activation code on both my desktop and laptop?<br>");
	document.write	("Of course. You're the customer not your computer. You're welcome to use a single  license code on ");
	document.write	("any computer you personally own and use.");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxFeatures()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/features.html'>Product Features</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Find out why WinPatrol has grown to be one the most popular Windows utilities worldwide.");
	document.write	("<br>")
	document.write	("<A href='http://www.winpatrol.com/features.html'><B>Features </B></A>");
	document.write	(" <A href='http://www.winpatrol.com/features.html'><IMG align=absmiddle src='http://www.billp.com/images/rarrow.gif'></A>");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxCompare()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/compare.html'>Product Comparisons</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Not sure which WinPatrol is right for you?<br>Just need our popular FREE Edition ");
	document.write	("or the real-time power of WinPatrol PLUS?<br>");
	document.write	("<A href='http://www.winpatrol.com/compare.html'><B>Compare</B></A>");
	document.write	(" <A href='http://www.winpatrol.com/compare.html'><IMG  align=absmiddle  src='http://www.billp.com/images/rarrow.gif'></A>");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxReviews()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH>WinPatrol Reviews</TH></TR>");
	document.write	("<TR><TD align='center'>");
	document.write	("<A href='http://download.cnet.com/WinPatrol/3000-8022_4-10129149.html'>");
	document.write	("<img src='http://www.billp.com/images/cnet5star.gif' alt='CNet Downloads.com'> </A>");
	document.write	("<A href='http://www.brothersoft.com/winpatrol-180662.html'>");
	document.write	("<br><img src='http://www.billp.com/images/star_101.gif' alt='Brother Soft'> </A>");
	document.write	("<br><img src='http://www.billp.com/images/pcworldbest2007.gif' alt='PC World Best'> ");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxOptimize()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://clickserve.cc-dt.com/link/click?lid=41000000028501657'>FREE PC Scan</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Try a FREE PC Optimize computer scan to evaluate ways to increase your PC performance.<br> ");
	document.write	("<A href='http://clickserve.cc-dt.com/link/click?lid=41000000028501657'><B>FREE SCAN</B></A>");
	document.write	(" <A href='http://clickserve.cc-dt.com/link/click?lid=41000000028501657'><IMG  align=absmiddle  src='http://www.billp.com/images/rarrow.gif'></A>");
	document.write	("</TD></TR></TBODY></TABLE>");
}	

function BoxNewStuff()
{
	document.write	("<TABLE width=100% border=2 align=center CELLSPACING='0' CELLPADDING='4'>");
	document.write	("<TBODY>");
	document.write	("<TR><TH><A href='http://www.winpatrol.com/upgrade.html'>New WinPatrol 2010</A></TH></TR>");
	document.write	("<TR><TD>");
	document.write	("Find out what's new in the latest Super Optimized version of WinPatrol 2010.<br> ");
	document.write	("<A href='http://www.winpatrol.com/upgrade.html'><B>Update Info</B></A>");
	document.write	(" <A href='http://www.winpatrol.com/upgrade.html'><IMG  align=absmiddle  src='http://www.billp.com/images/rarrow.gif'></A>");
	document.write	("</TD></TR></TBODY></TABLE>");
}	
