// JavaScript 

// used products menu
function show(id) {
    document.getElementById(id).style.display = 'block';
    document.getElementById(id).style.visibility = 'visible';
    }
function hide(id) {
    document.getElementById(id).style.display = 'none';
    document.getElementById(id).style.visibility = 'hidden';
    }

//Products Popup
function viewDecor(file) {
	url = '/images/products/decor/lg/' + file;
	winsize = 'width=415,height=415,'
	winattrib = winsize + 'menubar=no,scrollbars=no,titlebar=no';
	wallwin = window.open('','wallwindow',winattrib);
	wallwin.document.writeln('<html>');
	wallwin.document.writeln('<head><title>Georgie Boy Decor</title><link href="/assets/css/GeorgieBoy.css" rel="stylesheet" type="text/css" media="screen" /></head>');
	wallwin.document.writeln('<body style="margin: 0px; font-size: 12px; background-color: #fff; background-image: none; padding: 5px;" onblur="javascript:window.close();">');
	wallwin.document.writeln('<img src="', url, '" alt="GeorgieBoy Decor" onclick="javascript:window.close();" />');
	wallwin.document.writeln('</body></html>');
	wallwin.document.close();
	wallwin.focus();
	wallwinstat="yes";
	}


function viewWood(file) {
	url = '/images/products/wood/lg/' + file;
	winsize = 'width=410,height=410,'

	winattrib = winsize + 'menubar=no,scrollbars=no,titlebar=no';
	wallwin = window.open('','wallwindow',winattrib);
	wallwin.document.writeln('<html>');
	wallwin.document.writeln('<head><title>Georgie Boy Wood Decor</title><link href="/assets/css/GeorgieBoy.css" rel="stylesheet" type="text/css" media="screen" /></head>');
	wallwin.document.writeln('<body style="margin: 0px; font-size: 12px; background-color: #fff; background-image: none; padding: 5px;" onblur="javascript:window.close();">');
	wallwin.document.writeln('<img src="', url, '" alt="GeorgieBoy Wood Decor" onclick="javascript:window.close();" />');
	wallwin.document.writeln('</body></html>');
	wallwin.document.close();
	wallwin.focus();
	wallwinstat="yes";
	}

var myWin;
function viewVideo(theURL) {
	if(myWin) {
		if(!myWin.closed) {myWin.focus();}
	}
	myWin = open(theURL,'loadVideo','width=350,height=260,scrollbars=no,resizable=yes');
	myWin.focus();
}