var picTitle='HomeZone Wallpaper';
var newWindow;
var picLogo;
var picLight;
var picTable;

picLogo='images/hz_logo.png';
picLight='images/light-pendant.png';
picTable='images/coffee-table.png';

function change_header (pageHeader)
{
	if (top.frames.length != 0) {
		top.frames['hz_top'].document.getElementById('heading').src = pageHeader;
		}
}

function DisplayWallpaper(picURL,picTitle)
{
	newWindow=window.open(picURL,'newWin','resizable=yes, status=yes, toolbar=no, width='+screen.availWidth+' ,height='+screen.availHeight+' ,left=0,top=0');
	if (document.all)
	{		newWindow.window.resizeTo(screen.availWidth,screen.availHeight);
			if (typeof document.body.style.maxHeight == "undefined") 
			{
				picLogo='images/hz_logo.gif';
				picLight='images/light-pendant.gif';
				picTable='images/coffee-table.gif';
			}
	}
	else if (document.layers||document.getElementById) 
	{
			newWindow.window.outerHeight = screen.availHeight;
			newWindow.window.outerWidth = screen.availWidth;
	}
	newWindow.document.write('<html>'
		+'<head>'
		+'<title>'+picTitle+'</title>'
		+'<link rel="stylesheet" type="text/css" href="_homezone.css">'
		+'<!--[if LT IE 7]>'
		+'<link rel="stylesheet" type="text/css" href="_formatting_ie6.css">'
		+'<![endif]-->'
		+'<style type="text/css">'
		+'.style1           { color: #FFFFFF; font-size: 14pt; font-weight: bold; font-family: Verdana;}'
		+'.style2           { color: #FFFFFF; font-size: 10pt; font-weight: normal; font-family: Verdana;}'
		+'.style3           { background-color: #000000; height: 20px; width: 50%}'
		+'.style4 			{ margin: 10px 10px;}'
		+'</style>'
		+'</head>'
		+'<body background="'+picURL+'">'
		+'<table width="100%" height="100%" cellpadding="0" cellspacing="0">'
		+'<tr>'
			+'<td valign="top" align="left"><img alt="" src="'+picLogo+'" height="92"  class="style4"></td>'
			+'<td valign="top"><img alt="" src="'+picLight+'" width="204" height="300"></td>'
		+'</tr>'
		+'<tr>'
			+'<td colspan="2" valign="bottom" align="right"><img alt="" src="'+picTable+'" width="257" height="146"></td>'
		+'</tr>'
		+'<tr>'
			+'<td valign="bottom" align="middle" class="style3">'
			+'<p class="style1"><sup>©</sup> <span class="homezone">home zone Design Ltd<br>'+picTitle+'</span></p>'
			+'</td>'
			+'<td valign="bottom" align="middle" class="style3">'
			+'<p class="style2">These images are shown for your guidance only<br>the colour, scale and pattern as depicted here<br>cannot be guaranteed on the actual product</p>'
			+'</td>'
		+'</tr>'
		+'</table>'
		+'</body>'
		+'</html>');
	newWindow.focus();
}

