Stamp = new Date();
update = Stamp.getMonth() + 1;
updateday = Stamp.getDate() -3;

if (Stamp.getDate() < 4) {
updateday = 1;
}if (Stamp.getMonth() == 0) {
 Month = "Jan.";
}
if (Stamp.getMonth() == 1) {
 Month = "Feb.";
}
if (Stamp.getMonth() == 2) {
 Month = "Mar.";
}
if (Stamp.getMonth() == 3) {
 Month = "Apr.";
}
if (Stamp.getMonth() == 4) {
 Month = "May";
}
if (Stamp.getMonth() == 5) {
 Month = "Jun.";
}
if (Stamp.getMonth() == 6) {
 Month = "Jul.";
}
if (Stamp.getMonth() == 7) {
 Month = "Aug.";
}
if (Stamp.getMonth() == 8) {
 Month = "Sep.";
}
if (Stamp.getMonth() == 9) {
 Month = "Oct.";
}
if (Stamp.getMonth() == 10) {
 Month = "Nov.";
}

if (Stamp.getMonth() == 11) {
 Month = "Dec.";
}

function popup( link ) {
newWindow = window.open(link, "Page", "scrollbars=yes, height=405,width=450") 
}

function kitspage( link ) {
newWindow = window.open(link, "Kits", "scrollbars=yes, height=405,width=560") 
}

function htmldemo( link ) {
newWindow = window.open(link, "Demo", "scrollbars=no, height=435,width=670") 
}

function htmldemo2( link ) {
newWindow = window.open(link, "Demo2", "scrollbars=yes, height=435,width=700") 
}

function videodemo( link ) {
newWindow = window.open(link, "Video", "scrollbars=no, height=400,width=625")
}

function combodemo( link ) {
newWindow = window.open(link, "Combo", "scrollbars=no, height=210,width=450")
}

function samples( link ) {
newWindow = window.open(link, "Sample", "scrollbars=no, height=435,width=670") 
}

function partyplanner( link ) {
newWindow = window.open(link, "Video", "scrollbars=yes, height=400,width=625")
}

var numberOfLastImage = 5;
var numberOfFirstImage = 1;
var delayIn100thSeconds = 500;
var destination = new Array();
var slide = new Array();
slide[1] = "images/image1.jpg";
destination[1] = "image1.htm"; 
slide[2] = "images/image2.jpg";
destination[2] = "image2.htm";
slide[3] = "images/image3.jpg";
destination[3] = "image3.htm"; 
slide[4] = "images/image4.jpg";
destination[4] = "image4.htm"; 
slide[5] = "images/image5.jpg";
destination[5] = "image5.htm"; 
var slideNumber = 0;
function showNextSlide()
{
slideNumber++
if(slideNumber > numberOfLastImage )
{
slideNumber = numberOfFirstImage ;
}
document.screen.src = slide[slideNumber];
setTimeout("showNextSlide()",delayIn100thSeconds * 10);
}

function openWindow (doc, win, width, height, title)
{
winHeight = height + 20;
winWidth = width + 20;
newWin = window.open ('', win, 'resizable=no,toolbar=no,menubar=no,width=' + winWidth + ',height=' + winHeight );
newWin.document.writeln ('<HEAD><TITLE>' + title + '</TITLE></HEAD>');
newWin.document.writeln ('<BODY BGCOLOR="BLACK" MARGINWIDTH="8" MARGINHEIGHT="8" LEFTMARGIN="8" TOPMARGIN="8"><TABLE BORDER="1" CELLSPACING="0" CELLPADDING="0" ALIGN="CENTER"><TR><TD><A HREF="javascript:window.parent.close();"><IMG SRC="' + doc + '" WIDTH="' + width + '" HEIGHT="' + height + '" HSPACE="0" VSPACE="0" BORDER="0" ALT="' + title + ' (click to close)"></A></TD></TR></TABLE>');
    }

//ROLLOVER MENU IMAGES////////////////////////////////////////////////
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}

