popupImage = function( imageName ) {
    var wndPop = window.open('','popup','width=800,height=600,scrollbars=0'); 
	wndPop.document.write("<html><title>The Shed</title><body style='margin:0'><img src='"+imageName+"' onload='window.resizeTo(this.width+30, this.height+74)'></body></html>");
	wndPop.document.close();
    wndPop.focus();
 return true;
}


popupImage1 = function( imageName ) {
    var wndPop = window.open('','popup','width=400,height=500,scrollbars=1'); 
	wndPop.document.write("<html><title</title><body style='margin:0'>"+imageName+"</body></html>");
	wndPop.document.close();
    wndPop.focus();
 return true;
}
popuptext = function( imageName ) {
    var wndPop = window.open('','popup','width=400,height=500,scrollbars=1'); 
	wndPop.document.write("<html><title></title><body style='margin:0'>"+imageName+"</body></html>");
	wndPop.document.close();
    wndPop.focus();
 return true;
}

popupmovie = function( movieurl, moviename, moviewidth, movieheight ) {
	if( navigator.userAgent.toLowerCase().indexOf("win") == -1 )
		return window.confirm("This media format cannot be played embedded on your system. Would you like do download it instead?");
	
	var pagestyle = "scrollbars=1";
	if( moviewidth )
		pagestyle += ( ",width=" + (moviewidth + 100) );
	if( movieheight )
		pagestyle += ( ",height=" + (movieheight + 100 ) );
	if( moviename == undefined )
		moviename = "Embedded Movie";
	var wndPop = window.open('','popup',pagestyle);
	wndPop.document.write("<HTML><HEAD><TITLE>");
	wndPop.document.write(moviename);
	wndPop.document.write('</TITLE></HEAD><BODY><object id="ieMovie" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab" type="application/x-oleobject" width="100%" height="100%">');
	wndPop.document.write('<param name="src" value="');
	wndPop.document.write(movieurl);
	wndPop.document.write('" />');
	wndPop.document.write('<param name="controller" value="true" />');
	wndPop.document.write('<param name="AutoSize" value="false" />');
	wndPop.document.write('<param name="AutoStart" value="true" />');
	wndPop.document.write('</object>');
	wndPop.document.write('<object id="ffMovie" data="');
	wndPop.document.write(movieurl);
	wndPop.document.write('" type="application/x-mplayer2" width="100%" height="100%" style="display:none">');
	wndPop.document.write('<param name="controller" value="true" />');
	wndPop.document.write('<param name="AutoSize" value="false" />');
	wndPop.document.write('<param name="AutoStart" value="true" />');
	wndPop.document.write('</object>');
	wndPop.document.write('<script>');
	wndPop.document.write('if( navigator.userAgent.toLowerCase().indexOf("msie") == -1 )');
	wndPop.document.write('\{document.getElementById("ffMovie").style.display="inline";document.getElementById("ieMovie").style.display="none";\}');
	wndPop.document.write('</script>');
	wndPop.document.write('</BODY></HTML>');

	return false;
}

popupmovieMOV = function( movieurl, moviename, moviewidth, movieheight ) {
	var pagestyle = "scrollbars=1";
	if( moviewidth )
		pagestyle += ( ",width=" + (moviewidth + 100) );
	if( movieheight )
		pagestyle += ( ",height=" + (movieheight + 100 ) );
	if( moviename == undefined )
		moviename = "Embedded Movie";
	var wndPop = window.open('','popup',pagestyle);
	wndPop.document.write("<HTML><HEAD><TITLE>");
	wndPop.document.write(moviename);
	wndPop.document.write('</TITLE></HEAD><BODY>');
	wndPop.document.write('<embed width="100%" height="100%" type="video/quicktime" src="');
	wndPop.document.write(movieurl);
	wndPop.document.write('"></embed>');
	wndPop.document.write('</BODY></HTML>');

	return false;
}

/*

var zitem = "";
function lsubmit( xzitem ) {
alert("hope it works "+xzitem);
var who = "rec_"+xzitem;
			document.rec_+xzitem.action = "index.php?option=com_contact&Itemid=9"
			document.rec_+xzitem.submit();
}

*/

function SubmitItem( sFormName ) {
 document[sFormName].submit();
 return false;
}
function con_firm( question ) {
like = window.confirm(question);
if(like == true)
	{document.del_1.submit();}
else
	{document.del_0.submit();}
}

