function False(){alert("All Website Content Copyright (C) KNS International 2005-2007");return false};
function True(){return true};
function IsNS(){return navigator.appName=="Netscape"};

document.oncontextmenu=False;

if(IsNS())
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=function(e){if(e.which==2||e.which==3){return false}}
}

function CreateCopyBat()
{
	bat = "";
	for (i = 0; i < document.links.length; i++)
	{
		s = document.links[i].href;
		if (s.substr(s.lastIndexOf('.')).toLowerCase() == ".jpg") 
		{
			s = s.substr(s.lastIndexOf('/') + 1);
			bat = bat + "copy img\\" + s + " wroughtiron\\" + s + "\n";
		}
	}
	document.write('<PRE>' + bat + '</PRE>');
}

function RemoveData()
{
	tds = document.getElementsByTagName('TD');
	for (i = 0; i < tds.length; i++)
	{	
		if (tds.item(i).align == "center")
		{
			s = tds.item(i).innerHTML;
			j = s.indexOf("Size:");
			if (j > 0)
			{
				s = s.substring(0, j + 5) + " Details upon Request" + s.substring(s.indexOf('<BR>',j));	
			}
			j = s.indexOf("Weight:");
			if (j > 0)
			{
				s = s.substring(0, j + 7) + " Contact Us" + s.substring(s.indexOf('<BR>',j));	
			}
			tds.item(i).innerHTML = s;
		}
	}
	document.body.onLoad = "";
	
	document.write(document.documentElement.outerHTML);
}

function _(a)
{
	document.write(a)
}

function menu(text,href)
{
	_("<A class=menu href=" + href + ">")
	_(text)
	_("</A> ")
	_("<BR>")
}

function stopLoad()
{
	if (!document.all)
		window.stop()
	else
		window.document.execCommand('Stop')
}

function opennewwindow(s)
{
	stopLoad()
	window.open(s)
}

function menu2(text,href)
{
	_("<IMG src=img/print.gif align=left>")
	_("<A class=menu href=# onClick=opennewwindow('" + href + "')>")
	_(text)
	_("</A> ")
}

function menubar()
{
	_("<BR>")
}

var isprintable

function header()
{
	isprintable = 0
	var params = unescape(location.search.substr(1)).split('&')
	for (i = 0; i < params.length; i++)
	{
		var s = params[i].split('=')
		if (s[0] == 'print') isprintable = 1
	}

	//document.write(location)

	if (!isprintable)
	{
		_('<LINK href=http://www.kns-int.com.au/products.css rel=stylesheet type=text/css>');

		_("<TABLE width=100% height=100% cellPadding=0 cellSpacing=0>")
		_("<TR height=55 bgColor=446644>")

		_("<TD width=128 bgColor=446644 8AB449><IMG src=img/klogo.png></TD>")
		_("<TD colSpan=1 style='background:url(img/top.jpg);Background-Repeat:no-repeat;Background-Position:Right top'>&nbsp;</TD>")
		_("<TD width=8>&nbsp;</TD>")
		_("</TR>")

		//_("<TR height=2 bgColor=446644><TD colSpan=2></TD></TR>");

		_("<TR>")

		_("<TD vAlign=top bgcolor=446644 EEFFEE><TABLE width=100% height=100%><TR vAlign=top align=right><TD>")

		menu("Home Page"				 	, "index.html")
		menubar()
		menu("Moving Sale"			, "_specials.html")
		menu("Cast Iron"			, "_instock1.html")
		
		menu("Wrought Iron"				, "_instock2.html")
		menu("GRC & Fibreglass"			        ,                                                          "_instockgrc&fibreglass.html")
                
		menu("Antique Pottery"		         , "_instockterracotta.html")
		menu("Fences & Gates"			 , "fencesandgatesretail.pdf")
		
		
		
		menubar()
		//menu("In-Stock Now"				, "_instock.html")
		menubar()
                
                
		menu("French Furniture"	 	      	        , "_instockfurniture.html")
		menu("New Range"	 	      	        , "_instocknew.html")
		menu("Giftware"	 	      	        , "_instockgiftware.html")
		//menu("Fences & Gates"	 	      	        , "_fences.html")
		
		
                menu("Marble"					, "_marble.html")
		//menu("Stone"					, "_stone.html")
		//menu("Bronze"					, "_bronze.html")
		//menu("Timber Furniture"			, "_furniture.html")
		//menu("Architectural"				, "_cataloguea.html")
                menu("Bathroom"				        , "_bathroom.html")
		//menu("French Furniture"					, "_french.html")
		//menu("Cast Iron Fireplaces"			, "_fireplaces.html")
		//menu("Timber Mantles"			        , "_mantles.html")
		menubar()

		menu("Ordering"					, "_ordering.html")
		menu("Trading Terms"				, "_about.html")
		menu("Contact Us"					, "_contact.html")
		menubar()

		menu("Industry News"				, "_news.html")

		_("</TD></TR>")
		_("<TR><TD align=right>")
		
		menu2("Printable Version"			, location + "?print")

		_("</TD></TR></TABLE></TD>")

		_('<TD style=border:inset;border-width:0 bgColor=FFFFFF>')
		_('<SPAN style=width:100%;height:100%;overflow:auto;border-style:inset;border-width:1>')
		_('<TABLE width=100% height=100% cellPadding=8><TR><TD vAlign=top>')
	}
	else
	{
		_('<LINK href=http://www.kns-int.com.au/products.css rel=stylesheet type=text/css>');
	}
}

function footer()
{
	if (!isprintable)
	{
		_("<BR>")
		_("</TD></TR></TABLE></SPAN>")

		_("</TD>")
		_("<TD width=8>&nbsp;</TD>")
		_("</TR>")

		_("<TR height=20 bgcolor=446644>")

		_("<TD>")
		_("")
		_("</TD>")

		_("<TD align=right><B><FONT color=FFFFDD>")
		_("Copyright (C) 2004-2006 - KNS-International")
		_("</TD>")

		_("</TR>")
		_("<TABLE>")

		document.body.scroll = "no"
	}
	else
	{
		document.body.scroll = "yes"
		document.body.style.background = "FFFFFF"
		document.title = "KNS International Ph: (08) 8244 1397 - " + document.title
	}
}
