var welmsg = "Welcome To Tilton Industries Inc."

function stat_write(msg)
{
 		 if (msg=="")
		 	{
			window.status=welmsg
			}
		else
			{
 			window.status=msg;
			}
}




function openannounce()
{
var url="announce.html"
winpops=window.open(url,"","width=400,height=338,")

}

function opencustitem(urla, width, height)
{
var url=urla
var wid=width
var hei=height

winpops=window.open(url,"","width=" + wid + ", height=" + hei + ", left=10, top=10, scrollbars=yes, resizable=yes")

}






function setBookmark()
{
window.external.AddFavorite('http://www.tiltonindustries.com','Tilton Industries Inc.');

}



function setDate()
{

var d = new Date()
var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<p>")
document.write(weekday[d.getDay()] + ", ")
document.write(monthname[d.getMonth()] + " ")
document.write(d.getDate() + ", ")

document.write(d.getFullYear())
document.write("</p>")
}


function footer()
{
	document.write("<br />")
document.write("<p align=center >")
document.write("<A HREF='index.html'>| &nbsp Home &nbsp</A>")
document.write("<A HREF='history.html'>| &nbsp About &nbsp Us &nbsp</A>")
document.write("<A HREF='services.html'>| &nbsp Services &nbsp</A>")
document.write("<A HREF='faq.html'>| &nbsp FAQ &nbsp</A>")
document.write("<A HREF='gallery.html'>| &nbsp Gallery &nbsp</A>")
document.write("<A HREF='contact.asp'>| &nbsp Contact Us &nbsp</A>")
document.write("<A HREF='links.html'>| &nbsp Links &nbsp</A>")
document.write("<A HREF='welcome.asp'>| &nbsp My Account &nbsp |</A>")
document.write("<br /><br /><br />Please contact <a href='mailto:webadmin@tiltonindustries.com'>webadmin@tiltonindustries.com</a> for website assistance.")
document.write("<br /><br /><br />&copy; Tilton Industries Inc. 2008")
document.write("</p>")
}


function serviceslinks()
{
document.write("<table class=left border=0 cellspacing=0 cellpadding=0 width=150><tr><td width=20%></td><td width=80% align=left>")

document.write("<A href='colormatching.html'>Color Matching</A> <br />")
document.write("<A href='custompackaging.html'>Custom Packaging</A> <br />")
document.write("<A href='decoral.html'>Decoral System</A><br />")
document.write("<A href='delivery.html'>Delivery</A><br />")
document.write("<A href='items.html'>Items</A><br />")
document.write("<A href='msds/default.aspx'>MSDS Download</A><br />")
document.write("<A href='plantcapabilities.html'>Plant Capabilities</A><br />")
document.write("<A href='standardcolors.html'>Standard Colors</A><br />")
document.write("<A href='specialeffects.html'>Special Effects</A><br />")
document.write("<A href='spraycoatings.html'>Spray Coatings</A><br /> ")
document.write("<A href='warranty.html'>Warranty</A><br /> ")
document.write("</td></tr></table>")
}


function gallerylinks()
{
document.write("<table class=left border=0 cellspacing=0 cellpadding=0 width=150><tr><td width=20%></td><td width=80% align=left>")
document.write("<b>Tilton Projects</b> <br /><br />")
document.write("&nbsp&nbsp<A href='gallery.html'>Gallery 1 </A> <br /><br />")
document.write("&nbsp&nbsp<A href='gallery2.html'>Gallery 2 </A> <br /><br />")
document.write("&nbsp&nbsp<A href='gallery3.html'>Gallery 3 </A> <br /><br />")
document.write("&nbsp&nbsp<A href='gallery4.html'>Gallery 4 </A> <br /><br />")
document.write("</td></tr></table>")
}


function setTime()
{

var d = new Date()
document.write(d.getHours())
document.write(":")
document.write(d.getMinutes() + 1)
}



function printpage() {
window.print();  
}



function link(url, msg, text, style, target)
{
document.write("<A HREF= '" + url + "' onMouseover= stat_write('" + msg + "'); return true; onMouseup= stat_write('" + msg + "'); return true; onMousedown= stat_write('" + msg + "'); return true; onMouseout= stat_write(''); return true; onMousemove= stat_write('" + msg + "'); return true; OnClick= stat_write('" + msg + "'); return true; class='" + style + "' target='" + target + "' > " + text + " </A>"); 
}

function piclink(url, msg, image, target)
{
document.write("<A href= '" + url  + "' onMouseover= stat_write('" + msg + "'); return true; onMouseup= stat_write('" + msg + "'); return true; onMousedown= stat_write('" + msg + "'); return true; onMouseout= stat_write(''); return true; onMousemove= stat_write('" + msg + "'); return true; OnClick= stat_write('" + msg + "'); return true; target='" + target + "' ><img src= '" + image + "' border='0'></a>");
}








