function product_open( is_active, left_margin_status )
{
    document.write( '<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff">' );
    document.write( '<tr height="6">' );
    document.write( '<td width="6"><img src=".wog/images/f1_product.gif" width="6" height="6" border="0" /></td>' );
    document.write( '<td background=".wog/images/f2_product.gif"><img src=".wog/images/null.gif" width="6" height="6" border="0" /></td>' );
    document.write( '<td width="6"><img src=".wog/images/f3_product.gif" width="6" height="6" border="0" /></td>' );
    document.write( '</tr>' );
    document.write( '<tr>' );
    document.write( '<td width="6" background=".wog/images/f4_product.gif"><img src=".wog/images/null.gif" width="6" height="1" border="0" /></td>' );
    document.write( '<td>' );

    if( is_active )
    {
        document.write( '<table border="0" cellspacing="0" cellpadding="0" width="100%">' );
        document.write( '<tr>' );

        if( left_margin_status != 'hide' )
        {
            document.write( '<td width="12">&nbsp;</td>' );
        }
        document.write( '<td>' );
    }
}

function product_close( is_active )
{
    if( is_active )
    {
        document.write( '</td>' );
        document.write( '<td width="12"><img src=".wog/images/f6_product_active.gif" width="12" height="24" border="0" /></td>' );
        document.write( '</tr>' );
        document.write( '</table>' );
    }

    document.write( '</td>' );
    document.write( '<td width="6" background=".wog/images/f6_product.gif"><img src=".wog/images/null.gif" width="6" height="1" border="0" /></td>' );
    document.write( '</tr>' );
    document.write( '<tr height="6">' );
    document.write( '<td width="6"><img src=".wog/images/f7_product.gif" width="6" height="6" border="0" /></td>' );
    document.write( '<td background=".wog/images/f8_product.gif"><img src=".wog/images/null.gif" width="6" height="6" border="0" /></td>' );
    document.write( '<td width="6"><img src=".wog/images/f9_product.gif" width="6" height="6" border="0" /></td>' );
    document.write( '</tr>' );
    document.write( '</table>' );
}

function showPhoto(id,index)
{
    window.open('details.php?id='+id+'&index='+index,'_blank','width=310,height=395');
    return false;
}

function showScheme(id,index)
{
	window.open('scheme.php?id='+id+'&index='+index,'_blank','width=790,height=560,scrollbars=1');
	return false;
}

function showCalc(id)
{
	window.open('calc.php?id='+id,'_blank','width=540,height=600,scrollbars=1');
	return false;
}

function showInDetails( img_source )
{
	document.images['indetail'].src = img_source;
	return false;
}

function showDetail(id,lang)
{
	window.open('detailsinprice.php?id='+id+'&lang='+lang,'detailinprice_'+id,'width=345,height=420,scrollbars=1');
	return false;
}

