// JavaScript Document

/* how to use it
<script  type="text/javascript">mailIt();</script><noscript>bake (at) </noscript>margandmarees.com.au
*/
function mailIt()


	{
  var contact = "Email Us"
  var email = "bake"
  var emailHost = "margandmarees.com.au"
  document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost + ">" + email + "</a>@")
	}


 var productwindow;
function showProduct(url)
{
	productwindow=window.open(url,'name','height=320,width=320,resizable,scrollbars,status,left=40,top=40');
	if (window.focus) {productwindow.focus();return false;}
}


//used for image insert
function basename (path) { return path.replace( /.*\//, "" ); }
	
			var winimg=null;
			function ps_imagemanager_popup(imgurl,title,w,h) {
				lpos=(screen.width)?(screen.width-w)/2:100;
				tpos=(screen.height)?(screen.height-h)/2:100;
				settings='width='+w+',height='+h+',top='+tpos+',left='+lpos+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
				winimg=window.open('about:blank','imagemanagerpopup',settings);
	
				var doc = '';
				doc += '<html><head>';
				doc += '<title>' + title + ' - ' + basename(imgurl) + '(' + w + 'x' + h +')</title>';
				doc += '<style type="text/css"><!-- body { margin:0px; padding:0px; } --></style>';
				doc += '</head>';
				doc += '<body onload="self.focus();">';
				doc += '<img style="cursor:pointer;" src="' + imgurl + '" title="' + title + '" onclick="self.close();"/>';
				doc += '</body></html>';
				
				winimg.document.writeln(doc);
				winimg.document.close();
			}